Dashboard: show GitHub Copilot sessions (CopilotSessionSource)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 38/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- github, typescript
- 領域
- ai-infra-agents, cli
研究方向
Start with packages/squad-cli/src/cli/dashboard/sources.ts and the existing dashboard source in packages/squad-cli/src/cli/dashboard/server.ts; inspect the Claude source and synthetic session fixtures if present. Then investigate Copilot's ~/.copilot/session-state/ event format and how member dispatches are represented. Done means live Copilot sessions appear in the dashboard, source tests use synthetic events.jsonl, and Copilot usage is documented.
由索引模型根據 Issue 內容生成。
描述
Summary
The team dashboard from #2460 (squad dashboard, /squad:dashboard) only reads Claude Code sessions. It should also show sessions from the GitHub Copilot app and CLI.
What is already host-neutral
- The server in
packages/squad-cli/src/cli/dashboard/server.ts: it binds to 127.0.0.1, checks the Host header, sends the CSP and replays over SSE. - The page in
packages/squad-cli/src/dashboard-ui/. - The state file in
~/.squad/dashboards/and the/healthport scan. - The event model:
DashboardEvent {t, lane, kind, text, extra}and theDashboardSource {poll(), label}interface inpackages/squad-cli/src/cli/dashboard/sources.ts.
The only Claude-specific parts are the two sources (the transcripts in ~/.claude/projects/ and claude -p stream-json) and the /squad:dashboard plugin command.
What Copilot writes
Each session has its own folder, ~/.copilot/session-state/<uuid>/, containing events.jsonl, workspace.yaml, session.db, checkpoints/ and files/. One local session included these event types (only the types were checked, not the content):
user.messageandassistant.messageassistant.turn_startandassistant.turn_endtool.execution_startandtool.execution_completeskill.invokedhook.startandhook.endsession.start,session.resumeandsession.shutdownmodel.*andsession.usage_*
Proposal
- A
CopilotSessionSource. It finds the newest session for the current directory, probably from the directory recorded inworkspace.yaml, and follows itsevents.jsonlincrementally. It turns turns, tool calls and skills into the coordinator's lane.--session <id>pins a session, as it does for Claude. - Member lanes. First find out whether Copilot records member dispatches (custom agents or subagents) as events of their own and how they link to the parent tool call. If it doesn't, show only the coordinator's lane and say so on the page.
- Choosing the source. Add
squad dashboard --host claude|copilot. Without it, the dashboard should use whichever host has the newest session for the current directory. - Starting it from Copilot. Add a Squad skill or prompt in the Copilot projection that runs
squad dashboard --detach --open, matching/squad:dashboard. - Privacy. Use the same rules as the Claude source. Never show system prompts or
model.messages_snapshotcontents, and build test fixtures from synthetic data rather than real sessions.
Open questions
- Is the
events.jsonlschema stable, or versioned across Copilot releases? - Do the Copilot app and the Copilot CLI share
~/.copilot/session-state/? - Where do sessions live on Windows, and is there an override similar to
COPILOT_HOME?
Done when
squad dashboardin a repository being worked on in Copilot shows the live session, including member lanes if Copilot records them.- There are source tests using synthetic
events.jsonlfixtures. features/claude-code-plugin.md, or a new host-neutral dashboard page, documents Copilot use.
Follow-up to #2460 (epic #2438).
- 主要語言
- TypeScript
- 星號
- 3.4k
- 分支
- 516
- 平均合併
- 1 天 15 小時
- 30 天內合併 PR
- 116
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/squad 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 77/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
vercel-labs/ui#809 ·
維護者通常 1 天內回覆
-
bot:ai-assisted component:platform-js status:untriaged
難度 1/5 1 小時以內 新手友好度 74/100
midnightntwrk/platform-js#38 ·
-
[bug] Second false positive on high-cost plugin alert: detection only compares patch entry id, community plugin dsh-auto | [bug] 高成本插件告警第二次误报:检测只比对 patch 条目 id,社区插件 dsh-auto-review 被认成 @deepseek-ai/dsh-experimental-auto-review可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
ranxianglei/billion-context#7068 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
mybigday/whisper.rn#348 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
six-group/six-webcomponents#600 ·