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

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

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

Originally assigned to: @rekram1-node 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%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

claude with canvas, and many other

OpenCode version

1.1.12

Steps to reproduce

  1. opencode, start like took 5minutes or more
  2. i didnt do anything, out of blue just throw that error

Screenshot and/or share link

No response

Operating System

macOS 15.7.2 (Sequoia)

Terminal

iterm2

Originally created by @u007 on GitHub (Jan 11, 2026). Originally assigned to: @rekram1-node 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%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 claude with canvas, and many other ### OpenCode version 1.1.12 ### Steps to reproduce 1. opencode, start like took 5minutes or more 2. i didnt do anything, out of blue just throw that error ### Screenshot and/or share link _No response_ ### Operating System macOS 15.7.2 (Sequoia) ### Terminal iterm2
yindo added the opentuibug labels 2026-02-16 17:45:07 -05:00
yindo closed this issue 2026-02-16 17:45:07 -05:00
Author
Owner

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

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

  • #7630: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name')
  • #7727: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name')
  • #7628: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - When login copilot
  • #7550: opentui: TUI crashes after successful native OpenAI account connection (TypeError: local.agent.current() is undefined)

These appear to be instances of the same regression where local.agent.current() returns undefined during TUI initialization or after authentication. Multiple reports of this exact error suggest a critical issue introduced in v1.1.12.

Feel free to ignore if your specific case differs from these reports.

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #7630: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - #7727: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - #7628: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - When login copilot - #7550: opentui: TUI crashes after successful native OpenAI account connection (TypeError: local.agent.current() is undefined) These appear to be instances of the same regression where `local.agent.current()` returns undefined during TUI initialization or after authentication. Multiple reports of this exact error suggest a critical issue introduced in v1.1.12. Feel free to ignore if your specific case differs from these reports.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4705