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

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

Originally created by @melnikov-s 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:123: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

run opencode --prompt "anything"

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @melnikov-s 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:123: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 run `opencode --prompt "anything"` ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the opentuibug labels 2026-02-16 17:45:23 -05:00
yindo closed this issue 2026-02-16 17:45:23 -05:00
Author
Owner

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

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

  • #7818: opentui: fatal: undefined is not an object (evaluating 'prompt.set') - Identical error and stack trace, reported earlier

Additionally, this issue may be related to:

  • #7485: using --prompt should wait for prompt configuration loading - Reports the --prompt flag causing issues with model selection and configuration loading timing

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #7818: opentui: fatal: undefined is not an object (evaluating 'prompt.set') - Identical error and stack trace, reported earlier Additionally, this issue may be related to: - #7485: using --prompt should wait for prompt configuration loading - Reports the --prompt flag causing issues with model selection and configuration loading timing Feel free to ignore if none of these address your specific case.
Author
Owner

@melnikov-s commented on GitHub (Jan 11, 2026):

This is specific to 1.1.13

for a workaround downgrade to .12

opencode upgrade 1.1.12

You'll probably want to disable auto-upgrade for now too.

Add

{
  "autoupdate": false
}

to your config.

@melnikov-s commented on GitHub (Jan 11, 2026): This is specific to 1.1.13 for a workaround downgrade to .12 ` opencode upgrade 1.1.12` You'll probably want to disable auto-upgrade for now too. Add ``` { "autoupdate": false } ``` to your config.
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#4772