Skip to content

fix: sync OpenCode auth state on account rotation#253

Merged
chubes4 merged 1 commit into
mainfrom
fix/opencode-auth-rotation-sync
Jul 3, 2026
Merged

fix: sync OpenCode auth state on account rotation#253
chubes4 merged 1 commit into
mainfrom
fix/opencode-auth-rotation-sync

Conversation

@chubes4

@chubes4 chubes4 commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

  • sync refreshed/rotated Anthropic OAuth credentials into OpenCode's live auth state
  • preserve the existing auth.json write path as the durable source
  • extend the refresh hardening regression guard for live auth sync

Testing

  • bash tests/opencode-claude-auth-refresh-hardening.sh
  • bash tests/upgrade-opencode-auth-plugin-sync.sh
  • bun build runtimes/opencode/plugins/claude-code-auth.ts --target=node --outdir /var/folders/lr/c_cmmt7s0592m4njz99v5yb40000gn/T/opencode/wpca-auth-plugin-check-worktree

AI assistance

  • AI assistance: Yes
  • Tool(s): GPT-5.5 via OpenCode
  • Used for: Compared the standalone OpenCode auth plugin with Kimaki's Anthropic rotation implementation, drafted the fix, and ran targeted verification.

@chubes4 chubes4 merged commit 44f0e13 into main Jul 3, 2026
13 checks passed
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.

1 participant