Skip to content

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

@wildcatDownstairs

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

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