[PR #7747] fix(tui): guard local.agent.current() after oauth redirect (fixes #7727) #12499

Open
opened 2026-02-16 18:17:24 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7747

State: open
Merged: No


Fixes #7727

  • TUI: guard agent access while the agent list is temporarily unavailable after OAuth redirect (prevents local.agent.current().name crash).
  • Auth: persist OAuth extra metadata returned by auth plugins (accountId, enterpriseUrl) + add regression test.

Verified:

  • bun run typecheck (packages/opencode)
  • bun test test/provider/auth-extra-fields.test.ts
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7747 **State:** open **Merged:** No --- Fixes #7727 - TUI: guard agent access while the agent list is temporarily unavailable after OAuth redirect (prevents local.agent.current().name crash). - Auth: persist OAuth extra metadata returned by auth plugins (accountId, enterpriseUrl) + add regression test. Verified: - bun run typecheck (packages/opencode) - bun test test/provider/auth-extra-fields.test.ts
yindo added the pull-request label 2026-02-16 18:17:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12499