You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(web): ReviewScreen async handlers apply late responses to the wrong server/session and rebind blind or forced approvals #1568
frontend/src/components/ReviewScreen.vue guards load(), rescan() and approve() against a late response for another server, but the remaining async handlers and navigation sequences are unguarded:
requarantine() (:111-118), fetchDefinitions() (:119-126), rejectServer() (:141), approveTool()/blockTool() (:142-143) apply their results without checking server or review session. A delayed A response can clear B's busy flag (re-enabling duplicate submits), close B's dialog, reload B, or set an error that hides B's review and selections.
Guards compare only the server name, so A -> B -> A admits an obsolete response; its success clears the new session's choices (choices.clear() in approve) and an unchecked default-allowed tool re-checks after reload; a late "dangerous" response reopens an obsolete force dialog.
rejectServer's completion sets approving=false while B's approval is in flight, unlocking checkboxes; B's success then discards an uncheck made in that window.
Checkboxes stay enabled while an approval is in flight, and success erases choices made after submission.
Force retry re-sends the previous lastBlock list against a refreshed review, so a tool that arrived after the failed attempt is not blocked. The blind "approve without seeing tools" confirmation (requestApprove, :128) computes its decision from the latest review when confirmed, not the empty review that opened the dialog, so an SSE refresh in between approves newly captured tools unseen.
Suggested direction
Introduce a review-session generation (server + navigation counter) captured at the start of every async handler and checked after every await; capture the decision (block list, later hashes) at click time and carry it unchanged through blind confirm and force retry; lock selection controls while a request is pending. Deferred-response component tests for A -> B and A -> B -> A.
Found by OpenCode Sol 6.1 cross-model review of the (now split) oversized PRs #1553 (UX-01) and #1555 (UX-02); verified still present on origin/main (704795c) by reading the cited sites. Pre-existing, deliberately out of scope of the minimal core PRs. Review transcripts: docs/qa/0.70.0-ux-2026-10-10/remediation/reviews/.
Activity
fix(web): invalidate blind approval confirmation when a review refres…
fix(web): ignore late ReviewScreen responses for another server/visit…