Skip to content

[FEATURE]: simpler history interaction and management #16355

Closed as not planned
Closed as not planned

Description

@lee-b

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The behaviour of history is "complex". Ctrl-X U undoes in the visible history, Ctrl-X R redoes in the visible history, up-arrow navigates to previous historical entries, but in the current entry box. Some combinations of undo/redo via Ctrl-X seem to create bugs where the lines are duplicated. I think there is unclear interaction between git snapshots / worktrees going on in the background as you undo and redo. Behavior seems to get even more complex if multiple instances of opencode are being used in the same directory tree at different levels at the same time.

I'd propose a simple Ctrl-UpArrow to actually visually navigate through (i.e., highlight) past message history, include the agent's side of the conversation, with a midnight-commander style command bar of common options for that item type displayed below it: regenerate, copy to input editor, copy, save to file, etc.

This has the advantage of becoming more capable over time: options like spawn in text editor, delete, revert code to this point, fork in a new instance with a new worktree, spawn a new agent from this point with a different task, etc. all become possible with this message history navigation approach.

Other tickets are proposing Ctrl-R to do a reverse history search, matching GNU Readline and other tools. This would fit naturally here as the forward/reverse history searches could visibly select the match in the history, were you'd see the surrounding context too.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Mar 6, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 6, 2026
  3. github-actions commented on Mar 6, 2026

    @github-actions
    Contributor

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


    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  4. assigned and unassigned on Apr 26, 2026
  5. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  6. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions