opentui: fatal: undefined is not an object (evaluating 'prompt.set') #4755

Closed
opened 2026-02-16 17:45:17 -05:00 by yindo · 4 comments
Owner

Originally created by @1jmdev on GitHub (Jan 11, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

TypeError: undefined is not an object (evaluating 'prompt.set')
    at <anonymous> (src/cli/cmd/tui/routes/home.tsx:120:7)
    at untrack (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:475:12)
    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 runTop (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:833:7)
    at runUserEffects (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:943:36)
    at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:849:17)
    at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:900:17)
    at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5)
    at setStore (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/store/dist/dev.js:221:5)...

Plugins

No response

OpenCode version

1.1.13

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @1jmdev on GitHub (Jan 11, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ``` TypeError: undefined is not an object (evaluating 'prompt.set') at <anonymous> (src/cli/cmd/tui/routes/home.tsx:120:7) at untrack (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:475:12) 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 runTop (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:833:7) at runUserEffects (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:943:36) at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:849:17) at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:900:17) at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5) at setStore (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/store/dist/dev.js:221:5)... ``` ### Plugins _No response_ ### OpenCode version 1.1.13 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the opentuibug labels 2026-02-16 17:45:17 -05:00
yindo closed this issue 2026-02-16 17:45:17 -05:00
Author
Owner

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

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

  • #7771: opentui: fatal: undefined is not an object (evaluating 'input.setText')
  • #7778: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name')
  • #7727: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name')
  • #7630: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name')
  • #7628: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - When login copilot
  • #7550: opentui: TUI crashes after successful native OpenAI account connection (TypeError: local.agent.current() is undefined)

These are all similar undefined object evaluation errors in the TUI (solid-js) component tree. Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #7771: opentui: fatal: undefined is not an object (evaluating 'input.setText') - #7778: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - #7727: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - #7630: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - #7628: opentui: fatal: undefined is not an object (evaluating 'local.agent.current().name') - When login copilot - #7550: opentui: TUI crashes after successful native OpenAI account connection (TypeError: local.agent.current() is undefined) These are all similar undefined object evaluation errors in the TUI (solid-js) component tree. Feel free to ignore if your specific case differs from these.
Author
Owner

@markjaquith commented on GitHub (Jan 11, 2026):

This happens with opencode --prompt 'hi' and is a recent regression (past 24 hours, probably).

@markjaquith commented on GitHub (Jan 11, 2026): This happens with `opencode --prompt 'hi'` and is a recent regression (past 24 hours, probably).
Author
Owner

@markjaquith commented on GitHub (Jan 11, 2026):

Fixed in 3a30773874

@markjaquith commented on GitHub (Jan 11, 2026): Fixed in 3a30773874ccb92d085eddbab66d053c5d4e6326
Author
Owner

@rekram1-node commented on GitHub (Jan 12, 2026):

Release going out now

@rekram1-node commented on GitHub (Jan 12, 2026): Release going out now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4755