[PR #2615] Fix(session - tui): /undo command keeps child session and timeline #10374

Closed
opened 2026-02-16 18:15:00 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2615

State: closed
Merged: No


Commit 1: removed reverted messages from rendering in the Timeline Dialog, as when clicked the message is tried to be focused but cant since its not displayed on the main window.

Commit 2: added optional parentMessageID to session structure to be used by child sessions, and passing the triggerMessageID to the ToolCall, so it can be stored in the Child Session Object.

  • Lets us know the user message that triggered a tool to create the child session
  • Can prevent child session from being navigated to when the message has been reverted
  • Can delete the individual child session when the triggering message was reverted

Potential fix for issue #2612

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2615 **State:** closed **Merged:** No --- Commit 1: removed reverted messages from rendering in the Timeline Dialog, as when clicked the message is tried to be focused but cant since its not displayed on the main window. Commit 2: added optional parentMessageID to session structure to be used by child sessions, and passing the triggerMessageID to the ToolCall, so it can be stored in the Child Session Object. - Lets us know the user message that triggered a tool to create the child session - Can prevent child session from being navigated to when the message has been reverted - Can delete the individual child session when the triggering message was reverted Potential fix for issue #2612
yindo added the pull-request label 2026-02-16 18:15:00 -05:00
yindo closed this issue 2026-02-16 18:15:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10374