Skip to content

TypeError: undefined is not an object (evaluating 'local.agent.current().name') during Google login #7932

Closed as duplicate

Description

@wildcatDownstairs

Description

A fatal error occurs in the TUI when attempting to log in using a Google account. The application crashes immediately after the authentication process, displaying a "TypeError" regarding an undefined object.

Error Logs:
TypeError: undefined is not an object (evaluating 'local.agent.current().name')
at (src/cli/cmd/tui/component/prompt/index.tsx:840:75)
at (../../node_modules/.bun/@OpenTui+solid@0.1.72+897ebc1644d3edd0/node_modules/@opentui/solid/index.js:148:62)
at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22)
at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3)
...
at setStore (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/store/dist/dev.js:221:5)
at processTicksAndRejections (native:7:39)

Plugins

None

OpenCode version

1.1.14

Steps to reproduce

  1. Open the OpenCode TUI in the terminal.
  2. Select the option to log in via Google.
  3. Complete the authentication process in the web browser.
  4. Return to the terminal, and the crash occurs.

Screenshot and/or share link

No response

Operating System

macOS 26.3 Beta (Build 25D5087f)

Terminal

iTerm2 Build 3.6.6

Activity

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

    @github-actions
    Contributor

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

    All three issues report the same TypeError related to local.agent.current() being undefined during authentication, which appears to be a broader issue affecting multiple authentication methods (Google, OpenAI, etc.). Feel free to ignore if your case involves different circumstances.

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

Metadata

Metadata

Assignees

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