Skip to content

opentui: Arrow Up/Down in input cause segfaults #3221

Closed

Description

@Isos9

Hi,

When I use the arrow down or up with opentui, it just crashes the TUI, here is the log:

=== FATAL ERROR OCCURRED ===
Console cache:
2025-10-16T16:50:27.289Z LOG server.connected
2025-10-16T16:50:27.308Z LOG
2025-10-16T16:50:27.313Z LOG {"type":"home"}
2025-10-16T16:50:31.923Z ERROR TypeError: undefined is not an object (evaluating 'store.prompt.input')
Error details:
undefined is not an object (evaluating 'store.prompt.input')
Error
    at <anonymous> (/$bunfs/root/src/index.js:129571:143)
    at runComputation (/$bunfs/root/src/index.js:123052:24)
    at updateComputation (/$bunfs/root/src/index.js:123035:17)
    at runTop (/$bunfs/root/src/index.js:123158:24)
    at runUserEffects (/$bunfs/root/src/index.js:123271:13)
    at runUpdates (/$bunfs/root/src/index.js:123179:20)
    at completeUpdates (/$bunfs/root/src/index.js:123239:15)
    at runUpdates (/$bunfs/root/src/index.js:123180:20)
    at setStore (/$bunfs/root/src/index.js:126741:10)
    at <anonymous> (/$bunfs/root/src/index.js:129463:19)

Activity

  1. github-actions commented on Oct 16, 2025

    @github-actions
    Contributor

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

    The error you're experiencing with "undefined is not an object (evaluating 'store.prompt.input')" appears to be specific to the opentui branch and related to input handling when using arrow keys for navigation.

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

  2. Isos9 commented on Oct 16, 2025

    @Isos9
    Author

    Forgot to mention that it's on Alacritty

  3. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Oct 19, 2025
  4. thdxr commented on Oct 21, 2025

    @thdxr
    Member

    can you reproduce this on latest? i think we fixed the stack trace so it shows more useful info

  5. Isos9 commented on Oct 21, 2025

    @Isos9
    Author

    well now it doesn't crash anymore, it cycle through previous messages

  6. thdxr commented on Oct 22, 2025

    @thdxr
    Member

    believe this is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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