opentui: fatal: undefined is not an object (evaluating 'input.setText') #4938

Closed
opened 2026-02-16 17:46:48 -05:00 by yindo · 0 comments
Owner

Originally created by @allisoneer on GitHub (Jan 12, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Openened this AM and got this. I've gotten it a handful of times (or something that looks similar). I normally just restart and it works the second time. Hmmm, it might happen specifically when I Try and fork an older message. e.g. when I wasn't in the chat beforehand.

Oh it could also be related to the fact that I am forking something specifically that was a slash command? And there seems to be a delay when I first open opencode and when slash commands are populated. Although I think the underlying storage of the user message (after the slash command is expanded and sent) is just the pure text after the expansion.

TypeError: undefined is not an object (evaluating 'input.setText')
    at set (src/cli/cmd/tui/component/prompt/index.tsx:412:7)
    at ref (src/cli/cmd/tui/routes/session/index.tsx:1055:21)
    at Prompt (src/cli/cmd/tui/component/prompt/index.tsx:398:9)
    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 devComponent (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:593:3)
    at <anonymous> (src/cli/cmd/tui/routes/session/index.tsx:1046:29)
    at children (src/cli/cmd/tui/routes/session/index.tsx:1068:20)
    at <anonymous> (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:1531:21)
    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 runQueue (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:904:42)
    at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:860:84)
    at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5)
    at flush (src/cli/cmd/tui/context/sdk.tsx:29:7)...

Plugins

None

OpenCode version

0.0.0-dev-202601101658

Steps to reproduce

Idk it happens randomly I haven't observed it. And I haven't been able to replicate it yet. It seems to be something related to a freshly opened opencode. Or forking maybe.

Screenshot and/or share link

No response

Operating System

arch linux (latest probably) with wayland

Terminal

Ghostty

Originally created by @allisoneer on GitHub (Jan 12, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Openened this AM and got this. I've gotten it a handful of times (or something that looks similar). I normally just restart and it works the second time. Hmmm, it might happen specifically when I Try and fork an older message. e.g. when I wasn't in the chat beforehand. Oh it could also be related to the fact that I am forking something specifically that was a slash command? And there seems to be a delay when I first open opencode and when slash commands are populated. Although I think the underlying storage of the user message (after the slash command is expanded and sent) is just the pure text after the expansion. ``` TypeError: undefined is not an object (evaluating 'input.setText') at set (src/cli/cmd/tui/component/prompt/index.tsx:412:7) at ref (src/cli/cmd/tui/routes/session/index.tsx:1055:21) at Prompt (src/cli/cmd/tui/component/prompt/index.tsx:398:9) 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 devComponent (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:593:3) at <anonymous> (src/cli/cmd/tui/routes/session/index.tsx:1046:29) at children (src/cli/cmd/tui/routes/session/index.tsx:1068:20) at <anonymous> (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:1531:21) 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 runQueue (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:904:42) at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:860:84) at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5) at flush (src/cli/cmd/tui/context/sdk.tsx:29:7)... ``` ### Plugins None ### OpenCode version 0.0.0-dev-202601101658 ### Steps to reproduce Idk it happens randomly I haven't observed it. And I haven't been able to replicate it yet. It seems to be something related to a freshly opened opencode. Or forking maybe. ### Screenshot and/or share link _No response_ ### Operating System arch linux (latest probably) with wayland ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:46:48 -05:00
yindo closed this issue 2026-02-16 17:46:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4938