github / github/copilot-cli

Session and prompt lost when stopping an action or hitting the stop button

未关闭
#4,477 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

area:sessions
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

Bug Report

Description

When a user stops an in-progress action (e.g., hits the stop button during agent execution), the entire session — including the original prompt and any edits made to it — is deleted. This has happened multiple times.

Steps to Reproduce
  1. Create a new session with a detailed prompt
  2. The agent begins executing
  3. Hit the "stop" button to cancel the action
  4. The session disappears entirely — prompt, conversation history, and session are gone
Expected Behavior

Stopping an action should halt execution but preserve the session, the original prompt, and any conversation history up to that point. The user should be able to resume or re-run from that state.

Actual Behavior

The entire session is deleted, including the user's original prompt and any iterative edits they made to it. There is no way to recover the work.

Impact
  • Loss of detailed, carefully crafted prompts that took time to write and iterate on
  • User has to recreate the prompt from memory, losing edits made in the previous session
  • Erodes trust in the tool for complex, multi-turn prompt development
Additional Context
  • Reported by a user in the github/lifecyclemarketing project
  • Has occurred multiple times (not a one-off)
  • The lost session involved a complex weekly digest workflow prompt that had been edited several times before the stop action was triggered

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

通过创建一个包含已编辑 prompt 的会话、启动一个操作并按下停止按钮来复现该问题。跟踪停止/取消路径,以确定会话在哪个位置被删除;当执行停止,同时 prompt、编辑内容、对话历史记录和会话仍可用于恢复或重新运行时,即表示完成。

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

评估

技术栈
shell
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

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