Skip to content

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

@allisoneer

Description

@allisoneer

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

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