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 #5830 · anomalyco/opencode

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

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

Description

@tsopito
tsopito
opened on Dec 20, 2025
Issue body actions

Description

TypeError: undefined is not an object (evaluating 'agents()[0].name')
    at <anonymous> (src/cli/cmd/tui/context/local.tsx:53:27)
    at init (src/cli/cmd/tui/context/local.tsx:50: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.174

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. tsopito
    added
    bugSomething isn't working
    on Dec 20, 2025
  2. github-actions
    assigned
    rekram1-node
    on Dec 20, 2025
  3. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 20, 2025
  4. github-actions commented on Dec 20, 2025

    @github-actions
    github-actionsBot
    on Dec 20, 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 'agents()[0].name') #4111: opentui: fatal: undefined is not an object (evaluating 'agents()[0].name') - Same error, occurs when connecting to remote OpenCode headless server
    • [FEATURE]: OpenCode GitHub Actions can't work with disabled default agents #4578: OpenCode GitHub Actions can't work with disabled default agents - Related issue where the error occurs when default agents are disabled

    Both issues suggest that the problem is in src/cli/cmd/tui/context/local.tsx where agents()[0].name is accessed without checking if agents array is empty or defined. This happens when no agents are available to the current session.

    Feel free to ignore if your specific case is different from these scenarios (e.g., remote connection or disabled agents).

  5. rekram1-node commented on Dec 20, 2025

    @rekram1-node
    rekram1-node
    on Dec 20, 2025
    Member
    More actions

    @tsopito can u share:

    opencode debug config

  6. rekram1-node commented on Dec 20, 2025

    @rekram1-node
    rekram1-node
    on Dec 20, 2025
    Member
    More actions

    It looks like all ur primary agents are disabled, Ill adjust the code so we have cleaner error for this but this is a config issue on ur end

  7. rekram1-node commented on Dec 20, 2025

    @rekram1-node
    rekram1-node
    on Dec 20, 2025
    Member
    More actions

    Should fix it (as in better error):
    d61b04a

  8. rekram1-node
    closed this as completedon Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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.