HEADER_RESOLUTION_FAILED has no agent or thread context
Author: BenTaylorDevCreated Sep 29, 2026Updated Sep 29, 2026
Labelsbug
When a headers builder fails during a run or a connect, core reports one HEADER_RESOLUTION_FAILED with context: { source: "headers" }. It then drops the AGENT_RUN_FAILED / AGENT_CONNECT_FAILED that used to follow, so the error is reported once.
The event has no agentId or threadId. So:
- CopilotChat's inspector-override failure notice never shows it.
CopilotChat.tsxfilters onAGENT_CONNECT_FAILEDplusagentId/threadId. - The web inspector's run-error cards don't show it either.
Fix: add agentId and threadId to the event when the failure happens inside a run or connect. Or have those listeners also accept HEADER_RESOLUTION_FAILED.
Found in the final review of #7510.
Source: CopilotKit/CopilotKit