Skip to content

Decide Desktop approvals by exact review ID - #152

Open
devin-ai-integration[bot] wants to merge 3 commits into
mainfrom
devin/1796175600-exact-approval-reviews
Open

devin-ai-integration[bot] wants to merge 3 commits into
mainfrom
devin/1796175600-exact-approval-reviews

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

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.

Gateway counterpart

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.

Two pending reviews in the native dialog

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

Devin Review


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=true on 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/action path 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.

Written for commit 8b5c8ee. Summary will update on new commits.

View guided diff Turn on auto-fix

@devin-ai-integration

Copy link
Copy Markdown
Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-02T01:54:57.133890Z
We couldn’t complete this review. Comment @codex review to try again.
b56a54b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

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