Skip to content

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

Closed

Description

@Dumbris

Problem

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.

Where Sol found it

ux01-r1.txt #2, ux02-r3-c2.txt #2, ux02-r3-c3.txt #3, ux02-r5-chunk3.txt #2, ux02-r6-C.txt #1-#2, ux02-r7-c3.txt, ux02-r7-c4.txt, ux02-r8-C.txt #1, ux02-r9-A/B/C.txt, ux02-r2-B.txt #1.

Related: #1566


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

  1. added
    kind/bug
    area/web-ui
    priority/medium
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/web-uikind/bugpriority/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions