Skip to content

feat: add undo/fork buttons on user messages and show agent description in prompt placeholder #13265

@cooooooooooode

Description

@cooooooooooode

Feature request

Is your feature request related to a problem?

Currently there is no way to undo (revert) a user message or fork a conversation from a specific message in the web UI. Users have to start a new session manually. Additionally, the prompt input placeholder does not reflect which agent is currently selected.

Describe the solution you'd like

  1. Add undo and fork action buttons on user messages:

    • Undo: aborts the running session and reverts the message
    • Fork: creates a new session branching from the selected message (preserving it)
    • Both actions use a two-step confirmation (click to highlight → tooltip shows confirm text → 3s timeout resets)
  2. Show the current agent's description as the prompt input placeholder in the format "I am {name}, {description}" with full i18n support.

Describe alternatives you've considered

Using keyboard shortcuts or a context menu, but inline buttons are more discoverable.

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktop

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions