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

Closed
opened 2026-02-16 18:04:52 -05:00 by yindo · 2 comments
Owner

Originally created by @conglinyizhi on GitHub (Jan 17, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

TypeError: undefined is not an object (evaluating 'local.agent.current().name')
    at <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:841:75)
    at <anonymous> (../../node_modules/.bun/@opentui+solid@0.1.73+897ebc1644d3edd0/node_modules/@opentui/solid/index.js:148:62)
    at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3)
    at runTop (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:833:7)
    at runUserEffects (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:928:18)
    at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:849:17)
    at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:900:17)
    at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5)
    at setStore (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/store/dist/dev.js:221:5)
    at processTicksAndRejections (native:7:39)...

Plugins

oh-my-opencode

OpenCode version

1.1.23

Steps to reproduce

  1. run opencode use konsole
  2. type 'c' and delete it
  3. /model
  4. type zhipu
  5. paste enter
  6. Paste key
  7. press enter
  8. that it.

Screenshot and/or share link

Image

run on /tmp/aabb
Additionally, since this has not started a task yet, there is no /share result to provide

Operating System

Archlinux(linux 6.18.5.arch1-1)

Terminal

Konsole

Originally created by @conglinyizhi on GitHub (Jan 17, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ``` TypeError: undefined is not an object (evaluating 'local.agent.current().name') at <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:841:75) at <anonymous> (../../node_modules/.bun/@opentui+solid@0.1.73+897ebc1644d3edd0/node_modules/@opentui/solid/index.js:148:62) at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22) at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3) at runTop (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:833:7) at runUserEffects (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:928:18) at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:849:17) at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:900:17) at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5) at setStore (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/store/dist/dev.js:221:5) at processTicksAndRejections (native:7:39)... ``` ### Plugins oh-my-opencode ### OpenCode version 1.1.23 ### Steps to reproduce 1. run `opencode` use konsole 2. type 'c' and delete it 3. /model 4. type `zhipu` 5. paste enter 6. Paste key 7. press enter 8. that it. ### Screenshot and/or share link <img width="1141" height="711" alt="Image" src="https://github.com/user-attachments/assets/f4bf54f7-3bc3-4b10-a645-1f1814d44632" /> run on `/tmp/aabb` Additionally, since this has not started a task yet, there is no /share result to provide ### Operating System Archlinux(linux 6.18.5.arch1-1) ### Terminal Konsole
yindo added the opentuibug labels 2026-02-16 18:04:52 -05:00
yindo closed this issue 2026-02-16 18:04:52 -05:00
Author
Owner

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

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

  • #8018: Same error 'undefined is not an object (evaluating 'local.agent.current().name')' - CLOSED
  • #8119: Identical error during agent/model selection with authentication - CLOSED
  • #7918: Crash when local.agent.current() returns undefined during startup/auth - covers the root cause

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

@github-actions[bot] commented on GitHub (Jan 17, 2026): This issue might be a duplicate of existing issues. Please check: - #8018: Same error 'undefined is not an object (evaluating 'local.agent.current().name')' - CLOSED - #8119: Identical error during agent/model selection with authentication - CLOSED - #7918: Crash when local.agent.current() returns undefined during startup/auth - covers the root cause Feel free to ignore if none of these address your specific case.
Author
Owner

@conglinyizhi commented on GitHub (Jan 17, 2026):

After a quick review, it seems the core issue is https://github.com/anomalyco/opencode/issues/7918. If anyone wants to discuss related questions, you can follow the subsequent discussions here.

@conglinyizhi commented on GitHub (Jan 17, 2026): After a quick review, it seems the core issue is https://github.com/anomalyco/opencode/issues/7918. If anyone wants to discuss related questions, you can follow the subsequent discussions here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6655