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: f8b04d494ba70e4ab24ec682d083279c88d9a047
- Latest commit, not reviewed: 4381f135a335e184f5ff46ecbcdbf866d89326f0
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 MCP tool listing, tool calls, and resource reads now resume an unloaded thread after a matching
thread not found:error, then retry the operation. A replay-based test verifies recovery for a resource read.Changes: Codex MCP thread recovery
Layer / File(s) Summary Resume and retry MCP operations
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts,apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.tsA shared wrapper resumes the thread with excludeTurns: trueafter a matching missing-thread error, then retrieslistTools,callTool, orreadResource. The replay test verifies that a resource read returns its result after recovery.Estimated code review effort: 2 (Simple) | ~15 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related issues
- pingdotgg/t3code#25191: This change resumes unloaded threads, but does not address the issue’s duplicate instruction messages.
Suggested reviewers:
juliusmarminge,derektrimm
Merge Risk: External image Moderate · previous review f8b04
-
Fix the failing lint check and ensure MCP recovery uses current thread settings before merging. Recovery may also fail for an archived native thread.
Pre-merge checks: Passed 4
-
Check name Status Explanation Title check Passed The title clearly identifies the Codex MCP recovery change and references the linked issue. It is concise and specific. Description check Passed The description explains the problem, implementation, affected MCP operations, linked issue, and validation results. It does not include a dedicated Scope and approval section or explicit approval evi… Linked Issues check Passed Issue #29433requires MCP access after a retained Codex thread unloads.CodexAdapterV2.tsdetects Codex-32600errors beginning withthread not found:, resumes the same native thread with `exclu…Out of Scope Changes check Passed The whole-PR diff changes only CodexAdapterV2.tsand its regression test. The adapter changes implement issue#29433. The test validates the recovery behavior. No unrelated change is identified.Full details: Description check
-
Explanation
The description explains the problem, implementation, affected MCP operations, linked issue, and validation results. It does not include a dedicated Scope and approval section or explicit approval evidence, but the focused bug fix and issue link provide sufficient context.
Full details: Linked Issues check
-
Explanation
Issue
#29433requires MCP access after a retained Codex thread unloads.CodexAdapterV2.tsdetects Codex-32600errors beginning withthread not found:, resumes the same native thread withexcludeTurns: true, and retries the request. The recovery coverslistTools,callTool, andreadResource. The regression test verifies resume, retry, and the successful resource result without a model turn.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts