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

Closed
opened 2026-02-16 17:44:35 -05:00 by yindo · 2 comments
Owner

Originally created by @eislambey on GitHub (Jan 9, 2026).

Originally assigned to: @kommander on GitHub.

Description

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

Plugins

~

OpenCode version

1.1.10

Steps to reproduce

  1. prompt something, wait for response
  2. type something but dont send
  3. press ctrl x+n and start new chat
  4. send the prompt you typed in step 2

Screenshot and/or share link

Image Image Image

Operating System

Fedora 43

Terminal

Gnome terminal

Originally created by @eislambey on GitHub (Jan 9, 2026). Originally assigned to: @kommander on GitHub. ### Description ``` 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)... ``` ### Plugins ~ ### OpenCode version 1.1.10 ### Steps to reproduce 1. prompt something, wait for response 2. type something but dont send 3. press ctrl x+n and start new chat 4. send the prompt you typed in step 2 ### Screenshot and/or share link <img width="1360" height="816" alt="Image" src="https://github.com/user-attachments/assets/cc16623f-bb5d-42e3-9227-7d3b83829de0" /> <img width="1360" height="816" alt="Image" src="https://github.com/user-attachments/assets/89e134e2-793f-45b6-9e3c-edf0d8dc5daf" /> <img width="1360" height="816" alt="Image" src="https://github.com/user-attachments/assets/c0ec41b5-e78c-40ec-ae9a-fb9bc1bc666b" /> ### Operating System Fedora 43 ### Terminal Gnome terminal
yindo added the opentuibug labels 2026-02-16 17:44:35 -05:00
yindo closed this issue 2026-02-16 17:44:35 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 9, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7528: Same error (input.setText) when selecting in fork modal
  • #7465: Same error when switching sessions multiple times
  • #7452: Same error after forking sessions
  • #7539: Broken TUI on 1.1.10 (related to same error)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 9, 2026): This issue might be a duplicate of existing issues. Please check: - #7528: Same error (input.setText) when selecting in fork modal - #7465: Same error when switching sessions multiple times - #7452: Same error after forking sessions - #7539: Broken TUI on 1.1.10 (related to same error) Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 11, 2026):

should be fixed in next release by: https://github.com/anomalyco/opencode/pull/7702

@rekram1-node commented on GitHub (Jan 11, 2026): should be fixed in next release by: https://github.com/anomalyco/opencode/pull/7702
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4561