Repository navigation
Conversation
Deleting the translation service in use only cleared ai.serviceId and left the legacy direct provider and endpoint, so translation looked up the old per-endpoint key and reported a missing API Key even after a new DeepL service was saved and tested. The engine dropdown then showed the first service as selected, and clicking a selected item does not save, so it could not be rebound. - Deleting the service in use switches to the next translation service, or back to local translation with the direct fields cleared. - Saving a translation service binds it when no usable engine is selected (no service bound and local translation unavailable, as on macOS, or a stale direct config). - The OCR and translation dropdowns mark nothing as selected when the current setting matches no item, so any item can be picked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Found in the macOS beta test (report 3.6-2): with a DeepL service saved and its connection test passing, screenshot translation still said "请先在服务管理中保存此服务的 API Key".
ai.serviceIdwas empty, so the runtime used the legacy per-endpoint key lookup.ai.serviceIdand left the legacy directprovider/endpoint. The engine dropdown then showed the first service as selected (fallback index 0), and clicking a selected item does not save, so it could not be rebound from the UI.Test plan
cargo check -p snap-desk-gpui(no warnings)cargo test -p snap-desk-gpui(new tests for deleting the bound translator and for auto-binding on save)🤖 Generated with Claude Code