Keychain: migrate CodexBar Cache to data-protection keychain and finish prompt-proofing
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- swift
- Domain
- authentication, desktop, security
Research direction
Start with the audit in #2561, then inspect Sources/CodexBar/KeychainMigration.swift, ClaudeOAuthKeychainPromptMode.swift, the seven named token stores, and Scripts/sign-and-notarize.sh/package_app.sh. Review Tests/CodexBarTests/ClaudeUsageTests.swift around line 613 and run the relevant tests. Done means the migration, prompt behavior, entitlements, escalation mode, and live CLI path are addressed without regressions.
Written by the indexing model from the issue text.
Description
Follow-up to #2561, which stopped the acute "CodexBar Cache" login-keychain password prompts (ACL poisoning by unbundled binaries; test children escaping suppression). The structural fixes remain:
- Migrate the cache item to the data-protection keychain. Set
kSecUseDataProtectionKeychain: true(+ access group) and drop theSecAccesstrusted-app ACL entirely. Data-protection items are keyed to the code-signing identity and can never raise the legacy "wants to use your confidential information" dialog. Needs: keychain-access-groups entitlement plumbing inScripts/sign-and-notarize.sh/package_app.sh(app +Contents/Helpers/CodexBarCLI), plus one-time migration that reads the legacy item, writes the DP item, and deletes the legacy one (its ACL cannot be repaired in place). KeychainMigrationhygiene (Sources/CodexBar/KeychainMigration.swift:75-133): reads without NoUI and delete-then-re-add drops any existing ACL. Should applyKeychainNoUIQueryand preserve/rebuild access attributes.- Seven provider token stores (
CookieHeaderStore,CopilotTokenStore,KimiTokenStore,ZaiTokenStore,SyntheticTokenStore,MiniMaxAPITokenStore,MiniMaxCookieStore) read withkSecReturnDataand no NoUI; the preflight+warn pattern explains prompts but does not prevent them. Decide per-store whether silent failure + UI surfacing beats the OS prompt. effectiveModeescalation (ClaudeOAuthKeychainPromptMode.swift:69-78): selecting the experimental security-CLI read strategy silently forces the Security.framework fallback to.alwaysprompting — should stay at the user's configured mode.ClaudeUsageTestslive path spawns the realclaudeCLI through a PTY (Tests/CodexBarTests/ClaudeUsageTests.swift:613), whose keychain access CodexBar cannot suppress; consider gating harder or documenting.
Context: full audit in #2561's description; probe/audit session 2026-08-01.
- Dominant language
- Swift
- Stars
- 23.3k
- Forks
- 2.2k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 231
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from steipete/CodexBar
-
clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:other issue-rating: 🦪 silver shellfish P2
Difficulty 1/5 Under an hour Newbie friendliness 72/100
steipete/CodexBar#5147 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
googledeveloper: unclaimed Ultra credit (null remaining amount) fails with "unrecognized response" instead of "Not applied"Possibly taken @djbclark claimed this today. Openclawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P2
Difficulty 2/5 1-3 hours Newbie friendliness 28/100
steipete/CodexBar#5145 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:other issue-rating: 🦪 silver shellfish P2
Difficulty 3/5 1-2 days Newbie friendliness 50/100
steipete/CodexBar#5144 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Claude CLI source drops "Current week (all models)" when /usage redraws over earlier screen contentOpenclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 4/5 3-5 days Newbie friendliness 30/100
steipete/CodexBar#5143 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:needs-info clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:ux-friction issue-rating: 🦐 gold shrimp P2
Difficulty 4/5 3-5 days Newbie friendliness 42/100
steipete/CodexBar#5132 · 5 comments · 1 reaction ·
Maintainers usually reply within 1 day
All issues in steipete/CodexBar
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nwverse/persona#12800 · 1 comment ·
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 1/5 Under an hour Newbie friendliness 86/100
ajithrnayak/xpunge#7 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DuarteSantos8/openGym#1469 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day