Skip to content

opentui: fatal: undefined is not an object (evaluating 'agents()[0].name') #4111

Closed

Description

@mschenk42

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/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:475:12)
    at runComputation (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:724:3)
    at devComponent (../../node_modules/.bun/solid-js@1.9.9/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/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:1057:29)
    at runComputation (../../node_modules/.bun/solid-js@1.9.9/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

Image

Operating System

macOS Sequoia 15.7.1

Terminal

Ghostty 1.2.3

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 9, 2025
  2. github-actions commented on Nov 9, 2025

    @github-actions
    Contributor

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

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

  3. mschenk42 commented on Nov 9, 2025

    @mschenk42
    Author

    I just tried version 1.0.51 and I'm no longer getting the error. I'll keep testing to make sure. Thank you!

  4. thdxr commented on Nov 9, 2025

    @thdxr
    Member

    yep i think i fixed it - sorry about that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions