Skip to content

tui: selecting a message in fork modal does not fork session #36323

Description

@ewatch

Summary

Selecting a message in the session fork modal has no effect. The message is not selected and the modal remains unchanged, preventing the session from being forked at an earlier point in its history.

Environment

  • opencode version: OpenCode v2 0.0.0-next-15311
  • OS: Darwin 25.3.0, arm64
  • Terminal: Ghostty, TERM=xterm-256color, COLORTERM=truecolor
  • Shell: /bin/zsh
  • Install/channel: v2 next
  • Active plugins:
    • ./plugins/cmux-session.js
    • ./plugins/cmux-feed.js

Reproduction

  1. Open an existing conversation with multiple messages.
  2. Open the session fork modal.
  3. Navigate through the conversation history.
  4. Select a message using the keyboard.
  5. Repeat by selecting a message with the mouse.

Expected Behavior

The selected message should be visibly selected and the session should be forked from that point in the conversation history.

Actual Behavior

Selecting a message has no effect. The message is not selected, no fork is created, and the modal remains in the same state.

The behavior occurs with both keyboard and mouse input.

Additional Context

The goal was to fork the session before an issue-reporting exchange so that the reporting content would not remain in the code-review context.

The problem has only been observed in this session so far, so it is not yet known whether it affects every session or depends on this session's history or state.

No workaround has been found.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

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