copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Regression on plan-mode

Open wsilveiranz opened this issue 4 months ago • 7 comments

Describe the bug

Plan mode in the latest version is now blocking shell commands. I consider this a regression since may commands were used by the plan mode to help enrich the plan - for example gh cli is now blocked but this was used to read or create issues as part of the plan process, specially on private repo, where websearch command will not work. Out of the box mcp servers don't support reading issues only code search. The command also blocks removing existing plans, forcing the agent to rewrite plans, which can lead to pieces of the plan to be left behind specially in smaller models.

Affected version

GitHub Copilot CLI 1.0.72-1.

Steps to reproduce the behavior

  1. Create a plan mode referencing an issue in a private repo

Expected behavior

The plan will be able to read the issue to review it and plan implementation

Additional context

No response

wsilveiranz avatar Jul 20 '26 00:07 wsilveiranz

related to #4160

I observe the same with Azure Board cli commands

Jonas-Tieto avatar Jul 20 '26 08:07 Jonas-Tieto

I can reproduce similar behavior on Copilot CLI 1.0.73: in plan mode, a read-only shell command is blocked with:

"This shell command may modify the workspace and was blocked. Plan mode does not permit changes to the workspace."

Example I hit: session-recall files --json --limit 10

This appears stricter than the v1.0.71 note saying plan mode blocks mutating built-in tools/shell commands while MCP/external tools are still allowed. In practice, read-only shell workflows also appear blocked.

Could you clarify the intended plan-mode contract?

  1. Is built-in shell intentionally blocked wholesale in plan mode, or should semantically read-only commands be allowed?
  2. For planning tasks that need read-only remote context (private repo reads, curl GETs, internal API lookups), what is the recommended path?
  3. Does --allow-tool apply here, or is this blocked before tool-permission checks?
  4. Would you consider a strict read-only shell allowlist (or semantics-based read-only classifier) for plan mode?

This matters for planning workflows where context must come from private/on-prem systems before implementation

zimbeo avatar Jul 21 '26 15:07 zimbeo

@.***

On Tue, 21 Jul 2026, 9:54 pm Henry Rohlfing, @.***> wrote:

zimbeo left a comment (github/copilot-cli#4188) https://github.com/github/copilot-cli/issues/4188#issuecomment-5036152412

I can reproduce similar behavior on Copilot CLI 1.0.73: in plan mode, a read-only shell command is blocked with:

"This shell command may modify the workspace and was blocked. Plan mode does not permit changes to the workspace."

Example I hit: session-recall files --json --limit 10

This appears stricter than the v1.0.71 note saying plan mode blocks mutating built-in tools/shell commands while MCP/external tools are still allowed. In practice, read-only shell workflows also appear blocked.

Could you clarify the intended plan-mode contract?

  1. Is built-in shell intentionally blocked wholesale in plan mode, or should semantically read-only commands be allowed?
  2. For planning tasks that need read-only remote context (private repo reads, curl GETs, internal API lookups), what is the recommended path?
  3. Does --allow-tool apply here, or is this blocked before tool-permission checks?
  4. Would you consider a strict read-only shell allowlist (or semantics-based read-only classifier) for plan mode?

This matters for planning workflows where context must come from private/on-prem systems before implementation

— Reply to this email directly, view it on GitHub https://github.com/github/copilot-cli/issues/4188?email_source=notifications&email_token=B4FO3EC6YQT3NCCHIEPE5KD5F6G2RA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBTGYYTKMRUGEZKM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#issuecomment-5036152412, or unsubscribe https://github.com/notifications/unsubscribe-auth/B4FO3EENETFZNO5HLBCXNAD5F6G2RAVCNFSNUABFKJSXA33TNF2G64TZHM2TQNJYGYYDMNRUHNEXG43VMU5TIOJSGUYDAMRWGMZ2C5QC . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS https://github.com/notifications/mobile/ios/B4FO3EGIYZRWNTZKVLFVFQ35F6G2RA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBTGYYTKMRUGEZKM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSVGM33PORSXEX3JN5ZQ and Android https://github.com/notifications/mobile/android/B4FO3EENSL5ACI6ZBONTSDL5F6G2RA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBTGYYTKMRUGEZKM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ. Download it today! You are receiving this because you are subscribed to this thread.Message ID: @.***>

ja552588 avatar Jul 21 '26 16:07 ja552588

Hey folks, we've shipped a re-tune of what shell commands Plan mode blocks in 1.0.74, give the latest version a try and let me know if it still feels overzealous!

RyanHecht avatar Jul 24 '26 18:07 RyanHecht

Hey folks, we've shipped a re-tune of what shell commands Plan mode blocks in 1.0.74, give the latest version a try and let me know if it still feels overzealous!

It fixed the issue on my side (skills using bash scripts being blocked). Thank you!

Abaudat avatar Jul 27 '26 10:07 Abaudat

Working much better here also, thanks team!

zimbeo avatar Jul 27 '26 14:07 zimbeo

Please let us know in case you have follow-up feedback about copilot cli being overly strict about command denial while in plan mode. I am closing this issue now.

szabta89 avatar Jul 31 '26 12:07 szabta89