Skip to content

test(web): cover standalone response entry in HistoryEntry status tests#1541

Open
isaka1022 wants to merge 1 commit into
modelcontextprotocol:v2/mainfrom
isaka1022:fix/notification-pending-badge
Open

test(web): cover standalone response entry in HistoryEntry status tests#1541
isaka1022 wants to merge 1 commit into
modelcontextprotocol:v2/mainfrom
isaka1022:fix/notification-pending-badge

Conversation

@isaka1022

@isaka1022 isaka1022 commented Jun 28, 2026

Copy link
Copy Markdown

Summary

Adds the missing test for acceptance criterion #3 of #1439 — "a standalone direction: "response" entry must not show a request-style status badge (most importantly, not Pending)."

This is a test-only change (no behavior change) that guards against a regression of the badge logic.

Test plan

pnpm --filter @modelcontextprotocol/inspector-web test — all green, including the new
renders no request-style status badge for a standalone response entry.

Closes #1439

Acceptance criterion modelcontextprotocol#3 of modelcontextprotocol#1439 ("a standalone response entry isn't
shown as Pending") was not tested. Add a `standaloneResponseEntry`
fixture with `direction: "response"` and assert that no Pending/OK/Error
badge appears, consistent with the existing extractStatus fix that scopes
the request lifecycle to `direction === "request"` only.
@isaka1022 isaka1022 force-pushed the fix/notification-pending-badge branch from 3c8d704 to d509ad5 Compare June 28, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant