Skip to content

[WIP] Fix task switching and session persistence issues#387

Draft
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-error-in-task-switching
Draft

[WIP] Fix task switching and session persistence issues#387
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-error-in-task-switching

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 13, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>[用户反馈] 任务切换、/clear 持久化、执行可观测性 — 待调查</issue_title>
<issue_description>## 用户反馈

CEO 在使用过程中遇到几个关联问题,集中在任务切换、会话状态与可观测性上。

1. 错误的老任务无法真正放弃

  • 最初任务是 clone 一个仓库,因网络问题失败。
  • CEO 手动 clone 完成后,发了新指令让员工放弃原任务,顺着已有仓库继续。
  • 实际表现:员工仍然在反复尝试 clone,新指令没有覆盖/中止旧任务的循环。
  • 期望:CEO 给出"放弃/转向"指令后,应能可靠中断旧任务循环,进入新任务上下文。

2. CEO Console /clear 后刷新页面,旧对话全部回来

  • 在 CEO console 发送 /clear 清空对话,开启新会话。
  • 刷新页面后,旧对话内容又全部恢复,等同于 /clear 没有生效(或只是前端临时清空,未落盘)。
  • 期望:/clear 持久化清除对话历史,刷新不复现。

3. 任务执行期间 log 没回复,无法判断 EA 是否在干活

  • 长任务/卡住的任务,进度日志长时间无更新,CEO 无法判断 EA 是在思考、在调用工具、还是卡死。
  • 期望:心跳/进行中标识、最近一次工具调用时间戳,或至少把 EA 当前阶段暴露给前端。

4. 自定义第三方

  • 用户提到"自定义第三方"——上下文不完整,初步理解为:希望支持自定义第三方 LLM provider / API endpoint 配置。需要后续与 CEO 对齐具体诉求。

触发场景

clone 仓库类任务 + 网络失败 + CEO 中途改口 + /clear 刷新。

优先级建议

  • P1:任务切换不生效(1)、/clear 不持久化(2)
  • P2:执行可观测性(3)
  • P3 / 待澄清:自定义第三方(4)</issue_description>

<agent_instructions>先调查是否存在问题,再解决</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@zhengxuyu 注:以上均为用户使用过程中的观察反馈,需要先调查甄别,不一定是 bug。可能是:实际 bug / 设计上未覆盖的场景 / 用户操作路径与系统设计的预期不一致 / 仅是可观测性不足导致的误判。在动手修之前先复现+定位。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[User feedback] Parent: task switching, /clear, observability, custom provider — needs investigation

2 participants