Repository navigation
fix(codex): avoid false doctor integrity failure on checkpointed WAL history - #7060
Conversation
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. |
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Maintainer integration record (MAINTAINERS.md |
Summary
ocx doctorwhen a healthy WAL-modestate_5.sqlitehas no-walor-shmfiles. The guardian's pending-history probe now reusesopenCodexStateForPreflight, including its narrowly gated immutable fallback.SQLITE_CANTOPENcoverage. Update the Codex-home contract and CLI diagnostics documentation.Verification
bun test tests/codex-integration/codex-history-pending-wal.test.ts— 0 pass, 3 fail; the real fixture reproducedfailureReason: "integrity"on macOS.bun test tests/codex-integration/codex-history-pending-wal.test.ts tests/codex-integration/codex-history-provider.test.ts tests/codex-integration/codex-coordinator-doctor.test.ts tests/test-layout.test.ts tests/test-layout-tooling.test.ts— 132 pass, 0 fail.bun test tests/ci-workflows/file-size-ratchet.test.ts— 9 pass, 0 fail. No cap increased.bun run typecheck— passed.bun run structure:check— passed.bun run privacy:scan— passed.docs-site:bun install --frozen-lockfileandbun run build— passed; 569 pages and 79,403 internal links checked.bun run test:changed— failed: 37,389 pass, 107 skip, 22 fail, 4 errors across 1,697 files (358.6s after a 60s shared-lock wait). Failure groups: service ownership/SQLite-home/diagnostics, native Codex/Grok toggles, composed toggle acceptance, live audio closure, and a sibling ensure subprocess timeout. This run is not claimed green.bun test tests/service/service-sqlite-home.test.ts tests/service/service-ownership-state.test.ts tests/service/service.test.ts tests/codex-integration/native-grok-toggle.test.ts tests/codex-integration/native-codex-toggle.test.ts tests/codex-integration/codex-composed-acceptance.test.ts tests/cli/cli-access-audio-live.test.ts tests/cli/sibling-home-client-sync.test.ts— 376 pass, 1 fail, 1 error across 8 files. Only the sibling ensure 30s timeout remains; the other broad-run failures did not reproduce in this smaller run.origin/devhistory-provider implementation temporarily restored:bun test tests/cli/sibling-home-client-sync.test.ts -t 'a secondary ensure parent preserves shared Grok, Codex and Claude agent bytes'— reproduces the same 30s timeout (0 pass, 1 fail, 1 error, 32 filtered out). The fixed source was restored afterward and the worktree is clean.bun test tests/service/service-sqlite-home.test.ts tests/service/service-ownership-state.test.ts tests/codex-integration/native-grok-toggle.test.ts tests/codex-integration/native-codex-toggle.test.ts— 89 pass, 0 fail.SQLITE_CANTOPENwhen both sidecars are absent. Live-WAL reads and manifest/restore-target integrity validation retain their existing behavior. No GUI, authentication, credential, or dependency changes.Checklist