-
Notifications
You must be signed in to change notification settings - Fork 195
Closed
Description
Describe the bug
My session got bricked for no apparent reason. Last time it was because of a failed MCP call. This time nothing seem to have failed. Here is the flow:
- I asked for a code review with no edits.
- I ran 2 terminal commands ( make ) with !
- Asked for something else
- Session bricked
Session logs
2025-10-20T14:11:01.325Z [INFO] Starting Copilot CLI: 0.0.346
Commit: 74e4d22
2025-10-20T14:11:01.326Z [INFO] Node.js version: v22.20.0
2025-10-20T14:11:02.394Z [LOG] Starting remote MCP client for ReVa_Ghidra with url: http://localhost:8080/mcp/message
2025-10-20T14:11:02.395Z [LOG] Creating MCP client for ReVa_Ghidra...
2025-10-20T14:11:02.401Z [LOG] Connecting MCP client for ReVa_Ghidra...
2025-10-20T14:11:02.521Z [LOG] MCP transport for ReVa_Ghidra closed
2025-10-20T14:11:02.522Z [ERROR] Failed to start MCP client for remote server ReVa_Ghidra: TypeError: fetch failed
2025-10-20T14:11:02.831Z [LOG] Using Copilot API endpoint: https://api.individual.githubcopilot.com/mcp/readonly
2025-10-20T14:11:02.832Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly
2025-10-20T14:11:02.832Z [LOG] Creating MCP client for github-mcp-server...
2025-10-20T14:11:02.832Z [LOG] Connecting MCP client for github-mcp-server...
2025-10-20T14:11:03.406Z [LOG] MCP client for github-mcp-server connected, took 574ms
2025-10-20T14:11:03.406Z [LOG] Started MCP client for remote server github-mcp-server
2025-10-20T14:11:03.406Z [LOG] GitHub MCP server configured after authentication
2025-10-20T14:13:06.013Z [INFO] Using default model: claude-sonnet-4.5
2025-10-20T14:13:06.335Z [INFO]
2025-10-20T14:13:12.888Z [INFO] [log_188c2d, x-request-id: "00000-dbd2b19e-ba77-43be-99c0-9e8946c4edda"] post https://api.individual.githubcopilot.com/chat/completions succeeded with status 200 in 4989ms
2025-10-20T14:13:21.891Z [INFO] [log_e8f820, x-request-id: "00000-ad05a836-2b2c-49a8-9c7a-e4a9ca291fe7"] post https://api.individual.githubcopilot.com/chat/completions succeeded with status 200 in 3879ms
2025-10-20T14:13:24.558Z [INFO] [log_751801, x-request-id: "00000-429e181b-6adc-4b2c-b70e-0326e8854555"] post https://api.individual.githubcopilot.com/chat/completions succeeded with status 200 in 2583ms
2025-10-20T14:13:28.240Z [INFO] [log_dac5c8, x-request-id: "00000-7acb179c-dd51-453f-a6ff-4584144d437b"] post https://api.individual.githubcopilot.com/chat/completions succeeded with status 200 in 3605ms
2025-10-20T14:13:32.645Z [INFO] [log_638ee3, x-request-id: "00000-43306cfb-e5e2-46dd-a46e-8eaa4035fe66"] post https://api.individual.githubcopilot.com/chat/completions succeeded with status 200 in 4142ms
2025-10-20T14:14:05.104Z [INFO] [log_2af35b, x-request-id: "00000-4bb3a44a-7771-4675-bf70-c1fcd8984fc3"] post https://api.individual.githubcopilot.com/chat/completions succeeded with status 200 in 31808ms
2025-10-20T14:34:53.038Z [INFO] Using default model: claude-sonnet-4.5
2025-10-20T14:34:53.039Z [INFO]
2025-10-20T14:34:54.476Z [INFO] [log_2e11e4, x-request-id: "00000-c4a2592f-6449-4012-880f-04045b58b801"] post https://api.individual.githubcopilot.com/chat/completions failed with status 400 in 575ms - error; not retryable
2025-10-20T14:34:54.478Z [ERROR] error (Request-ID C95F:1249D3:21164D6:2829F2D:68F64890)
2025-10-20T14:34:54.478Z [ERROR] {
"status": 400,
"headers": {},
"requestID": "00000-c4a2592f-6449-4012-880f-04045b58b801",
"error": {
"message": "messages.14.content.0: unexpected `tool_use_id` found in `tool_result` blocks: c6b5f2a4-7692-44d0-8291-a3f8ed2e9a7d. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.",
"code": "invalid_request_body"
},
"code": "invalid_request_body",
"request_id": "00000-c4a2592f-6449-4012-880f-04045b58b801",
"ghRequestId": "C95F:1249D3:21164D6:2829F2D:68F64890",
"name": "CAPIError"
}
2025-10-20T14:35:01.632Z [INFO] [log_9529da, x-request-id: "00000-c3e226b7-eb62-4b2d-904c-8cb4bdd372d0"] post https://api.individual.githubcopilot.com/chat/completions failed with status 400 in 398ms - error; not retryable
2025-10-20T14:35:01.634Z [ERROR] error (Request-ID C95F:1249D3:211807C:282BECB:68F64890)
2025-10-20T14:35:01.634Z [ERROR] {
"status": 400,
"headers": {},
"requestID": "00000-c3e226b7-eb62-4b2d-904c-8cb4bdd372d0",
"error": {
"message": "messages.14.content.0: unexpected `tool_use_id` found in `tool_result` blocks: c6b5f2a4-7692-44d0-8291-a3f8ed2e9a7d. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.",
"code": "invalid_request_body"
},
"code": "invalid_request_body",
"request_id": "00000-c3e226b7-eb62-4b2d-904c-8cb4bdd372d0",
"ghRequestId": "C95F:1249D3:211807C:282BECB:68F64890",
"name": "CAPIError"
}
2025-10-20T14:39:50.581Z [INFO] Starting Copilot CLI: 0.0.346
Commit: 74e4d22
2025-10-20T14:39:50.581Z [INFO] Node.js version: v22.20.0
2025-10-20T14:39:51.118Z [LOG] Starting remote MCP client for ReVa_Ghidra with url: http://localhost:8080/mcp/message
2025-10-20T14:39:51.119Z [LOG] Creating MCP client for ReVa_Ghidra...
2025-10-20T14:39:51.126Z [LOG] Connecting MCP client for ReVa_Ghidra...
2025-10-20T14:39:52.076Z [LOG] MCP transport for ReVa_Ghidra closed
2025-10-20T14:39:52.077Z [ERROR] Failed to start MCP client for remote server ReVa_Ghidra: TypeError: fetch failed
2025-10-20T14:39:52.540Z [LOG] Using Copilot API endpoint: https://api.individual.githubcopilot.com/mcp/readonly
2025-10-20T14:39:52.540Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly
2025-10-20T14:39:52.540Z [LOG] Creating MCP client for github-mcp-server...
2025-10-20T14:39:52.541Z [LOG] Connecting MCP client for github-mcp-server...
2025-10-20T14:39:54.131Z [LOG] MCP client for github-mcp-server connected, took 1590ms
2025-10-20T14:39:54.132Z [LOG] Started MCP client for remote server github-mcp-server
2025-10-20T14:39:54.132Z [LOG] GitHub MCP server configured after authentication
2025-10-20T14:39:57.700Z [INFO] Using default model: claude-sonnet-4.5
2025-10-20T14:39:57.985Z [INFO]
2025-10-20T14:39:59.823Z [INFO] [log_75a7bc, x-request-id: "00000-f0e13b57-66dd-4882-adfb-17055c871359"] post https://api.individual.githubcopilot.com/chat/completions failed with status 400 in 1519ms - error; not retryable
2025-10-20T14:39:59.826Z [ERROR] error (Request-ID CC0B:369FAA:212C9A1:28502D7:68F649C0)
2025-10-20T14:39:59.826Z [ERROR] {
"status": 400,
"headers": {},
"requestID": "00000-f0e13b57-66dd-4882-adfb-17055c871359",
"error": {
"message": "messages.14.content.0: unexpected `tool_use_id` found in `tool_result` blocks: c6b5f2a4-7692-44d0-8291-a3f8ed2e9a7d. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.",
"code": "invalid_request_body"
},
"code": "invalid_request_body",
"request_id": "00000-f0e13b57-66dd-4882-adfb-17055c871359",
"ghRequestId": "CC0B:369FAA:212C9A1:28502D7:68F649C0",
"name": "CAPIError"
}
If you need more details, please ask.
Affected version
0.0.346 Commit: 74e4d22
Steps to reproduce the behavior
No response
Expected behavior
No response
Additional context
- MacOs, Intel cpu
- Default terminal
- Claude Sonnet 4.5
Metadata
Metadata
Assignees
Labels
No labels