opentui: No input history -> Up arrow crashes the app #2265

Open
opened 2026-02-16 17:34:53 -05:00 by yindo · 5 comments
Owner

Originally created by @veracioux on GitHub (Oct 24, 2025).

Originally assigned to: @thdxr on GitHub.

Description

See title.

@rekram1-node I'll try to fix it, so you can assign to me if u want.

OpenCode version

No response

Steps to reproduce

  1. Use a fresh installation
  2. Open the TUI
  3. Press Up arrow key
  4. App crashes

Screenshot and/or share link

No response

Operating System

No response

Terminal

alacritty

Originally created by @veracioux on GitHub (Oct 24, 2025). Originally assigned to: @thdxr on GitHub. ### Description See title. @rekram1-node I'll try to fix it, so you can assign to me if u want. ### OpenCode version _No response_ ### Steps to reproduce 1. Use a fresh installation 2. Open the TUI 3. Press Up arrow key 4. App crashes ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal alacritty
yindo added the opentuibug labels 2026-02-16 17:34:53 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 24, 2025):

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

  • #3221: Very similar issue about arrow keys causing segfaults in opentui - was closed with a fix

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

@github-actions[bot] commented on GitHub (Oct 24, 2025): This issue might be a duplicate of existing issues. Please check: - #3221: Very similar issue about arrow keys causing segfaults in opentui - was closed with a fix Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 24, 2025):

can you show the stack trace here?

@rekram1-node commented on GitHub (Oct 24, 2025): can you show the stack trace here?
Author
Owner

@towry commented on GitHub (Oct 24, 2025):

=== FATAL ERROR OCCURRED ===
Console cache:
2025-10-24T16:04:19.545Z LOG event,server.connected
2025-10-24T16:04:19.568Z LOG {"type":"home"}
2025-10-24T16:05:11.047Z ERROR TypeError: undefined is not an object (evaluating 'current.input')
Error details:
undefined is not an object (evaluating 'current.input')
Error
    at move (src/cli/cmd/tui/component/prompt/history.tsx:21:14)
    at <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:308:7)
    at <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:275:13)
    at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.30+b77b4147c966717f/node_modules/@opentui/core/index-0qmm1k4p.js:9170:32)
    at emitWithPriority (../../node_modules/.bun/@opentui+core@0.1.30+b77b4147c966717f/node_modules/@opentui/core/index-0qmm1k4p.js:2328:11)
    at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.30+b77b4147c966717f/node_modules/@opentui/core/index-0qmm1k4p.js:2276:9)
    at emit (node:events:95:22)
    at addChunk (internal:streams/readable:265:47)
    at readableAddChunkPushByteMode (internal:streams/readable:243:18)
    at internalRead (unknown:38:40)
    at processTicksAndRejections (unknown:7:39)
⏎
@towry commented on GitHub (Oct 24, 2025): ``` === FATAL ERROR OCCURRED === Console cache: 2025-10-24T16:04:19.545Z LOG event,server.connected 2025-10-24T16:04:19.568Z LOG {"type":"home"} 2025-10-24T16:05:11.047Z ERROR TypeError: undefined is not an object (evaluating 'current.input') Error details: undefined is not an object (evaluating 'current.input') Error at move (src/cli/cmd/tui/component/prompt/history.tsx:21:14) at <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:308:7) at <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:275:13) at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.30+b77b4147c966717f/node_modules/@opentui/core/index-0qmm1k4p.js:9170:32) at emitWithPriority (../../node_modules/.bun/@opentui+core@0.1.30+b77b4147c966717f/node_modules/@opentui/core/index-0qmm1k4p.js:2328:11) at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.30+b77b4147c966717f/node_modules/@opentui/core/index-0qmm1k4p.js:2276:9) at emit (node:events:95:22) at addChunk (internal:streams/readable:265:47) at readableAddChunkPushByteMode (internal:streams/readable:243:18) at internalRead (unknown:38:40) at processTicksAndRejections (unknown:7:39) ⏎ ```
Author
Owner

@veracioux commented on GitHub (Oct 24, 2025):

yep that's the one, thanks @towry

@veracioux commented on GitHub (Oct 24, 2025): yep that's the one, thanks @towry
Author
Owner

@rekram1-node commented on GitHub (Oct 24, 2025):

gracias

@rekram1-node commented on GitHub (Oct 24, 2025): gracias
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2265