Add a way to list currently running Copilot CLI sessions with their status
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Feature request: Anthropic's Claude Code CLI has a claude agents --json command that lists every currently-running interactive session on the machine, each with an id, name, cwd, and status (idle/busy/waiting/blocked). This makes it possible to build an external dashboard/monitor across multiple parallel sessions (e.g. several terminal tabs or IDE panes each running their own session).
Copilot CLI has no equivalent today — --resume/--session-id//session all operate on a specific known session for resuming, not on discovering other currently-active sessions and their live state. The closest thing is the undocumented ~/.copilot/session-state//events.jsonl per-session event log, but it's internal, unversioned, and provides no "is this session still alive" signal (no PID recorded anywhere).
Ask: a copilot sessions --json (or similar) command/flag that lists currently-active sessions with at least an id, working directory, and a coarse status (busy/idle, and ideally "waiting for tool permission" as a third state) — enabling external tooling to build a multi-session status dashboard the same way it's possible for Claude Code today.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查现有的会话控制(--resume、--session-id 和 /session),以及 issue 中描述的未记录文档的 ~/.copilot/session-state//events.jsonl 日志。确定如何识别活动会话及其实时状态,然后围绕一个 JSON 列表定义完成标准,该列表报告每个活动会话的 id、工作目录和粗略状态。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli, tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100