-
Notifications
You must be signed in to change notification settings - Fork 77
fix(config): surface secret decryption failures #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -943,6 +943,14 @@ Focus on practicality and accurate categorization to help users quickly understa | |
| {(config.apiType || 'openai').toUpperCase()} • {config.baseUrl} • {config.model} • {t('并发数', 'Concurrency')}: {config.concurrency || 1} | ||
| {config.reasoningEffort ? ` • reasoning: ${config.reasoningEffort}` : ''} | ||
| </p> | ||
| {config.apiKeyStatus === 'decrypt_failed' && ( | ||
| <p className="mt-1 text-sm text-amber-600 dark:text-amber-400"> | ||
| {t( | ||
| '存储的 API Key 无法解密,请重新输入并保存该配置。', | ||
| 'The stored API key could not be decrypted. Please re-enter and save this configuration.' | ||
| )} | ||
| </p> | ||
| )} | ||
|
Comment on lines
+946
to
+953
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add equivalent warning flow for You now surface AI/WebDAV decrypt failures, but GitHub token decrypt failures still have no visible warning in the settings UI. That leaves one credential type silent from the user perspective. 🤖 Prompt for AI Agents |
||
| </div> | ||
| </div> | ||
|
|
||
|
|
@@ -1135,6 +1143,14 @@ Focus on practicality and accurate categorization to help users quickly understa | |
| <p className="text-sm text-gray-500 dark:text-gray-400"> | ||
| {config.url} • {config.path} | ||
| </p> | ||
| {config.passwordStatus === 'decrypt_failed' && ( | ||
| <p className="mt-1 text-sm text-amber-600 dark:text-amber-400"> | ||
| {t( | ||
| '存储的 WebDAV 密码无法解密,请重新输入并保存该配置。', | ||
| 'The stored WebDAV password could not be decrypted. Please re-enter and save this configuration.' | ||
| )} | ||
| </p> | ||
| )} | ||
| </div> | ||
| </div> | ||
|
|
||
|
|
||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return
github_token_statuseven when token is empty.Line 402 currently skips status assignment when
valueis empty/null, so consumers can’t distinguish “missing status” vs explicit empty state. Please run the helper for everygithub_tokenrow and let it return'empty'.💡 Suggested fix
🤖 Prompt for AI Agents