[Bug] 多会话场景下,待 approve 的 session 在侧边栏仍显示"进行中",approve 提示偶发且延迟
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
提交前确认 · Pre-submission checklist
- 我已搜索过现有 issue,确认这不是重复提议 / I searched existing issues and confirmed this isn't a duplicate.
- 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.
问题类别 · Category
多会话 / 侧边栏状态 · Multi-session / sidebar status
涉及的 Agent 框架 · Agent framework
ZCode Agent(自研)
使用场景 · Use case
- 产品: ZCode
- 描述: 焦点在 A 项目某 session 工作时,B 项目(或同项目另一 session)运行到需要用户 approve 的环节。
- 问题:
- 理想情况:左侧栏出现明显标识,提醒另一个 session 有待 approve 的请求。
- 实际行为:该 session 在侧边栏持续显示“进行中”,只有主动点进去才会弹出 approve 请求,容易错过导致另一 session 长时间卡住。
复现 · Steps to reproduce
- 同时开启两个项目 / 两个 session,焦点保持在其中一个(session A)持续工作。
- 让另一个 session(session B)触发需要 approve 的操作。
- 观察 session B 在侧边栏的状态。
(场景偶发,未找到稳定复现路径。)
额外观察 · Additional observation
- 该问题偶发,并非每次都会出现。
- 点击进入侧边栏对应 session 后,approve 通知栏延迟约 1 秒才弹出,而非立即出现。
- 这表明“等待 approve”状态在前端可能不是持续可见/触发的,而是进入该 session 视图后才异步探测出来,导致侧边栏轮询 / 通知链路可能漏报。
问题确认 · Is this intended?
想和团队确认:侧边栏不区分“进行中”与“等待 approve”、且 approve 状态延迟 / 偶发出现,是当前阶段的产品预期设计,还是待修复的体验问题?
预期价值 · Expected value
减少跨 session 工作时错过 approve 的概率,降低另一个 session 的无效等待时间。
你认为的优先级 · Your perceived priority
中 · Medium
你使用的 ZCode 版本 / 环境 · ZCode version / environment
ZCode 3.2.1 (build 3.2.1.2175), macOS 26.2, Apple Silicon
补充材料 · Additional context
无
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The payload names no source file, test, or entry point; begin by confirming where the ZCode client tracks sidebar session state and approval notifications. Reproduce with two sessions on ZCode 3.2.1 and compare sidebar status and notification timing; done means a pending approval is consistently visible and promptly surfaced without opening that session.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100