Skip to content

Fix cloud progress and quote approval, and bound large report rendering - #152

Merged
4 commits merged into
mainfrom
fix/main-ux-first-batch
Dec 1, 2026
Merged

4 commits merged into
mainfrom
fix/main-ux-first-batch

Conversation

@sh00kapic

Copy link
Copy Markdown
Collaborator

First implementation batch from #151, based on main at 6195d75.

Closes #126
Closes #128
Closes #129

Changes

  • Track elapsed time from the first observation of each active phase. Poll during work and recovery. Stop recurring reads for a settled status.
  • Check that the quote contains an explicit, safely representable nonnegative integer. Bind the decision to the reviewed job and its organization. Display available expiry information and remove approval at the deadline, including after a suspended window resumes.
  • Render at most 50 findings per page. Search and severity counts cover the full report. Keyboard users can page without losing focus, and source navigation remains available.

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.

  • All 113 frontend tests passed. The TypeScript/production build and JS and Rust formatting checks passed.
  • Native Windows tests on Rust 1.98.1 passed with 52 successes and one ignored test.
  • In the production renderer with a simulated native bridge, the running phase advanced from 2 s to 6 s over five samples. The baseline had stayed at 0 s.
  • Single-sample headless Chrome comparisons, click through two animation frames:
Findings Baseline Paginated Mounted finding rows
500 87 ms 32 ms 500 → 50
5,000 585 ms 26 ms 5,000 → 50
20,000 2,405 ms 25 ms 20,000 → 50

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.

@sh00kapic
sh00kapic marked this pull request as ready for review December 1, 2026 15:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T15:16:51.690478Z 6b83dfa Draft marked ready
ℹ️ 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Comment on lines +527 to +531
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();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant