TUI crash #7481

Closed
opened 2026-02-16 18:07:19 -05:00 by yindo · 1 comment
Owner

Originally created by @ElderOrb on GitHub (Jan 24, 2026).

Originally assigned to: @kommander on GitHub.

Description

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%3A850%3A75%29%0A++++at+%3Canonymous%3E+%28..%2F..%2Fnode_modules%2F.bun%2F%40opentui%2Bsolid%400.1.74%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++++at+processTicksAndRejections+%28native%3A7%3A39%29...%0A%60%60%60&opencode-version=1.1.34

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @ElderOrb on GitHub (Jan 24, 2026). Originally assigned to: @kommander on GitHub. ### Description 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%3A850%3A75%29%0A++++at+%3Canonymous%3E+%28..%2F..%2Fnode_modules%2F.bun%2F%40opentui%2Bsolid%400.1.74%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++++at+processTicksAndRejections+%28native%3A7%3A39%29...%0A%60%60%60&opencode-version=1.1.34 ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the opentuibug labels 2026-02-16 18:07:19 -05:00
yindo closed this issue 2026-02-16 18:07:19 -05:00
Author
Owner

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

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

  • #7918: Crash when local.agent.current() returns undefined during startup/auth
  • #8827: Cannot handle OAuth when the browser is Finicky (same error signature and context)

All these issues share the identical error: TypeError: undefined is not an object (evaluating 'local.agent.current().name') occurring at the same location in src/cli/cmd/tui/component/prompt/index.tsx around lines 840-850.

Feel free to ignore if this addresses a different specific case.

@github-actions[bot] commented on GitHub (Jan 24, 2026): This issue might be a duplicate of existing issues. Please check: - #7918: Crash when local.agent.current() returns undefined during startup/auth - #8827: Cannot handle OAuth when the browser is Finicky (same error signature and context) All these issues share the identical error: `TypeError: undefined is not an object (evaluating 'local.agent.current().name')` occurring at the same location in `src/cli/cmd/tui/component/prompt/index.tsx` around lines 840-850. Feel free to ignore if this addresses a different specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7481