Repository navigation
Conversation
Reuse the installation-scoped stop helper after manager shutdown and before tracked-proxy cleanup. Preserve refusal ordering and isolate Windows mock tests; add focused regression and layout coverage.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
✅ Deterministic PR hygiene checks passed. |
Ingwannu
left a comment
There was a problem hiding this comment.
Correctness review at a7647fb: the new cleanup is placed after every manager stop and before tracked-proxy shutdown, and preserves the early Desktop-supervision and manager-refusal exits. Reusing the existing install-scoped wrapper helper keeps the change narrow. The structure document accurately describes its best-effort limitation, and the new test is registered in both maps.
Independent Linux/Bun 1.4.3 verification in fresh homes and a capped cgroup: 55 tests passed across service-install-wrapper-cleanup, service-runtime-preflight, service-ownership-handover and service-desktop-runtime-preflight (including all five new ordering/refusal cases). The current-head Cross-platform CI run 39133137509 and Service lifecycle run 39133137536 are successful. The Windows schtasks job was skipped; neither the injected platform tests nor that hosted result proves a real Windows reinstall or wrapper exit.
No additional correctness blocker found in this focused change. Please complete the author-owned current-head readiness checklist when the draft is ready for review. I have kept the draft/readiness state intact; no merge or service operation was performed.
Codex Review SummaryThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Ingwannu
left a comment
There was a problem hiding this comment.
Correctness approval at unchanged head a7647fb, now marked ready (current dev base 8640c2f). The install-scoped wrapper cleanup remains after successful manager stops and before tracked-listener cleanup, with Desktop supervision and manager-refusal exits ahead of it. Both test maps and the structure limitation are documented.
The 55 focused Linux/Bun 1.4.3 tests recorded in my previous review 5563299114 were executed at this exact unchanged head, so they were not rerun just for another receipt. Current-head functional CI, gates/Typecheck and Service lifecycle are successful. The Windows schtasks lane was skipped, so actual Windows reinstall/wrapper exit remains unverified.
The later Codex comment reports review-account usage exhaustion and supplies no source finding; that account-limit message is not a functional CI failure or an instruction to spend credits. This manual correctness review does not waive a real unresolved finding. No account-consent action, workflow dispatch, new scan or merge performed.
…ate paths and shim token handling (B5) (#7397) * fix(oauth): allow dismissing a settled failed login flow (carry #7379) Co-authored-by: Ingwannu <186453546+Ingwannu@users.noreply.github.com> * fix(providers): preserve explicit API-key mode when keys are unavailable (carry #7304) Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com> * fix(dsh): bound account profile response reads (carry #7333) Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com> * test(dsh): drain server fixtures before removing homes (carry #7305) Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com> * fix(claude-cli): keep local errors out of subscription cooldown (carry #7343) Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com> * fix(claude): bound Desktop library reads and preflight writes (carry #7301) Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com> * fix(service): stop scheduler wrappers before Windows reinstall (carry #7313) Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com> * fix(startup): require RunAtLoad before Desktop relaunch (carry #7277) Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com> * fix(codex): strip OpenSSL startup variables from updater child env (carry #7342) Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com> * fix(codex): keep the service token out of bypassed shim launches All three Codex shims loaded the service API token into OPENCODEX_API_AUTH_TOKEN before checking OCX_SHIM_BYPASS, so a bypassed native passthrough launch handed the proxy data-plane token to the real Codex and its descendants. The POSIX, CMD and PowerShell shims now skip the token load under bypass; the Unix revision marker moves to 4 so installed wrappers are refreshed. loadServiceTokenFromFile reads the inherited OCX_API_TOKEN_FILE through a no-follow, nonblocking descriptor, accepts only a regular file of at most 4 KiB and returns only a single-line printable token. * test(claude): wait for a real ctime transition before requiring rejection Re-applying the same utimes moves ctime only after the kernel clock ticks, so the real ctime case from #7301 often observed no change and the reader correctly returned {}. Repeat the call until ctime has advanced (bounded), assert that precondition, then require desktop_config_not_regular. Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com> * fix(google-antigravity): admit a probed project_id fallback in account import (carry #7385) An Antigravity account whose Cloud Code Assist project is not auto-discovered was rejected with missing_project even when the operator knows its project. A Cockpit record may now carry a bounded project_id (Google Cloud project grammar, 6-30 chars, exact match). Discovery keeps precedence; the fallback is admitted only after the account quota probe succeeds with that account own access token against that project. Probe refusal, probe errors and cancellation write nothing. No shared default project. Co-authored-by: yobushka <51312852+yobushka@users.noreply.github.com> * fix(quota): name a closed reason when an OAuth account quota probe fails Anthropic per-account quota rows reported quotaUnavailable with no reason, and Antigravity reported account_unavailable for any credential-side throw. The Anthropic usage read now reports a closed code for an HTTP status class, an unusable body or a thrown dispatch, and a probe that cannot obtain a credential reports account_unavailable without dispatching. Antigravity distinguishes a credential refresh deadline (timeout). Codes reuse the existing closed QUOTA_FAILURE_CODES set, carry no upstream text and never change account health. * test(claude): match the symlink-resolved rollback target in the picker restore case The atomic writer renames onto the symlink-resolved target, so on macOS (/var -> /private/var) the rollback rename never matched the fixture path and the restore-failure injection did not fire. Compare both spellings. Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com> * fix(google-antigravity): cancel the import project probe with the import request probeAntigravityUsageQuota accepts an optional caller signal that cancels every request of the probe and stops before the models fallback; the import verifier forwards the import signal and never admits after cancellation. * fix(codex): upgrade installed Windows shims that load the token before bypass CMD and PowerShell wrappers now carry a Windows revision marker. A marked wrapper without it (installed before the bypass-token fix) is obsolete: installCodexShim and autoRestoreCodexShim rewrite it in place over the same backing launcher instead of reporting it healthy or already installed, and diagnostics report it unhealthy. On Windows the service token reader also binds the opened descriptor to the path by identity, so a link swapped in after lstat is refused. * test(codex): mark the in-place Windows diagnostics fixture with the current revision * fix(codex): refresh obsolete Windows shims without clobbering a concurrent replacement The obsolete-wrapper refresh truncated whatever occupied the wrapper path. It now moves the observed wrapper aside and proves it is the probed file, stages the current wrapper beside it, and publishes with a hard link that refuses an occupied path. A concurrent replacement is restored or kept untouched and the refresh reports deferred. * docs(structure): record the Windows shim refresh transaction * fix(codex): create the Windows shim refresh stage exclusively and resume partial upgrades The refresh stage is now created with O_CREAT|O_EXCL (and O_NOFOLLOW on POSIX) under an independent random name, and publication, withdrawal and cleanup are bound to the identity of the file this refresh created, so a planted link is never written through. Auto-restore resumes a Windows revision-only sibling mix (current plus obsolete wrappers) instead of deferring forever after one transient publish failure. * fix(codex): bind Windows shim refresh rollback and recovery to observed identities Publication keeps a linked entry only if it is the created stage, and withdraws a link to a swapped stage (file or symlink) while leaving independent replacements. Restoring the moved wrapper requires the aside to still be the moved file. Automatic revision recovery now refreshes only the admitted obsolete wrappers and first re-verifies every current sibling, so a replacement during the stability wait is never adopted. * fix(codex): never displace a Windows shim where its replacement cannot be published The refresh proves hard-link support in the wrapper directory with a throwaway pair before moving the wrapper aside, and if a restore link still fails it falls back to an identity-checked rename onto the empty path, so the launcher never stays missing. --------- Co-authored-by: Ingwannu <186453546+Ingwannu@users.noreply.github.com> Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com> Co-authored-by: yobushka <51312852+yobushka@users.noreply.github.com>
Summary
ocx stopafter all recorded/conflicting/requested service managers have stopped and before stopping the tracked proxy. This addresses the cleanup gap where a surviving Task Scheduler launcher can respawn the old proxy during reinstall, including when its registration is already absent.Verification
Recorded with Bun 1.4.3; these are separate runs, not additive totals:
bun test tests/service/service.test.ts -t 'install preparation'with the production change removed produced 4 pass / 2 assertion failures (the two positive cleanup cases). Restoring the change made the five new regressions pass; their final moved-file run,bun test tests/service/service-install-wrapper-cleanup.test.ts, produced 5 pass / 0 fail.bun test tests/service/service-install-wrapper-cleanup.test.ts tests/service/service.test.ts tests/test-layout-tooling.test.ts— 238 pass / 3 skip / 0 fail, 1,268 assertions. The three skipped cases concern Windows definition ACL/UTF-16 fixtures.bun test tests/service/service.test.ts tests/service/service-runtime-preflight.test.ts tests/service/service-ownership-handover.test.ts tests/service/service-desktop-runtime-preflight.test.ts— 266 tests / 0 fail. This is historical coverage, not a final-layout total.bun node_modules/typescript/bin/tsc --noEmit— exit 0. The direct compiler entry bypassed a junction-relatedbun x tscshim-resolution failure.bun scripts/file-size-ratchet.ts,bun scripts/structure-ssot.ts, andbun scripts/privacy-scan.ts— passed;git diff --checkpassed.The full local suite and a live Windows reinstall E2E were not run. Concurrent worktrees share test resources; validation here targets the changed ordering, refusal controls, mock isolation and layout, with broader coverage left to CI. A manual stop observation on the unpatched runtime is not patched E2E evidence. No GUI changes.
Current-head CI at
a7647fb1740ec7a7443c4c2dadcd536d58b80c98: Cross-platform CI 39133137509 and Service lifecycle 39133137536 completed successfully. Windows test shards, Windows Task Scheduler and macOS launchd jobs were skipped; skipped jobs are not passing platform validation. Ingwannu's focused review on this head found no additional correctness blocker, and no new actionable feedback is present. CodeRabbit skipped its review while this PR was Draft; its success status is not review approval. Author-owned readiness is complete; any required maintainer sponsorship/security review remains a before-merge responsibility.Checklist
Summary by CodeRabbit