Repository navigation
Fix cloud progress and quote approval, and bound large report rendering - #152
4 commits merged into
Conversation
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6b83dfaace
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if let Some(job) = job { | ||
| let mut session = cloud.0.lock().await; | ||
| refuse(&run, &mut session, &org).await?; | ||
| return refuse(&run, &mut session, &job).await; | ||
| } | ||
| run.request_cancel(); |
There was a problem hiding this comment.
Handle cancellation after the worker parks at a quote
If the user clicks Annuler while the renderer still shows quoting, but the native worker has already published Quoted and returned, CloudRun sends cancellation without a job ID. This branch only sets the cancellation flag; no worker remains to consume it, so the command reports success without cancelling the job or dismissing its quote. A subsequent approval also fails once with Cancelled because confirm() checks that leftover flag. Previously, cancellation checked the current native phase and refused an already-parked quote. Handle this transition natively rather than relying exclusively on the renderer's last observed phase.
Useful? React with 👍 / 👎.
First implementation batch from #151, based on main at 6195d75.
Closes #126
Closes #128
Closes #129
Changes
Review and verification
Three independent implementations were reviewed and integrated. Review caught a stale-decision state transition and the interaction between suspended polling and quote expiration. A fake-time integration test verifies a parked quote expires without another status read.
Compatibility
A free quote must explicitly include a zero amount. A server that omits the amount for a free quote will need to emit zero for the desktop to offer approval. Live platform billing was not exercised. Elapsed time after attaching to an existing run starts at observation because native status carries no phase-start timestamp.