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

Closed
opened 2026-02-16 17:45:34 -05:00 by yindo · 1 comment
Owner

Originally created by @wildcatDownstairs on GitHub (Jan 12, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @wildcatDownstairs on GitHub (Jan 12, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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 <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:840:75) at <anonymous> (../../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
yindo added the opentuibug labels 2026-02-16 17:45:34 -05:00
yindo closed this issue 2026-02-16 17:45:34 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 12, 2026):

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

  • #7931: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - Identical error without specific authentication type
  • #7918: Crash when local.agent.current() returns undefined during startup/auth - Same root cause affecting authentication flow
  • #7550: opentui: TUI crashes after successful native OpenAI account connection (TypeError: local.agent.current() is undefined) - Similar crash pattern during authentication completion

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.

@github-actions[bot] commented on GitHub (Jan 12, 2026): This issue might be a duplicate of existing issues. Please check: - #7931: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - Identical error without specific authentication type - #7918: Crash when local.agent.current() returns undefined during startup/auth - Same root cause affecting authentication flow - #7550: opentui: TUI crashes after successful native OpenAI account connection (TypeError: local.agent.current() is undefined) - Similar crash pattern during authentication completion 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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4821