Repository navigation
fix(cli): succeed ensure for validated connected clients - #6427
Conversation
Preserve journal reconciliation and local startup refusal while avoiding a false Codex shim autostart error. Co-authored-by: Andrew Wang <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (2)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthrough
ChangesConnected-client ensure behavior
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to Connected-client Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The fix preserves existing startup and credential boundaries, but successful exit status can now hide unresolved client-routing recovery from the Codex launcher. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (4 skipped: 4 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
✅ Deterministic PR hygiene checks passed. |
|
@lidge-jun Ready for your review at 250c791. The local capped typecheck timed out and remains documented as such; current-head hosted CI 36974010724 now completed successfully, including actual typecheck, four Linux shards, docs and structure gates. The local red/green dispatch proof and 92 passing focused/gate tests are in Verification. No self-approval, merge, release or live configuration change. This only corrects connected-client ensure success after reconciliation; invalid/mismatched state remains refused and remote availability is not certified. |
|
Maintainer integration decision (dev, admin bypass per MAINTAINERS.md): merging at exact head 250c791.
|
Summary
ocx ensureexit-status defect on dev8b23fe340a53799aac5ad7654582a75df7ade7c8. A validated connected client needs no local provider startup and now returns success after journal reconciliation, so the Codex shim does not print a false autostart failure.Verification
bun test tests/cli/cli-ensure-client-state.test.ts tests/cli/cli-client-start-fence.test.ts tests/test-layout.test.ts tests/test-layout-tooling.test.ts tests/ci-workflows/file-size-ratchet.test.ts tests/ci-workflows/structure-ssot.test.ts— 92 passed, 0 failed, 781 assertions, exit 0, Bun 1.4.0. The test runner cleanup explicitly resets the injected process exit code; the first combined run had passing assertions but a nonzero runner exit and was not treated as successful.git diff --cached --checkpassed.tsc --noEmitwith Node 24.16.0 and a 768 MiB V8 heap did not complete: the capped systemd unit reached its runtime limit and was killed (memory peak 1.2 GiB, swap 0). This is not a passing local typecheck.250c791e18f3026ddd448c49243f17bb729680cc: Cross-platform CI 36974010724 completed successfully. Its merge checkoutc246f70explicitly includes this head and base8b23fe340a53799aac5ad7654582a75df7ade7c8. The gates job completedbun x tsc --noEmitsuccessfully; all four Linux test shards, docs build, structure gate and selected smoke jobs passed. Unselected Windows shard/macOS/native legs are not execution evidence. This addresses the validation hold using hosted evidence, not an increased local cap; now ready for maintainer review, not approved/merged/released.Checklist
The client-state acceptance rules and credential handling are unchanged. No independent trust-boundary review is claimed; the user prohibited new security scans.
Summary by CodeRabbit
ocx ensurenow succeeds without starting a local provider when the connected client’s state is valid. Disconnected clients continue through local startup; invalid or mismatched state still fails.ocx ensurehandles connected, disconnected, and invalid client states.