Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Thermo-nuclear reviewScope: Verdict: the design is right and small. It reuses the existing kill-on-close job code in Findings (being fixed)
Checked, no change needed
Validation of the current tree
|
Thermo-nuclear review follow-upPushed cecf41e ("Address thermo review") to
Validation on cecf41e (pinned Rust 1.98.0):
|
Summary
The Antigravity CLI usage fallback (
agy --version,agy -p /usage) now runs each probe inside its own Windows Job Object with kill-on-close. tokiokill_on_droponly terminates the direct child, so MCP server descendants started byagyoutlived the probe (after success, error, or the 90s timeout). Dropping the probe's job now terminates the whole probe process tree. Only processes in the probe's own job are affected; unrelatedagyprocesses are never touched.Upstream reference
port-audit/0.69.0.md, PR 10 (antigravity-cli-usage-reap).managed_process.rsjob creation).Ported / Deferred
cli_fallback.rs::run_cli_commandvia newmanaged_process::ProcessJob(thin wrapper over the existingcreate_managed_job/assign_process_to_job; the latter is no longer test-only).agywas not run.spawn(tokio cannot pass a job-list attribute), so a descendant spawned in that sub-millisecond window is not contained.ManagedProcess(PTY path) is unchanged and still joins its job atomically. If assignment fails the probe proceeds with the previouskill_on_dropbehavior and a debug log.Validation
cargo +1.98.0 fmt --all: cleancargo +1.98.0 clippy --workspace --all-targets -- -D warnings: passcargo +1.98.0 test -p codexbar antigravity -- --test-threads=4: 113 passed, 0 failed (includes newdropping_the_probe_reaps_descendants_but_not_unrelated_processes, which also asserts an unrelated bystander process survives)cargo +1.98.0 test -p codexbar managed_process -- --test-threads=4: 10 passed, 0 failedAffected areas
Rust backend, Antigravity provider,
managed_process(shared helper, additive). No frontend, tray, settings, or float bar changes.UI proof
Not applicable