Repository navigation
Conversation
A disabled state now carries reason 'not_local' (decided before the flag is read) or 'off'. requestSignIn resolves with the view's state plus signInFailure instead of rejecting.
…e unread flag in tests
|
@coderabbitai review |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Action performed
|
… at info, not as an error
Swarmhost agentic reviewThe current assessment is available to employees in the internal Slack review thread. Evaluation budget remaining for this pull request: 97 automatic and 99 manual. Updated by Swarmhost's agentic review process. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
comfy-greenlight-bot
left a comment
There was a problem hiding this comment.
This pull request at head commit a2fb817 has been reviewed and approved by Swarmhost's agentic review process.
The detailed evaluation is available to employees in the internal Slack review thread.
…dge-ux-notes # Conflicts: # packages/comfyui-desktop-bridge-types/package.json
|
Thanks @christian-byrne. Merged main in and bumped the bridge types to 0.20.0. The only conflict was the package version; |
comfy-greenlight-bot
left a comment
There was a problem hiding this comment.
This pull request at head commit 7ff58ab is approved by Swarmhost's agentic review process on the belief that it is unchanged base-branch maintenance — no evaluator read this commit.
Carried forward from head a2fb817 without re-reviewing, on the judgment that the only change since is base-branch maintenance (rebase: Only a generated package version bump tracking the moved base, no authored code changes.).
The detailed evaluation is available to employees in the internal Slack review thread.
… and sign-out keeps the refusal reason
comfy-greenlight-bot
left a comment
There was a problem hiding this comment.
This pull request at head commit 59a0870 has been reviewed and approved by Swarmhost's agentic review process.
The detailed evaluation is available to employees in the internal Slack review thread.
A ComfyUI page that Desktop won't share its account session with got a bare
{ status: 'disabled' }, so it couldn't tell the person why. And cancelling a sign-in started from a page rejected the bridge call with a raw IPC error (Error invoking remote method 'desktop2-auth:request-sign-in': SignInFailure: access_denied). This PR makes both answers explain themselves. Who gets the session is unchanged: the reason is worked out after the existing checks have decided.{ status: 'disabled' }{ status: 'disabled', reason: 'not_local' }{ status: 'disabled' }{ status: 'disabled', reason: 'off' }requestSignIn()cancelled or failedsignInFailuresignInFailureis one ofcancelled,restarted,superseded,timeout,idp_error,server_error,network,browser_unavailable(the reasons Desktop already uses for sign-in telemetry), orunknown.not_localis decided before the feature flag is read, so a remote page learns nothing about the flag.statusvalues. Shipped ComfyUI frontends branch onstatusonly and treat any status they don't know as signed in, so a new status would break them. Every frontend release that reads this bridge catches therequestSignInrejection and then applies the returned state, so with this change they apply the page's current state after a failed sign-in.requestSignIn, so a cancelled sign-in there also resolves instead of rejecting.@comfyorg/comfyui-desktop-bridge-typesgoes to 0.18.0 (ComfyDesktop2SignInResult,ComfyDesktop2SignInFailure,reasonon the disabled state).Known limitation: a sign-in that ends without an error but leaves the page signed out (another sign-in or a sign-out landed first) resolves as plain
signed_outwith nosignInFailure, the same as before.Accepted gaps (author's call):
not_local; the view is detached, so nobody sees it.disabledstill carries noreason; a page can callgetStatefor it.requestSignInstarts a new browser sign-in (unchanged; the shipped frontend only calls it when signed out).access_deniedis reported ascancelledand logged at info, the same as a person's Deny.