github / github/app

Allow forking a session without creating a worktree

未关闭
#3,023 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
没有语言数据
星标
2.1k
派生
153
PR 合并指标
30 天内没有已合并 PR

描述

## 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.

贡献指南

打开贡献指南

调研方向

从 Copilot CLI 中现有的 /fork 行为开始,跟踪 fork 如何在 CLI 或 app 中继续。定义创建 worktree 与复用当前 checkout 之间的选择,然后验证 fork 是否保留会话上下文并支持嵌套会话工作流。

由索引模型根据 Issue 内容生成。

评估

技术栈
github
领域
cli, desktop, developer-experience
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。