GeezerVison is showing github.com — opentui: fatal: undefined is not an object (evaluating 'agents()[0].name') · Issue #4111 · anomalyco/opencode
opentui: fatal: undefined is not an object (evaluating 'agents()[0].name') #4111
Labels
bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui Description
Description
TypeError: undefined is not an object (evaluating 'agents()[0].name')
at <anonymous> (src/cli/cmd/tui/context/local.tsx:50:27)
at init (src/cli/cmd/tui/context/local.tsx:47:19)
at provider (src/cli/cmd/tui/context/helper.tsx:8:26)
at untrack (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:475:12)
at runComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:742:22)
at updateComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:724:3)
at devComponent (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:593:3)
at children (src/cli/cmd/tui/context/helper.tsx:18:24)
at <anonymous> (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:1057:29)
at runComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:742:22)...
OpenCode version
1.0.50
Steps to reproduce
I am encountering an issue while attempting to connect to a remote OpenCode headless server. However, if I execute the client (rather than attach) on the remote host, the operation is successful. This functionality was previously working, but it has begun to fail today. I suspected that an upgrade issue might be the cause, but I reverted to the previously working release, which is now also failing.
opencode attach http://ssds-meta-store.ai-services.svc.cluster.local:4096
Screenshot and/or share link
Operating System
macOS Sequoia 15.7.1
Terminal
Ghostty 1.2.3
Activity
github-actions commented on Nov 9, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
mschenk42 commented on Nov 9, 2025
I just tried version 1.0.51 and I'm no longer getting the error. I'll keep testing to make sure. Thank you!
thdxr commented on Nov 9, 2025
yep i think i fixed it - sorry about that
Reacted by Michael Schenk
Metadata
Metadata
bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui Development
No branches or pull requestsIssue actions