github / github/app

Allow forking a session without creating a worktree

Open
#3,023 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
2.1k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

## Summary

As a user, I want to fork a full session while reusing the current checkout so that I can preserve the session context without creating a worktree.

## Problem

Worktrees are not practical for some large repositories because they can take a long time to create or cannot build independently.

## Current workaround

Use `/fork` in Copilot CLI, then continue the forked session in either the CLI or the app.

## Proposed behavior

When forking a session, allow the user to choose between:

- Creating a separate worktree
- Reusing the current checkout

The fork should preserve the parent session's context and support nested-session workflows.

## Expected outcome

Users can work on related tasks from the same session context without creating an impractical worktree.

Contributor guide

Open the contributing guide

Research direction

Start with the existing /fork behavior in Copilot CLI and trace how a fork continues in the CLI or app. Define the choice between creating a worktree and reusing the current checkout, then verify that the fork preserves session context and supports nested-session workflows.

Written by the indexing model from the issue text.

Assessment

Tech stack
github
Domain
cli, desktop, developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.