GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

New issue
Copy link
New issue
Copy link
Closed
Closed
opentui: fatal: undefined is not an object (evaluating 'agents()[0].name')#4111
Copy link
Labels
bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Description

@mschenk42
mschenk42
opened on Nov 9, 2025
Issue body actions

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

Image

Operating System

macOS Sequoia 15.7.1

Terminal

Ghostty 1.2.3

Activity

  1. mschenk42
    added
    bugSomething isn't working
    on Nov 9, 2025
  2. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 9, 2025
  3. github-actions commented on Nov 9, 2025

    @github-actions
    github-actionsBot
    on Nov 9, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • opentui: fatal: undefined is not an object (evaluating 'flat().length') #4101: Similar "undefined is not an object" error pattern with opentui component crash, both involving evaluation failures in the TUI context
    • opentui: fatal: undefined is not an object (evaluating 'lines().length') #3934: Same error pattern "undefined is not an object (evaluating 'lines().length')" - similar SolidJS stack trace and opentui component crashes
    • opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') #4110, opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') #4108, opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') #4106, opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') #4105, opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') #4104: Recent closed issues with nearly identical "undefined is not an object (evaluating 'local.model.parsed().model')" errors - these were recently resolved and may contain the fix

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

  4. mschenk42 commented on Nov 9, 2025

    @mschenk42
    mschenk42
    on Nov 9, 2025
    Author
    More actions

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

  5. thdxr commented on Nov 9, 2025

    @thdxr
    thdxr
    on Nov 9, 2025
    Member
    More actions

    yep i think i fixed it - sorry about that

    Reacted by Michael Schenk
  6. thdxr
    closed this as completedon Nov 9, 2025
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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.