Skip to content

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

Closed

Description

@guillemus

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 11, 2026
  2. github-actions commented on Jan 11, 2026

    @github-actions
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions