-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
Describe the bug
When a session enters plan mode (/plan or [[PLAN]] prefix), the available tool set drops from ~47 tools to just 4: powershell, report_intent, skill, task. A tools_changed_notice confirms the removal.
File reading still works via powershell and task(explore), and the model can ask clarifying questions via plain text. But the following tools have no workaround:
read_agent/list_agents— cannot retrieve results from background agents./fleetlaunches agents viatask(mode: "background")but their results are silently lost.sql— todo tracking and session store queries fail, despite the system prompt referencing SQL tables and todo status.
Affected version
0.0.421-0
Steps to reproduce the behavior
- Start a Copilot CLI session
- Have a normal conversation — process log shows
tool_count: 47 - Enter plan mode via
/plan <prompt> - The model receives a
tools_changed_noticelisting nearly all tools as "no longer available" — onlypowershell,report_intent,skill,taskremain (process log:tool_count: 4) - Use
/fleetto launch parallel work - Fleet dispatches background agents via
task(mode: "background") - The model tries to call
read_agentto retrieve results — tool does not exist - Background agent results that don't leave filesystem artifacts (e.g., investigation-only or API-call agents) are permanently lost
Expected behavior
Plan mode should retain tools that have no workaround:
| Tool | Why it's needed | Workaround? |
|---|---|---|
read_agent, list_agents |
Retrieve background agent results | ❌ None |
sql |
Todo tracking, session store queries | ❌ None |
ask_user |
Clarifying questions during planning |
Additional context
- OS: Windows 11 (x86_64), Windows Terminal, PowerShell 7
- The model generates incorrect self-diagnoses about tool availability (e.g., "read_agent may never have been available") because it only sees the current restricted set.
- The system prompt still references SQL tables, todo tracking, and
ask_userusage, but these tools are unavailable — causing silent failures or instruction-tool mismatches. - Related: Feature Request: Plan Mode Tool-Layer Enforcement #1171 requests plan mode to block write tools — this issue is the inverse: read-only tools with no workaround are being blocked.
Reactions are currently unavailable