Skip to content

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

Closed

Description

@veracioux

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

Activity

  1. github-actions commented on Oct 24, 2025

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Oct 24, 2025

    @rekram1-node
    Contributor

    can you show the stack trace here?

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

    @towry
    === 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)
    ⏎
    
  5. veracioux commented on Oct 24, 2025

    @veracioux
    ContributorAuthor

    yep that's the one, thanks @towry

  6. rekram1-node commented on Oct 24, 2025

    @rekram1-node
    Contributor

    gracias

  7. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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