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

Closed
opened 2026-02-16 18:05:18 -05:00 by yindo · 5 comments
Owner

Originally created by @guyanawa on GitHub (Jan 19, 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.74+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.25

Steps to reproduce

I encountered this problem when connecting to Zhipu AI.

Screenshot and/or share link

No response

Operating System

Windows 10

Terminal

Windows Powershell

Originally created by @guyanawa on GitHub (Jan 19, 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.74+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.25 ### Steps to reproduce I encountered this problem when connecting to Zhipu AI. ### Screenshot and/or share link _No response_ ### Operating System Windows 10 ### Terminal Windows Powershell
yindo added the windowsopentuibug labels 2026-02-16 18:05:18 -05:00
yindo closed this issue 2026-02-16 18:05:18 -05:00
Author
Owner

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

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

  • #9393: Same error when connecting a new provider with GitHub Copilot
  • #9332: Exact same error signature
  • #9244: Exact same error signature
  • #9222: Exact same error signature

These all appear to be the same bug in src/cli/cmd/tui/component/prompt/index.tsx:841 where 'local.agent.current().name' is undefined. Feel free to ignore if your case is different, but checking those issues first might provide more context.

@github-actions[bot] commented on GitHub (Jan 19, 2026): This issue might be a duplicate of existing issues. Please check: - #9393: Same error when connecting a new provider with GitHub Copilot - #9332: Exact same error signature - #9244: Exact same error signature - #9222: Exact same error signature These all appear to be the same bug in src/cli/cmd/tui/component/prompt/index.tsx:841 where 'local.agent.current().name' is undefined. Feel free to ignore if your case is different, but checking those issues first might provide more context.
Author
Owner

@guyanawa commented on GitHub (Jan 19, 2026):

I configured a third-party API. There was a coding error in opencode.json while configuring the third-party API, so I corrected it, and the problem is solved.

@guyanawa commented on GitHub (Jan 19, 2026): I configured a third-party API. There was a coding error in opencode.json while configuring the third-party API, so I corrected it, and the problem is solved.
Author
Owner

@Tongzhao9417 commented on GitHub (Jan 19, 2026):

I configured a third-party API. There was a coding error in opencode.json while configuring the third-party API, so I corrected it, and the problem is solved.

Could you tell how to fix it? I met this problem either when I configuring the Github Copilot

@Tongzhao9417 commented on GitHub (Jan 19, 2026): > I configured a third-party API. There was a coding error in opencode.json while configuring the third-party API, so I corrected it, and the problem is solved. Could you tell how to fix it? I met this problem either when I configuring the Github Copilot
Author
Owner

@Slinet6056 commented on GitHub (Jan 21, 2026):

Could you tell how to fix it? I met this problem either when I configuring the Github Copilot

Try running opencode auth login directly in the terminal

@Slinet6056 commented on GitHub (Jan 21, 2026): > Could you tell how to fix it? I met this problem either when I configuring the Github Copilot Try running `opencode auth login` directly in the terminal
Author
Owner

@mohamedbouddi7777-dev commented on GitHub (Jan 21, 2026):

ok

في الأربعاء، ٢١ يناير ٢٠٢٦، ٠٦:١٩ Aiden Cline @.***>
كتب:

Closed #9405 https://github.com/anomalyco/opencode/issues/9405 as
duplicate.


Reply to this email directly, view it on GitHub
https://github.com/anomalyco/opencode/issues/9405#event-22178801490, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/B2DFN3UQHMLRKMCBC3NIQOT4H4D4JAVCNFSM6AAAAACSFGZKW2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMRSGE3TQOBQGE2DSMA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@mohamedbouddi7777-dev commented on GitHub (Jan 21, 2026): ok في الأربعاء، ٢١ يناير ٢٠٢٦، ٠٦:١٩ Aiden Cline ***@***.***> كتب: > Closed #9405 <https://github.com/anomalyco/opencode/issues/9405> as > duplicate. > > — > Reply to this email directly, view it on GitHub > <https://github.com/anomalyco/opencode/issues/9405#event-22178801490>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/B2DFN3UQHMLRKMCBC3NIQOT4H4D4JAVCNFSM6AAAAACSFGZKW2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMRSGE3TQOBQGE2DSMA> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6800