Skip to content

Rejecting a tool call auto-rejects all future MCP tool calls #290

@williammartin

Description

@williammartin

Describe the bug

If a tool call is rejected on the permission request dialog, all future MCP tool calls become auto rejected.

Affected version

0.0.340-4 Commit: acb943f

Steps to reproduce the behavior

 Welcome to GitHub Copilot CLI
 Version 0.0.1

 Copilot can write, test and debug code right from your terminal. Describe a task to get started or enter ? for help. Copilot uses AI, check for mistakes.

 ● Connected to GitHub MCP Server

 ● Logged in as user: williammartin

 ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ > Sleep for 10s                                                                                                                                                                                                                       │
 ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

 ● I'll sleep for 10 seconds.

 ✗ Sleep for 10 seconds
   $ sleep 10
   Rejected by you.

 ● Operation cancelled by user

 ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ > List the 10 most recent issues on cli/cli                                                                                                                                                                                           │
 ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

 ✗ List issues
   Rejected by you.

 ~/workspace/github/sweagentd/runtime[⎇ 6927-detect-all-orphaned-tool-calls]                                                                                                                                            claude-sonnet-4.5
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 >  Enter @ to mention files or / for commands
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 Ctrl+c Exit · Ctrl+r Expand recent

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions