github / github/app

Add in-session undo/rewind capability (like CLI's /undo / VSCode checkpoints)

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

描述

Thank you for sharing an idea. Please describe the workflow and the problem you want the GitHub App to solve.

### Feature summary
Add in-session undo/rewind to roll back conversation history and file changes to a previous prompt, similar to Copilot CLI's `/undo` / double-Esc rewind and VSCode's checkpoint restore.

### What problem are you trying to solve?
The GitHub App desktop currently has no way to undo changes or rewind conversation history within a session. If an agent makes unwanted modifications ? or if I simply want to revisit an earlier approach without losing context ? the only option is to discard the entire session and start over, which wastes time, tokens, and prior useful context.

Both Copilot CLI (`/undo`, `/rewind`, double-Esc rewind picker) and VSCode (checkpoints with Restore Checkpoint) have this capability. The desktop app, being built on Copilot CLI, is the only surface missing it. This creates a noticeable gap for users who rely on the desktop app for agent-driven development.

### Proposed solution
Introduce an undo/rewind mechanism in the desktop app session. Ideally:
- A way to view recent prompts as rewind points in the conversation timeline (similar to CLI's rewind picker).
- Selecting a point rewinds the conversation and optionally restores files to the state at that prompt.
- Visual indication (e.g. a button or right-click option on previous messages) to rewind to here, similar to VSCode's checkpoint hover behavior.

Since the app uses isolated git worktrees per session, the underlying infrastructure (snapshots per prompt, git-based rewind) could reuse the same mechanism Copilot CLI already implements.

### Workflow impact
All desktop app users would benefit. This is especially impactful for:
- Users running long agent sessions where mistakes happen midway and restarting is costly.
- Users coming from CLI or VSCode who expect comparable session control in the desktop app.
- Teams adopting the desktop app as their primary Copilot surface.

### Installation context
Individual install (Copilot Pro / Pro+).

### Additional context
- CLI rewind docs: https://docs.github.com/en/copilot/how-tos/copilot-cli/roll-back-changes
- VSCode checkpoints docs: https://code.visualstudio.com/docs/chat/chat-checkpoints
- The app already has session-level isolation (git worktrees per session) ? prompt-level snapshots would be a natural extension.

贡献指南

打开贡献指南

调研方向

Issue 中未标识实现文件、测试或入口点。首先查看链接的 Copilot CLI 回滚和 VSCode 检查点文档,然后跟踪桌面应用现有的会话和 worktree 处理方式。完成的标准是用户可以选择之前的 prompt、回退会话状态,并可选择恢复文件而不丢弃会话。

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

评估

技术栈
github
领域
desktop, devtools
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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