Skip to content

Decode macOS Keychain credentials for Claude usage - #2930

Merged
SawyerHood merged 1 commit into
mainfrom
slopcop/issue-2928
Sep 2, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
slopcop/issue-2928

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

The macOS Keychain reader returned an opaque credential string. The credential reader parsed only plain JSON and skipped the file fallback after any nonempty Keychain result. The verified report is https://get-bb.github.io/reports/issues/2928.html.

What changed

The Claude Code provider now validates plain JSON first. It also decodes strict even-length hexadecimal input and validates the result. An invalid Keychain candidate now permits the existing credential-file fallback. This change does not change a wire contract or HOST_DAEMON_PROTOCOL_VERSION.

How you verified

  • The new focused test failed twice before the fix. Both cases returned unauthenticated instead of ok.
  • The focused test passed after the fix.
  • pnpm exec turbo run test --filter=bb-plugin-provider-claude-code passed all 351 tests.
  • pnpm exec turbo run typecheck --filter=bb-plugin-provider-claude-code passed.
  • pnpm exec oxfmt --check passed for both changed files.
  • git diff --check origin/main passed.
  • The change has 131 additions and 12 deletions. The total is 143 text lines across two files.
  • The EAP codename scan found no result in the working tree or push range.

Fixes #2928

AGENT GENERATED

@SawyerHood
SawyerHood merged commit ecf3832 into main Sep 2, 2026
15 checks passed
@SawyerHood
SawyerHood deleted the slopcop/issue-2928 branch September 2, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claude Code usage limits report unauthenticated: macOS Keychain blob is hex JSON

1 participant