Skip to content

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

Closed as not planned

Description

@diegohb

Description

TypeError: undefined is not an object (evaluating 'local.agent.current().name')
    at <anonymous> (B:/~BUN/root/src/index.js:360139:76)
    at <anonymous> (B:/~BUN/root/src/index.js:340490:71)
    at runComputation (B:/~BUN/root/src/index.js:339208:24)
    at updateComputation (B:/~BUN/root/src/index.js:339191:17)
    at runTop (B:/~BUN/root/src/index.js:339314:24)
    at runUserEffects (B:/~BUN/root/src/index.js:339427:13)
    at runUpdates (B:/~BUN/root/src/index.js:339335:20)
    at completeUpdates (B:/~BUN/root/src/index.js:339395:15)
    at runUpdates (B:/~BUN/root/src/index.js:339336:20)
    at <anonymous> (B:/~BUN/root/src/index.js:353062:16)
    at processTicksAndRejections (native:7:39)...

Plugins

"opencode-antigravity-auth@latest", "@franlol/opencode-md-table-formatter", "@tarquinen/opencode-dcp@latest"

OpenCode version

1.2.27

Steps to reproduce

  1. I connected to github copilot provider because i saw connection that used to be there was gone
  2. copied code and clicked on github.com link
  3. entered code in github.com
  4. noticed error

Screenshot and/or share link

Image

Operating System

Windows 11 Pro

Terminal

windows terminal -> bash4git -> opencode

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Mar 24, 2026
  2. github-actions commented on Mar 24, 2026

    @github-actions
    Contributor

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

    This error appears to be a well-known crash that occurs when local.agent.current() returns undefined during provider authentication. If your issue is specifically about Copilot auth triggering this crash, #7628 is the closest match.

  3. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  4. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions