Plan indicator leaks across conversations after headless session switches
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
Describe the bug
When the IDE switches one headless Copilot CLI process between two conversations that share the same repository, worktree, and branch, the plan indicator/path can remain bound to the previously active conversation.
Observed result:
- Conversation A had a physical per-session
plan.md. - Conversation B had no
plan.mdand an empty per-session task database. - While B was active, the IDE displayed A's session-specific
...\A\plan.mdbeside B. - The UI for A simultaneously claimed that A did not have a plan.
- Nothing had moved on disk: A's plan remained under A's session-state directory and B's directory had no plan.
The CLI/backend session state was correctly isolated; the visible conversation-to-plan association was reversed/stale.
Affected version
Copilot IDE 1.12.1
Copilot CLI backend 1.0.71
VS Code 1.130.0
Windows x64
Steps to reproduce the behavior
- Open two IDE conversations for the same repository/worktree/branch.
- In conversation A, enter plan mode and create/update
plan.md. - Leave conversation B without a plan.
- Switch repeatedly between A and B so the IDE resumes both through the same headless CLI process.
- Observe the plan indicator/path after B becomes active.
In the affected run, sanitized debug logs showed the same process repeatedly alternating:
resume A -> Workspace initialized A
resume B -> Workspace initialized B
resume A -> Workspace initialized A
resume B -> Workspace initialized B
After the final Workspace initialized B, B displayed A's plan path. The local IDE metadata cache contained A but had no entry for B.
Expected behavior
Plan state must be keyed and rendered strictly by conversation/session ID:
- Activating B must clear A's plan indicator before B is rendered.
- A conversation without
plan.mdmust never inherit a plan based on shared cwd, repository, branch, process, or prior active state. - Session resume/switch should atomically update conversation content, plan state, task state, and metadata-cache ownership.
- If the active session lacks a cache entry, the UI should query that session or show no plan rather than retaining the previous session's plan.
Additional context
The backend evidence rules out a filesystem move or shared SQL state: each conversation retained its own session directory/database, and the active session's injected context pointed at the correct session folder. This appears to be stale IDE/session-controller state during rapid headless session switching.
The IDE package points to a separate private repository that is not accessible to either configured GitHub identity, so this is filed against the CLI/session tracker for routing. No private logs or conversation content are attached.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
交互に発生する「Workspace initialized A/B」イベントの前後で、headless セッションの再開と切り替えを追跡し、その後、プランの状態とメタデータキャッシュの所有権がアクティブな会話にどのように関連付けられているかを調べます。plan.md のないセッションに切り替えると以前のインジケーターがクリアされ、プラン、タスク、コンテンツ、キャッシュの状態がそのセッションに紐付いたままになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100