openai auth after v1.1.11 fatal error #4716

Closed
opened 2026-02-16 17:45:09 -05:00 by yindo · 2 comments
Owner

Originally created by @rexbrahh on GitHub (Jan 11, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

this happens typing /connect to set up the new openai auth after v1.1.11 and returning back to terminal from a successful openai auth in the browser

the issue url https://github.com/anomalyco/opencode/issues/new?template=bug-report.yml&title=opentui%3A+fatal%3A+undefined+is+not+an+object+%28evaluating+%27local.agent.current%28%29.name%27%29&description=%60%60%60%0ATypeError%3A+undefined+is+not+an+object+%28evaluating+%27local.agent.current%28%29.name%27%29%0A++++at+%3Canonymous%3E+%28src%2Fcli%2Fcmd%2Ftui%2Fcomponent%2Fprompt%2Findex.tsx%3A840%3A75%29%0A++++at+%3Canonymous%3E+%28..%2F..%2Fnode_modules%2F.bun%2F%40opentui%2Bsolid%400.1.72%2B897ebc1644d3edd0%2Fnode_modules%2F%40opentui%2Fsolid%2Findex.js%3A148%3A62%29%0A++++at+runComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A742%3A22%29%0A++++at+updateComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A724%3A3%29%0A++++at+runTop+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A833%3A7%29%0A++++at+runUserEffects+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A928%3A18%29%0A++++at+runUpdates+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A849%3A17%29%0A++++at+completeUpdates+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A900%3A17%29%0A++++at+runUpdates+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A850%3A5%29%0A++++at+setStore+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fstore%2Fdist%2Fdev.js%3A221%3A5%29...%0A%60%60%60&opencode-version=1.1.12

Plugins

oh-my-opencode

OpenCode version

1.1.12

Steps to reproduce

  1. /connect, choose openai auth
  2. complete auth in browser
  3. opencode crashes, error occurs.

Screenshot and/or share link

Image

Operating System

macos 26.3 beta 1

Terminal

ghostty

Originally created by @rexbrahh on GitHub (Jan 11, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description this happens typing /connect to set up the new openai auth after v1.1.11 and returning back to terminal from a successful openai auth in the browser the issue url https://github.com/anomalyco/opencode/issues/new?template=bug-report.yml&title=opentui%3A+fatal%3A+undefined+is+not+an+object+%28evaluating+%27local.agent.current%28%29.name%27%29&description=%60%60%60%0ATypeError%3A+undefined+is+not+an+object+%28evaluating+%27local.agent.current%28%29.name%27%29%0A++++at+%3Canonymous%3E+%28src%2Fcli%2Fcmd%2Ftui%2Fcomponent%2Fprompt%2Findex.tsx%3A840%3A75%29%0A++++at+%3Canonymous%3E+%28..%2F..%2Fnode_modules%2F.bun%2F%40opentui%2Bsolid%400.1.72%2B897ebc1644d3edd0%2Fnode_modules%2F%40opentui%2Fsolid%2Findex.js%3A148%3A62%29%0A++++at+runComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A742%3A22%29%0A++++at+updateComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A724%3A3%29%0A++++at+runTop+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A833%3A7%29%0A++++at+runUserEffects+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A928%3A18%29%0A++++at+runUpdates+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A849%3A17%29%0A++++at+completeUpdates+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A900%3A17%29%0A++++at+runUpdates+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A850%3A5%29%0A++++at+setStore+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.10%2Fnode_modules%2Fsolid-js%2Fstore%2Fdist%2Fdev.js%3A221%3A5%29...%0A%60%60%60&opencode-version=1.1.12 ### Plugins oh-my-opencode ### OpenCode version 1.1.12 ### Steps to reproduce 1. /connect, choose openai auth 2. complete auth in browser 3. opencode crashes, error occurs. ### Screenshot and/or share link <img width="2560" height="2844" alt="Image" src="https://github.com/user-attachments/assets/837029e4-e7a8-48d2-ab34-4dcecf5dcf81" /> ### Operating System macos 26.3 beta 1 ### Terminal ghostty
yindo added the opentuibug labels 2026-02-16 17:45:09 -05:00
yindo closed this issue 2026-02-16 17:45:09 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 11, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7727: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - Same exact error
  • #7565: OpenAI auth had fatal error after successful auth - Same scenario (fatal error after successful OpenAI auth)
  • #7550: opentui: TUI crashes after successful native OpenAI account connection - Same error and authentication scenario
  • #7630: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - Exact error match

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #7727: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - Same exact error - #7565: OpenAI auth had fatal error after successful auth - Same scenario (fatal error after successful OpenAI auth) - #7550: opentui: TUI crashes after successful native OpenAI account connection - Same error and authentication scenario - #7630: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - Exact error match Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 12, 2026):

This may be fixed in latest release (going out rn 1.1.14

@rekram1-node commented on GitHub (Jan 12, 2026): This may be fixed in latest release (going out rn 1.1.14
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4716