Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
- Last reviewed commit: 489522f372f2cd8b1503c3cb5f7cce008ca01cd7
- Latest commit, not reviewed: ac0ed5dd31f2e510b31c77f0893bbb6db19b9166
Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.
Use the checkboxes below for quick actions:
- ▶️ Resume reviews
- 🔍 Trigger review
Walkthrough
Codex process environments now derive SQLite state paths from the resolved home layout. The changes also add test coverage for SQLite shadow-home behavior, token renewal failures and retries, native managed-auth renewal, and provider timeouts.
Changes: Codex managed runtime
Layer / File(s) Summary SQLite home layout and process environment
apps/server/src/provider/Drivers/CodexHomeLayout.ts,apps/server/src/provider/Drivers/CodexHomeLayout.test.ts,apps/server/src/provider/Drivers/CodexDriver.ts,apps/server/src/provider/CodexManagedRuntime.ts,apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts,apps/server/src/provider/CodexManagedRuntime.test.ts,apps/server/src/provider/Drivers/CodexDriver.test.tsThe home layout excludes SQLite files and sidecars from shadow-home symlinking. The driver, runtime, and adapter apply codexHomeEnvironmentto process environments. Tests check SQLite paths, WAL visibility, and shadow-home files.Token renewal coverage
apps/server/src/provider/CodexChatGptAuth.test.ts,apps/server/src/provider/CodexManagedRuntime.test.ts,packages/shared/src/testing/providerEnv.tsAuthentication tests cover concurrent refresh, temporary HTTP and connection failures, and retry after a timed-out renewal. An opt-in native Codex test checks renewal through a local responses endpoint and shared SQLite state. Provider timeout behavior
apps/server/src/provider/CodexProvider.test.ts,apps/server/src/provider/Drivers/CodexDriver.test.tsTests check model-catalog and managed-account probe timeouts, including authenticated status, retained credentials, and process cleanup. Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Bug fix
Possibly related issues
- pingdotgg/t3code#24486: This PR excludes SQLite databases and sidecars from shadow-home symlinking, matching the issue’s described separation of databases from WAL, SHM, and journal files.
Suggested reviewers:
maria-rcks,juliusmarminge,t3dotgg
Merge Risk: External image Minimal · previous review 48952
Existing shadow WALs are retained for recovery. No material merge-blocking risk is established.
Pre-merge checks: Passed 4
Check name Status Explanation Title check Passed The title clearly and concisely describes the primary fix: preventing SQLite conflicts from breaking Codex providers on Windows. Description check Passed The description covers the required Problem, Change, Scope and approval, and Verification sections. It explains the failure, the implementation, focused test results, manual verification, and agent de… Linked Issues check Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request. Full details: Description check
Explanation
The description covers the required Problem, Change, Scope and approval, and Verification sections. It explains the failure, the implementation, focused test results, manual verification, and agent details. The scope section does not provide maintainer approval, but it identifies the related issue and describes this as a focused bug fix, so the description is sufficiently complete.
Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts