Repository navigation
opentui: fatal: undefined is not an object (evaluating 'prompt.set') #7783
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
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)
at navigate (src/cli/cmd/tui/context/route.tsx:18:9)
at onSelect (src/cli/cmd/tui/app.tsx:344:13)
at <anonymous> (src/cli/cmd/tui/component/dialog-command.tsx:32:16)
at emitWithPriority (../../node_modules/.bun/@opentui+core@0.1.72+81ecd8642a1892ca/node_modules/@opentui/core/index-cr95zpf8.js:2480:11)
at processInput (../../node_modules/.bun/@opentui+core@0.1.72+81ecd8642a1892ca/node_modules/@opentui/core/index-cr95zpf8.js:2440:16)
at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.72+81ecd8642a1892ca/node_modules/@opentui/core/index-cr95zpf8.js:16082:13)
at emit (node:events:95:22)
at process (../../node_modules/.bun/@opentui+core@0.1.72+81ecd8642a1892ca/node_modules/@opentui/core/index-cr95zpf8.js:6121:12)
at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.72+81ecd8642a1892ca/node_modules/@opentui/core/index-cr95zpf8.js:16017:23)
at emit (node:events:95:22)
at addChunk (internal:streams/readable:264:47)
at readableAddChunkPushByteMode (internal:streams/readable:242:18)
at internalRead (native:38:40)
at processTicksAndRejections (native:7:39)...
Plugins
none
OpenCode version
1.1.13
Steps to reproduce
- This happens when trying to create a new session using ctrl + x + n. Using current claude max sub, which will be cancelled tomorrow, so idk if this affects this
Screenshot and/or share link
Operating System
macOS 15.7.2 (Sequoia)
Terminal
ghostty latest version
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Activity
github-actions commentedon Jan 11, 2026
This issue might be a duplicate of existing issues with similar 'undefined is not an object' errors in the opentui module. Please check:
These errors suggest a broader issue with component initialization or state management in the TUI. Feel free to ignore if this is specifically related to session creation (Ctrl+X+N) rather than other session operations.