Skip to content

fix(web): ignore late ReviewScreen responses for another server/visit and rebind blind or forced approvals (#1568) - #1581

Merged
Dumbris merged 2 commits into
mainfrom
fix/1568-review-screen-late-responses
Oct 11, 2026
Merged

Dumbris merged 2 commits into
mainfrom
fix/1568-review-screen-late-responses

Conversation

@Dumbris

@Dumbris Dumbris commented Oct 11, 2026

Copy link
Copy Markdown
Member

Impact

Operators reviewing quarantined servers could see another server's late answer unlock or reload the current screen, and could approve newly captured tools unseen through the blind confirmation.

Cause

Only load, rescan and approve dropped late responses. requarantine, fetchDefinitions, rejectServer, approveTool and blockTool applied results unchecked, and the blind "approve without seeing tools" dialog recomputed its decision from whatever review was current at confirm time.

Changes (frontend only, ReviewScreen.vue)

  • One isCurrent(server, visit) check, built on the existing visitGeneration, now guards every async handler (A -> B -> A included). The serverName watcher also resets requarantining.
  • Checkboxes and the bulk allow/block buttons are disabled while an approval is in flight, so a choice made after submission is not erased.
  • The blind confirmation is bound to the empty review that opened it. If a refresh replaced that review before confirming, the dialog closes with the existing "review changed" notice and nothing is sent. The Approve all choice is captured at click time.
  • Force retry already drops its block list when the review is replaced (existing behaviour, now covered by a test).

Decisions

  • No backend contract change; review binding stays with Spec 117.
  • Safer reading of "recompute at confirm time": the stale confirmation is refused and a fresh decision required, rather than silently approving a different list.

Verification

  • New vitest file with deferred promises per handler, A -> B and A -> B -> A, blind confirm after refresh, force retry after refresh (6 of the 10 tests failed before the fix). Full vitest suite and vue-tsc pass.
  • Live on rebuilt UI vs baseline main with held fetches at 1280 and 390px: baseline unlocks B's Approve button and reloads B when A's reject answer arrives late; fixed build keeps B locked with no extra reload. Normal and forced approve still work.

Fixes #1568

🤖 Generated with Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: b03e9c1
Status: ✅  Deploy successful!
Preview URL: https://22308afa.mcpproxy-docs.pages.dev
Branch Preview URL: https://fix-1568-review-screen-late.mcpproxy-docs.pages.dev

View logs

@github-actions

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: fix/1568-review-screen-late-responses

Available Artifacts

  • archive-darwin-amd64 (31 MB)
  • archive-darwin-arm64 (28 MB)
  • archive-linux-amd64 (19 MB)
  • archive-linux-arm64 (17 MB)
  • archive-windows-amd64 (31 MB)
  • archive-windows-arm64 (27 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (27 MB)
  • installer-dmg-darwin-arm64 (24 MB)
  • smart-mcp-proxymcpproxy-goBRXD31.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 38140920030 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Dumbris
Dumbris merged commit 5345912 into main Oct 11, 2026
43 checks passed
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.

bug(web): ReviewScreen async handlers apply late responses to the wrong server/session and rebind blind or forced approvals

2 participants