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

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

Originally created by @guillemus 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)
    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

  1. 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

Image

Operating System

macOS 15.7.2 (Sequoia)

Terminal

ghostty latest version

Originally created by @guillemus 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) 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 1. 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 <img width="871" height="1045" alt="Image" src="https://github.com/user-attachments/assets/91d377ef-7b13-48d3-815c-b00547e3b6ab" /> ### Operating System macOS 15.7.2 (Sequoia) ### Terminal ghostty latest version
yindo added the opentuibug labels 2026-02-16 17:45:10 -05:00
yindo closed this issue 2026-02-16 17:45:10 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (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:

  • #7771: undefined is not an object (evaluating 'input.setText') - Similar error pattern occurring during session operations
  • #7778: undefined is not an object (evaluating 'local.agent.current().name') - Related initialization error
  • #6977: undefined is not an object (evaluating 'session().parentID') - Related session state error

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.

@github-actions[bot] commented on GitHub (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: - #7771: undefined is not an object (evaluating 'input.setText') - Similar error pattern occurring during session operations - #7778: undefined is not an object (evaluating 'local.agent.current().name') - Related initialization error - #6977: undefined is not an object (evaluating 'session().parentID') - Related session state error 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4725