[PR #2786] feature(fork session): introduce fork session feature with <leader>f or f in session timeline modal #10439

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

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

State: closed
Merged: No


Summary

Fork the active session into a brand‑new one.
The fork copies existing messages (and their parts) into a new session titled: Fork of <original title>

Usage

  1. Full fork: <leader>f

    • Copies the visible conversation.
  2. Partial fork from a point:

    • Open the timeline: <leader>g
    • Move to a user message (↑/↓)
    • Press f
    • Copies session up to the selected message (inclusive, with assistant response)

Typical Uses

  • Explore an alternative approach without losing current progress.
  • Branch before a long assistant/tool sequence and try a different prompt.
  • Save a clean starting point after pruning via revert, then iterate separately.

Notes

  • Does not mutate the source session.
  • Forking during an in‑progress assistant response only captures what has completed so far. (source session streaming is not interupted)
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2786 **State:** closed **Merged:** No --- ## Summary Fork the active session into a brand‑new one. The fork copies existing messages (and their parts) into a new session titled: `Fork of <original title>` ### Usage 1. Full fork: `<leader>f` - Copies the visible conversation. 2. Partial fork from a point: - Open the timeline: `<leader>g` - Move to a user message (↑/↓) - Press `f` - Copies session up to the selected message (inclusive, with assistant response) ### Typical Uses - Explore an alternative approach without losing current progress. - Branch before a long assistant/tool sequence and try a different prompt. - Save a clean starting point after pruning via revert, then iterate separately. ### Notes - Does not mutate the source session. - Forking during an in‑progress assistant response only captures what has completed so far. (source session streaming is not interupted)
yindo added the pull-request label 2026-02-16 18:15:05 -05:00
yindo closed this issue 2026-02-16 18:15:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10439