Handle integration credential decrypt failures#4683
Open
brennanb2025 wants to merge 1 commit into
Open
Conversation
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
Credential decrypt failures for saved Linear and Jira tokens now surface as explicit reconnect/keychain messages instead of being treated like missing credentials, empty results, or auth failures.
Brennan YOLO Lite Evidence
Design approach:
safeStorageis unavailable or when the raw token is clearly plaintext, while treating undecryptable encrypted-looking files as actionable credential errors.Design-review outcome:
auto-design-review-fixpass completed clean.temp/credential-decrypt-errors-design.mdandtemp/credential-decrypt-errors-design-review-report.mdin the local worktree only; these are not included in the PR.Implementation and deviations:
Completeness verification:
Code-review loop:
brennan-test-changesresult:src/main/jira/client.test.ts.HOMEandORCA_DEV_USER_DATA_PATH, verified app identity, seeded fake Linear/Jira encrypted-token failures, and confirmed clear decrypt messages while preserving saved metadata/token files.brennan-test-sshwas not required.Tests
pnpm run typecheckpnpm run lint(passes with existing React hook dependency warnings in ChecksPanel, Settings, and StatusBar)git diff --checkpnpm vitest run --config config/vitest.config.ts src/main/linear/client.test.ts src/main/jira/client.test.ts src/main/linear/issues.test.ts src/main/jira/issues.test.ts src/main/linear/projects.test.ts src/main/linear/teams.test.ts src/renderer/src/store/slices/linear.test.ts src/renderer/src/store/slices/jira.test.tsbrennan-test-sshwas not required.Assumptions And Gaps