opencode icon indicating copy to clipboard operation
opencode copied to clipboard

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

Open Wil-Collier opened this issue 1 week ago • 1 comments

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/[email protected]/node_modules/solid-js/dist/dev.js:475:12)
    at runComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:724:3)
    at devComponent (../../node_modules/.bun/[email protected]/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/[email protected]/node_modules/solid-js/dist/dev.js:1531:21)...

Plugins

No response

OpenCode version

1.1.11

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macos 26.2

Terminal

warp v0.2025.12.17.17.17.stable_02

Wil-Collier avatar Jan 10 '26 10:01 Wil-Collier

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

  • #7581: Same error - undefined is not an object (evaluating 'input.setText')
  • #7541: Same error - undefined is not an object (evaluating 'input.setText')
  • #7528: Same error - undefined is not an object (evaluating 'input.setText')
  • #7465: Same error - undefined is not an object (evaluating 'input.setText')
  • #7452: Same error - undefined is not an object (evaluating 'input.setText')

Feel free to ignore if this addresses your specific case or if you have additional details not covered in those issues.

github-actions[bot] avatar Jan 10 '26 10:01 github-actions[bot]

Could you include more details on when you exactly you see this error/what operations you were performing?

itsrainingmani avatar Jan 10 '26 14:01 itsrainingmani

I used the keyboard shortcut to start a new session, typed a prompt, hit enter, it then crashed immediately after.

Wil-Collier avatar Jan 11 '26 03:01 Wil-Collier

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

rekram1-node avatar Jan 11 '26 06:01 rekram1-node