github / github/copilot-cli

Execution failed: CAPIError: 400 {"error":{"code":"bad_request","type":"websocket_error","message":"Duplicate item found with id fc_call_ikBrgmi06fcJeO6uIpJJEQbJ. Remove duplicate items from your input and try again."}}

Open
#3,560 5 comments 2 reactions 0 assignees View on GitHub
area:models area:tools
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the bug

This started happening suddenly in the evening with the same Copilot CLI version and the same workflow.

Important detail:
- Plain chat still works.
- The failure only happens on the turn after a tool/function call.
- During the day, the same flow worked normally.
- In the evening, follow-up turns after tool calls started failing with:
"Duplicate item found with id fc_call_..."

This suggests a server-side regression or rollout affecting tool-call session continuation, rather than a local client version issue.

### Affected version

GitHub Copilot CLI 1.0.55. Run 'copilot update' to check for updates.

### Steps to reproduce the behavior

_No response_

### Expected behavior

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the workflow with Copilot CLI 1.0.55, comparing plain chat with the turn after a tool call; investigate session continuation around the reported CAPIError. Done means follow-up turns after tool calls no longer fail with the duplicate-item error.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
api, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.