Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

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

Open
cgarrot wants to merge 2 commits intoanomalyco:devanomalyco/opencode:devfrom
cgarrot:fix/7727-tui-openai-oauthcgarrot/opencode:fix/7727-tui-openai-oauthCopy head branch name to clipboard
Open

fix(tui): guard local.agent.current() after oauth redirect (fixes #7727)#7747
cgarrot wants to merge 2 commits intoanomalyco:devanomalyco/opencode:devfrom
cgarrot:fix/7727-tui-openai-oauthcgarrot/opencode:fix/7727-tui-openai-oauthCopy head branch name to clipboard

Conversation

@cgarrot
Copy link

@cgarrot cgarrot commented Jan 11, 2026

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

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

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.

opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name')

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.