Repository navigation
Conversation
|
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1252e424-93c3-4d09-82d3-7d111ed31319
Files selected for processing: 6-
config/scripts/zcode-credential-workflow.test.mjssrc/main/daemon/node-pty-fd-leak.test.tssrc/main/emulator/serve-sim-kill-contract.test.tssrc/main/git/worktree-base-divergence-real-git.test.tssrc/main/runtime/terminal/surface/pty-pane-copy-census.test.tssrc/renderer/src/components/editor/RichMarkdownEditor.focus-leave.test.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
|
Current published head for #33348: The two-file follow-up completes the metadata mock's existing nullable contract and joins lazy title imports before fixture globals are restored. It relocates the unchanged shared cleanup around upstream helper extension points. Original case bodies, assertions, deadlines, retries and isolation remain intact. Earlier mock-only and parent-control teardown failures are retained; the broader parent control has separately attributed unrelated selection limits. Actual main Hosted workflow authorization, exact-head AI completion and human maintainer approval remain separate. Existing action_required/zero-job records are authorization requirements, not failed jobs to rerun. This updates the existing request with material published evidence and creates no duplicate authorization request. |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Exercise measureRetargetDivergence with the… · worktree-base-divergence-real-git.test.ts:68-105
src/main/git/worktree-base-divergence-real-git.test.ts:68-105
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winExercise
measureRetargetDivergencewith the injected Git environment.This case passes
inheritedEnvonly to fixture setup. It never callsmeasureRetargetDivergence. The product probes therefore useprocess.env, because the current options andprobeOptionsprovide no environment override. The test can pass even when contaminatedGIT_DIRorGIT_CONFIGvalues make the probes inspect the wrong repository or returnunknown.Add an explicit environment option to
RetargetDivergenceOptions, forward it throughprobeOptionstogitExecFileAsync, and invokemeasureRetargetDivergencewithinheritedEnv. This preserves the existing default while making the contaminated product path testable without mutating globalprocess.env.

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
a288c56c-b675-4ba9-9a3a-832e0e84649d
Files selected for processing: 5-
src/main/runtime/main-owned-workspace-runtime-fixture.tssrc/main/runtime/orca-runtime-cold-restore-terminal-membership.test.tssrc/main/runtime/orca-runtime-layout-owner-start-fixture.tssrc/renderer/src/lib/worktree-creation-backend-startup-focus.test.tssrc/renderer/src/store/slices/store-test-helpers.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
|
@coderabbitai Regarding review I agree this does not prove that product probes sanitize an injected environment, and I am not claiming that coverage. Adding an environment option to The latest head is |
|
@coderabbitai full review Please review the final current head |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain
🧠 Learnings used
You are interacting with an AI system. |
✅ Action performed
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5a1236d4-71a1-4a96-b534-de67fbdb44fb
Files selected for processing: 11-
config/scripts/zcode-credential-workflow.test.mjssrc/main/daemon/node-pty-fd-leak.test.tssrc/main/emulator/serve-sim-kill-contract.test.tssrc/main/git/worktree-base-divergence-real-git.test.tssrc/main/runtime/main-owned-workspace-runtime-fixture.tssrc/main/runtime/orca-runtime-cold-restore-terminal-membership.test.tssrc/main/runtime/orca-runtime-layout-owner-start-fixture.tssrc/renderer/src/components/editor/RichMarkdownEditor.focus-leave.test.tsxsrc/renderer/src/lib/worktree-activation.test-fixture.tssrc/renderer/src/lib/worktree-creation-backend-startup-focus.test.tssrc/renderer/src/store/slices/store-test-helpers.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
-
|
@coderabbitai full review Please review current Ready head |
✅ Action performed
|
|
@coderabbitai full review Please review current head |
✅ Action performed
|
|
@coderabbitai full review Fixture follow-ups are now published at |
✅ Action performed
|
|
The completed full review at The actual GitHub PR file list has 24 existing paths. The current PR description and linked #33345 now both describe that scope; the older twelve-file wording seen by the review is superseded.
The five published blobs below were fetched through the GitHub Contents API and checked byte-for-byte against the submitted commit:
The candidate native-teardown/readiness follow-up being validated locally is not part of this SHA and is not counted above. The complete private integration remains failed/pending acceptance as disclosed; a Minimal AI result does not replace that gate or maintainer approval. |
|
@coderabbitai full review Please review current SHA |
✅ Action performed
|
|
@coderabbitai resume The overview now reports a new automatic pause after reviewing9a38405273c98af6634c25c192fad78390a183b5. Please resume automatic reviews. The once-per-SHA full review request6461309390 has already been acknowledged as triggered; this is not another full-review request or a claim of completion. |
|
✅ Action performed
|
|
@coderabbitai full review Please review the entire current Ready PR at published head This two-file fixture follow-up resolves the actual scanner conflict with upstream#35389. Frozen registry literals stay untouched; idempotent indexer/engine additions and guarded profile-database extension sit outside them, preserving runtime boundaries while allowing upstream registry entries to merge independently. No whole-main synchronization or feature overlap. Exact-byte qualification passes113 cases in six classifier/real SQLite suites per Node/default entry, full typecheck,12 required checks and normal hooks; normal/nonforce publication is verified. Unchanged9a gives12 passed/1 failed on the new actual indexer-consumer classifier control. All original bodies/assertions/deadlines remain. Parent9a's full completion is separate, and new-head completion remains pending. No source/installer build, newer-main runtime build, full inventory or native Windows/Linux execution is claimed. |
[Low impact] The PR appears safe to merge; no new actionable issues remain. SummaryThis PR gives test fixtures their own Git settings and native assets, waits for background work before teardown, and moves runtime-sensitive tests to Node.
Reviews (5) · Last reviewed commit: "test: validate owned PID publication bef..." · Reviewed by Greptile |
✅ Action performed
|
|
@coderabbitai full review Please review all 29 current paths of this Ready PR at published head The one-file follow-up fixes the independently reproduced owned mutation-process teardown finding: stop its recorded process group and detached outer group, join every child close, then remove the fixture. Five original bodies/assertions/20-second deadlines remain, plus one real orphan-cleanup regression. Related Node/default each pass 24 cases with 1 existing conditional skip, with full typecheck; these precede one proven deadline-reason-comment delta. The final committed bytes pass a fresh 18-check required gate and normal hooks. Normal/nonforce publication is independently verified. Parent5f's registry qualification and its earlier full request remain separately attributed; no repeated standalone test run at this SHA, newer-main runtime build, full inventory or native Windows/Linux execution is claimed. |
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
e8128fd1-a505-4b73-8ef8-c56a475dca09
Files selected for processing: 1-
src/main/managed-server/host-state/orcad-state-mutation-fence-heartbeat.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
-
✅ Action performed
|
There was a problem hiding this comment.
🔇 Additional comments: 2
config/scripts/vitest-node-runtime-boundary.test.ts-114-114: 1
114-114:Major · Stability & Availability · Heavy lift
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Make the collection timeout terminate the process tree.
If Bun remains alive after the 20-second timeout,
runProcessSyncsignals only therun-vitest.mjswrapper. The wrapper waits for Bun to close, so the synchronous call can continue to block and prevent this test from reaching cleanup. Use an awaitedrunProcesscall withterminationBarrier: truebefore removing the temporary directory. Node documents that a synchronous call can keep waiting after its timeout signal. (raw.githubusercontent.com)src/renderer/src/lib/worktree-creation-backend-startup-focus.test.ts-65-66: 1
65-66:Minor · Data Integrity & Integration · Quick win
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Make the
updateMetamock conform to the preload contract.
PreloadApi['worktrees'].updateMetais declared asPromise<Worktree | null>, but this mock resolvesundefined. (raw.githubusercontent.com) A consumer that trusts the API can observe an impossible result in this test. Resolvenullor return a completeWorktree.Proposed fix
- worktrees: { updateMeta: vi.fn().mockResolvedValue(undefined) } + worktrees: { updateMeta: vi.fn().mockResolvedValue(null) }

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
8e9f01b9-2653-4039-9847-9e26baac5e90
Files selected for processing: 29-
config/scripts/check-flaky-test-pattern-ratchet.test.mjsconfig/scripts/vitest-node-runtime-boundary.test.tsconfig/scripts/vitest-node-runtime-files.mjsconfig/scripts/vitest-sqlite-runtime-scan.mjsconfig/scripts/zcode-credential-workflow.test.mjssrc/main/browser/remote-browser-socks-server.test.tssrc/main/daemon/node-pty-fd-leak.test.tssrc/main/emulator/serve-sim-kill-contract.test.tssrc/main/git/worktree-base-divergence-real-git.test.tssrc/main/ipc/preflight-runnable-local-cli.test.tssrc/main/managed-server/host-state/orcad-state-mutation-fence-heartbeat.test.tssrc/main/plugins/plugin-service-reconciliation.test.tssrc/main/runtime/client-hosted-browser-row-push.integration.test.tssrc/main/runtime/fit-override-integration.test.tssrc/main/runtime/graph-sync-live-daemon-pty-tab-preservation.test.tssrc/main/runtime/main-owned-workspace-runtime-fixture.tssrc/main/runtime/mobile-presence-lock.test.tssrc/main/runtime/orca-runtime-cold-restore-terminal-membership.test.tssrc/main/runtime/orca-runtime-layout-owner-start-fixture.tssrc/main/runtime/orca-runtime-mobile-close-preserved-resurrection.test.tssrc/main/runtime/orca-runtime-terminal-split-authority.test.tssrc/main/runtime/remote-desktop-driver.test.tssrc/main/runtime/session-lifecycle/close/close-by-split-handle-layout-owner.test.tssrc/renderer/src/components/editor/RichMarkdownEditor.focus-leave.test.tsxsrc/renderer/src/lib/worktree-activation.test-fixture.tssrc/renderer/src/lib/worktree-creation-backend-startup-focus.test.tssrc/renderer/src/store/slices/store-test-helpers.tstests/e2e/cross-version-wire/release-checkout-tree.tstests/e2e/cross-version-wire/release-checkout-tree.unit.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
-
|
@coderabbitai full review Please review all 29 current paths at verified public Ready head Three existing fixture files now use stopped-work/quiescence for zombie-only groups, await the collector's same20-second process-tree termination before output removal, and return contract-valid null from updateMeta's mock. Five original heartbeat bodies/assertions/20-second deadlines and the collector's timeout/assertions remain. Actual zombie and actual-wrapper/owned stubborn-child controls are recorded; the latter is interface fault injection, not an actual Bun hang. The final three changed files pass25 cases per Node/default, full typecheck,24 required checks and normal hooks; public tree/nonforce publication are verified. Parent8f full29 completion is historical, not new-head coverage. Raw failed/partial controls retain their attribution; no newer-main runtime build, whole inventory or native Windows/Linux execution is claimed. |
There was a problem hiding this comment.
Actionable comments posted: 2

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
9c10ffd8-03bc-44ea-96b7-2dd2f986a2fc
Files selected for processing: 3-
config/scripts/vitest-node-runtime-boundary.test.tssrc/main/managed-server/host-state/orcad-state-mutation-fence-heartbeat.test.tssrc/renderer/src/lib/worktree-creation-backend-startup-focus.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
-
✅ Action performed
|
|
@coderabbitai full review Please review all29 current paths at verified public Ready head 0420767. Two existing fixture files now discover a late mutation PGID while joining child close and use the existing finish hook to join collector cleanup. All five original heartbeat bodies/assertions/20s deadlines and collector20s/30s/existing60s hook limits remain. Real gated-shell control fails before repair. Collector negative controls keep the original30s test failure while the repaired hook joins32s verification/removal before runner exit; its false-verdict injection follows actual successful force termination, not an actual Bun hang/native-kill failure. Exact published bytes pass21 cases per Node/default entry in the two changed files, full typecheck,18 required checks and normal hooks. Parent500's three-file25-case result and old full-review observations stay separately scoped. Native Windows/Linux execution, newer-main runtime builds and whole inventories are not claimed. |
✅ Action performed
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0ab2864c-be06-47e5-bbdf-3bdacd750c5b
Files selected for processing: 29-
config/scripts/check-flaky-test-pattern-ratchet.test.mjsconfig/scripts/vitest-node-runtime-boundary.test.tsconfig/scripts/vitest-node-runtime-files.mjsconfig/scripts/vitest-sqlite-runtime-scan.mjsconfig/scripts/zcode-credential-workflow.test.mjssrc/main/browser/remote-browser-socks-server.test.tssrc/main/daemon/node-pty-fd-leak.test.tssrc/main/emulator/serve-sim-kill-contract.test.tssrc/main/git/worktree-base-divergence-real-git.test.tssrc/main/ipc/preflight-runnable-local-cli.test.tssrc/main/managed-server/host-state/orcad-state-mutation-fence-heartbeat.test.tssrc/main/plugins/plugin-service-reconciliation.test.tssrc/main/runtime/client-hosted-browser-row-push.integration.test.tssrc/main/runtime/fit-override-integration.test.tssrc/main/runtime/graph-sync-live-daemon-pty-tab-preservation.test.tssrc/main/runtime/main-owned-workspace-runtime-fixture.tssrc/main/runtime/mobile-presence-lock.test.tssrc/main/runtime/orca-runtime-cold-restore-terminal-membership.test.tssrc/main/runtime/orca-runtime-layout-owner-start-fixture.tssrc/main/runtime/orca-runtime-mobile-close-preserved-resurrection.test.tssrc/main/runtime/orca-runtime-terminal-split-authority.test.tssrc/main/runtime/remote-desktop-driver.test.tssrc/main/runtime/session-lifecycle/close/close-by-split-handle-layout-owner.test.tssrc/renderer/src/components/editor/RichMarkdownEditor.focus-leave.test.tsxsrc/renderer/src/lib/worktree-activation.test-fixture.tssrc/renderer/src/lib/worktree-creation-backend-startup-focus.test.tssrc/renderer/src/store/slices/store-test-helpers.tstests/e2e/cross-version-wire/release-checkout-tree.tstests/e2e/cross-version-wire/release-checkout-tree.unit.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
-
|
@coderabbitai full review Please review all29 current paths at verified public Ready head f6d31ef. This one-file follow-up fixes the new regression's PID-publication readiness: read/validate/capture a positive PID before process-group lookup. Its1-second setup poll and20-second case deadline remain unchanged; all five original heartbeat bodies/assertions/deadlines are byte-identical. Real ownedfile control observesemptybytes: unchanged042 failsgroup0>1, finalpasses. The rawbeforewrapper searched an incorrect matcher spelling and remainsfailed; separate review verifiesactual0failure with no rerun. Linux/proc consequences are sourceanalysis, not executedLinux. Heartbeat and unchanged runtime-boundary files pass21 cases per pinnedNode/default entry, full typecheck,18 required checks and normal hooks. Actual pinnedNode24.22.1 was observed as directchild of Bun during thisdefault qualification. Normalnonforce push0 is verified separately after an immediateold-head APIguardfailure; rawfailure is retained and there was nosecondpush. Exact publictree/testedbytes match. Parent042 full29 completion with its readinessfinding is historical, not new-head coverage. No source/product change outside testfixtures, newdeadline, wholeinventory, newer-main runtimebuild or nativeWindowsLinux execution is claimed. |
✅ Action performed
|
|
@coderabbitai resume The fixture PR overview newly auto-paused after reviewing |
|
✅ Action performed
|
|
@coderabbitai full review Please review all 30 current diff paths at verified public Ready head Exact fixture bytes pass 31 cases across five files per explicit Node/default entry, full typecheck, all 21 required checks and normal hooks. Original case bodies/assertions/deadlines remain. The earlier mock-only and owned parent teardown failures remain recorded, including the broader parent's unrelated no-Git-tags selection limit. The separately unpublished rich candidate's failed unit qualifications are not passing fixture evidence. Normal nonforce publication, public tree/tested bytes, clean read-only actual-main merge and zero fixture/feature path overlap are verified. Parent f6d review evidence remains separately attributed. No newer-main runtime build, full repository inventory or native Windows/Linux execution is claimed. |
✅ Action performed
|
ELI5
Keep tests from reading personal Git configuration, changing shared native assets, or removing fixture state before background work finishes.
What Changed
The 30 test/support/configuration paths have zero overlap with #33120 and #33131. Their feature implementations remain in those independent PRs.
Why
Fixture-local environment and lifecycle boundaries keep failures attributable to the behavior under test. They cover fixture setup and product calls without changing production Git defaults or personal configuration. Original behavioral assertions, deadlines, retries and platform skips remain intact.
Linked Issue
Fixes #33345
Visual Proof
N/A — this PR changes test/support/configuration only.
Testing
Exact current head:
b3cbfd05ec94fbc8e9bea6e970e346e5620ba249. The automation launch fixture now returns contract-validnullfromworktrees.updateMeta, then waits for lazy title imports before restoringwindowand other globals. The store helper keeps the same cleanup callback at a location that merges with upstream helper extensions.f6d31efTwo existing fixture files change. The original five automation cases, their assertions/deadlines and the existing setup budget remain intact. Moving the shared helper import/cleanup retains its original line multiset; no production source, retry, isolation or heap limit changes.
The mock-only attempt still produced five unhandled errors during broader qualification: lazy title imports outlived the fixture globals. The final local import barrier passes the required gate. An owned parent control also retains those five errors; its broader selection additionally had an unrelated no-Git-tags failure, so it is not an identical-selection before/after count. Raw failed/partial reports remain retained.
This reuses the completed exact-byte fixture qualification and normal commit; no second 31-case run is claimed after commit. The joint controller's later rich-test selection error and both separate rich unit-task timeouts remain failures, outside this independent fixture result.
Read-only merge with actual main
3129ede02564b8f4335e71cf326783891c141f43is clean. The 30 fixture paths have zero overlap with either feature PR. This is source compatibility evidence, not a runtime build of newer main or native Windows/Linux execution.Parent f6d31ef validation
Parent
f6d31efa6e50315b6582cb81b6c3a6e284a1de80separately passed 21 cases per Node/default entry and 18 required checks. Its owned empty-PID-file control, 1-second setup poll and 20-second case deadline keep that original SHA attribution. The current follow-up preserves those earlier heartbeat/collector assertions and deadlines.Retained fixture evidence from earlier heads
Parent042 separately qualified the earlier two-file cleanup repair with21 passes per entry/18 checks. Its completed full29 review found this new setup race; that is historical review coverage for042. Parent500 separately ran three changed files with25 passes per entry and24 checks, including the contract-null focus mock. Current selection has two files; no test or skip was removed. Ancestor3fad's25 passes/1 conditional skip used a different selection. The real owned zombie control and previous actual-wrapper/stubborn-child control retain their original SHA/fault attribution; no production regression is claimed from the mock correction.
Earlier Git controls preserve owned caller configuration/refs and inherited environment. Watcher release faults were injected after successful real native unsubscribe; setup missing-directory rejection was real, not a forced native-addon unsubscribe failure. Linux/Windows native execution remains unperformed. D7/e36/private/runtime/UI histories retain their exact original combinations. Earlier raw failed/partial/unknown reports remain retained; none is a current-head inventory and the original09d copy mismatch cause remains unknown.
AI Disclosure
AI-assisted implementation and automated validation using OpenAI Codex. The author requested these contributions.
Review
Current head:
b3cbfd05ec94fbc8e9bea6e970e346e5620ba249(OPEN/Ready), normally and nonforce published with independently verified fixture qualification. Exact-head AI coverage is tracked separately from parent reviews. Hosted checks, workflow authorization and non-author human maintainer approval remain distinct.Agent skill upstream boundary
Notes
Upstream #33338 retired the census (
4b752de20dd283ec438a558837a6ef626632f6d4); that retirement is preserved. This independent fixture prerequisite should be reviewed separately from the terminal-image recovery and opt-in rich-output implementations.Checklist