Decide Desktop approvals by exact review ID
Summary
- Advertise exact approval review support on the Desktop event subscription. Approve and deny linked reviews through
/api/v1/approvals/review/{id}, including when the dialog closes. Continue to support legacy events. - Reconcile requests that arrive while the approval window loads and use the timeout supplied by the gateway.
Verification
Desktop typecheck and 219 tests passed. Two rapid real Goose calls to the same tool appeared in the native dialog. Approving the first left the other visible. Closing the dialog denied the remaining exact review. One retry of the approved call generated the only new draft in the connector fixture.
Link to Devin session: https://app.devin.ai/sessions/dffc821d83c6460fa10e1ffc91784688
Open in Devin Desktop: https://app.devin.ai/desktop/session/dffc821d83c6460fa10e1ffc91784688?variant=devin
Requested by: @Miyamura80
🟢 Devin Review found nothing to fix · View findings · Follow Devin's work
Summary by cubic
Routes Desktop approval decisions through the exact review ID sent by the gateway, including deny-on-close, so approvals are no longer matched by session, kind, and agent name.
- Advertises
approval_reviews=trueon the Desktop event subscription and submits decisions to/api/v1/approvals/review/{id}when a review ID is present, while keeping the legacy/api/v1/approvals/actionpath for older events. - Uses the gateway-provided approval timeout for the auto-deny countdown, falling back to the 30-second default only when omitted.
- Keys each pending approval on its review ID and ignores duplicate events, keeping parallel review dialogs independent.
- Reconciles approvals that arrive while the approval dialog is loading so none are dropped.