inspector/core/mcp/state
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall fad8480376 fix: only attribute a decode rejection to a Protocol entry
markResponseRejected was called for ANY refresh failure. The id it
recovers is "the last response received for this method", which is the
failing exchange only when a response actually arrived and was refused
while decoding. A transport drop, a timeout, or an abort produces no
response frame at all — the last-answered id then still points at an
EARLIER successful call, so marking it stamped "Rejected by the
Inspector" onto an exchange that worked. That is the same class of lie
this issue exists to remove.

A server-sent JSON-RPC error is excluded for a different reason: the id
would be right, but the failure is the server's and its entry already
renders as an error from the error frame.

Gated on SdkErrorCode.InvalidResult / UnsupportedResultType — decisions
the client made about a frame in hand. The failure is still recorded as
list state either way; only the Protocol attribution is gated.

Caught in Copilot's review of #1953.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SW1p8E2uiyyLx4RKwrwSrt
2026-08-08 17:26:36 -04:00
..
fetchRequestLogState.ts Thread cacheMode through managed list refresh via SDK cache-aware verbs (#1721) (#1723) 2026-07-19 01:06:31 -04:00
index.ts Expose live resource subscriptions via a hook (#1325) (#1326) 2026-05-19 20:15:51 -04:00
managedListState.ts fix: only attribute a decode rejection to a Protocol entry 2026-08-08 17:26:36 -04:00
managedPromptsState.ts fix: surface list-fetch failures instead of swallowing them 2026-08-08 16:48:48 -04:00
managedRequestorTasksState.ts chore: close quality-gate coverage gaps (#1689) (#1766) 2026-07-24 17:20:12 -04:00
managedResourcesState.ts fix: surface list-fetch failures instead of swallowing them 2026-08-08 16:48:48 -04:00
managedResourceTemplatesState.ts fix: surface list-fetch failures instead of swallowing them 2026-08-08 16:48:48 -04:00
managedToolsState.ts fix: surface list-fetch failures instead of swallowing them 2026-08-08 16:48:48 -04:00
mergeTaskIntoList.ts SDK v2 migration (behavior-neutral, versionNegotiation: 'legacy') (#1624) 2026-07-15 10:44:24 -04:00
messageLogState.ts fix: surface list-fetch failures instead of swallowing them 2026-08-08 16:48:48 -04:00
pagedPromptsState.ts Thread cacheMode through managed list refresh via SDK cache-aware verbs (#1721) (#1723) 2026-07-19 01:06:31 -04:00
pagedRequestorTasksState.ts SDK v2 migration (behavior-neutral, versionNegotiation: 'legacy') (#1624) 2026-07-15 10:44:24 -04:00
pagedResourcesState.ts Thread cacheMode through managed list refresh via SDK cache-aware verbs (#1721) (#1723) 2026-07-19 01:06:31 -04:00
pagedResourceTemplatesState.ts SDK v2 migration (behavior-neutral, versionNegotiation: 'legacy') (#1624) 2026-07-15 10:44:24 -04:00
pagedToolsState.ts Thread cacheMode through managed list refresh via SDK cache-aware verbs (#1721) (#1723) 2026-07-19 01:06:31 -04:00
resourceSubscriptionsState.ts chore: close quality-gate coverage gaps (#1689) (#1766) 2026-07-24 17:20:12 -04:00
stderrLogState.ts feat(core): port v1.5 hook layer (#1243) (#1300) 2026-05-13 17:43:07 -04:00