Repository navigation
fix: clarify deferred Codex catalog refresh warnings - #157352
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 11:11 AM ET / 15:11 UTC. ClawSweeper reviewWhat this changesThe Codex plugin gives interrupted catalog metadata refreshes a distinct deferred warning, with focused tests and updated harness documentation. Merge readiness✅ Ready for maintainer review Keep open. Current main and the latest release still describe a handled Codex client-close interruption as a background failure. The linked disk-growth fixes did not resolve this diagnostic. Priority: P3 Review scores
Verification
How this fits togetherThe Codex plugin observes native app-server events and refreshes a resident conversation catalog used by session listings. When a client closes during a metadata read, the catalog logs the interruption and remains eligible for later reconciliation. flowchart LR
A[Native Codex events] --> B[Catalog refresh queue]
B --> C[Metadata read]
C --> D{Client closed?}
D -->|Yes| E[Deferred warning]
D -->|No, read fails| F[Failure warning]
E --> G[Later catalog reconciliation]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +6, Tests +45, Docs +2. Total +53 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep deferred client-close diagnostics with the catalog owner while preserving the original cause and the distinct warning for genuine failures. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main routes a closed-client metadata-read interruption to the general failure warning, and the existing catalog harness exercises that closure path. This read-only review did not execute it. Is this the best way to solve the issue? Yes. An explicit disposition through the existing reporter is a narrow fix, and the other error paths retain their warning. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4dbec4804a7c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Improved: Codex catalog warnings now distinguish interrupted metadata refreshes deferred for automatic recovery while preserving genuine failure diagnostics. |
* commit '02ad6b76b1a2ee2b414b170072e6e3e606fda3d4': (134 commits) fix(build): scope normalization declarations to package sources (#157174) fix: exit after validating Codex model references (#157323) fix(gateway): guard workspace adoption during active work (#157259) fix(update): rebuild stale Git runtimes when source is already current (#156996) fix: require a click before diagnosing failed updates (#157359) test(release): provide sealed artifact inputs to writer fixtures fix(ios): preserve chat state and adapt layout when iPad windows resize (#156683) fix(test): prepare native UI fixtures before compilation fix(test): await outbound delivery readiness before assertions fix: clarify deferred Codex catalog refresh warnings (#157352) fix(skills): refresh skills after watched directories are replaced (#156324) ci: reduce Node fixture overhead and defer seven release matrices (#157341) chore(test): stop Codex Computer Use and Signal batching tests flaking under load (#157334) fix(gateway): retain owned suspension status during restart (#157258) fix(ci): scope desktop status assertions to the selected worker chore(i18n): refresh native locales (#157337) test(daemon): use the native PowerShell probe budget (#157289) fix(exec): avoid gateway stalls during background task writes (#157177) test(cli): isolate preaction title setter state fix(test): synchronize Git backoff cancellation readiness (#157315) ...
* commit 'c4333da677cbdfe1bbaf783ed01c363ff39e93b8': (100 commits) fix(test): stop preflight mocks leaking into shared workers (#157207) fix(build): scope normalization declarations to package sources (#157174) fix: exit after validating Codex model references (#157323) fix(gateway): guard workspace adoption during active work (#157259) fix(update): rebuild stale Git runtimes when source is already current (#156996) fix: require a click before diagnosing failed updates (#157359) test(release): provide sealed artifact inputs to writer fixtures fix(ios): preserve chat state and adapt layout when iPad windows resize (#156683) fix(test): prepare native UI fixtures before compilation fix(test): await outbound delivery readiness before assertions fix: clarify deferred Codex catalog refresh warnings (#157352) fix(skills): refresh skills after watched directories are replaced (#156324) ci: reduce Node fixture overhead and defer seven release matrices (#157341) chore(test): stop Codex Computer Use and Signal batching tests flaking under load (#157334) fix(gateway): retain owned suspension status during restart (#157258) fix(ci): scope desktop status assertions to the selected worker chore(i18n): refresh native locales (#157337) test(daemon): use the native PowerShell probe budget (#157289) fix(exec): avoid gateway stalls during background task writes (#157177) test(cli): isolate preaction title setter state ...
* commit '02ad6b76b1a2ee2b414b170072e6e3e606fda3d4': (122 commits) fix(build): scope normalization declarations to package sources (#157174) fix: exit after validating Codex model references (#157323) fix(gateway): guard workspace adoption during active work (#157259) fix(update): rebuild stale Git runtimes when source is already current (#156996) fix: require a click before diagnosing failed updates (#157359) test(release): provide sealed artifact inputs to writer fixtures fix(ios): preserve chat state and adapt layout when iPad windows resize (#156683) fix(test): prepare native UI fixtures before compilation fix(test): await outbound delivery readiness before assertions fix: clarify deferred Codex catalog refresh warnings (#157352) fix(skills): refresh skills after watched directories are replaced (#156324) ci: reduce Node fixture overhead and defer seven release matrices (#157341) chore(test): stop Codex Computer Use and Signal batching tests flaking under load (#157334) fix(gateway): retain owned suspension status during restart (#157258) fix(ci): scope desktop status assertions to the selected worker chore(i18n): refresh native locales (#157337) test(daemon): use the native PowerShell probe budget (#157289) fix(exec): avoid gateway stalls during background task writes (#157177) test(cli): isolate preaction title setter state fix(test): synchronize Git backoff cancellation readiness (#157315) ...
* test(ui): cover stack-free tooltip disconnect cleanup * fix(build): scope normalization declarations to package sources Give normalization-core its own TypeScript project so declaration generation does not load the repository-wide source set. Preserve the existing DTS build command and compiler policy. * Merge normalization declaration scope for tooltip proof * commit '81aeccb3db80136a118d6d2f98b67d836ec25e51': fix(build): scope normalization declarations to package sources * fix(ui): avoid retaining tooltip anchors in abort reasons * Merge main to include native wrapper source inventory repair * commit '02ad6b76b1a2ee2b414b170072e6e3e606fda3d4': (134 commits) fix(build): scope normalization declarations to package sources (#157174) fix: exit after validating Codex model references (#157323) fix(gateway): guard workspace adoption during active work (#157259) fix(update): rebuild stale Git runtimes when source is already current (#156996) fix: require a click before diagnosing failed updates (#157359) test(release): provide sealed artifact inputs to writer fixtures fix(ios): preserve chat state and adapt layout when iPad windows resize (#156683) fix(test): prepare native UI fixtures before compilation fix(test): await outbound delivery readiness before assertions fix: clarify deferred Codex catalog refresh warnings (#157352) fix(skills): refresh skills after watched directories are replaced (#156324) ci: reduce Node fixture overhead and defer seven release matrices (#157341) chore(test): stop Codex Computer Use and Signal batching tests flaking under load (#157334) fix(gateway): retain owned suspension status during restart (#157258) fix(ci): scope desktop status assertions to the selected worker chore(i18n): refresh native locales (#157337) test(daemon): use the native PowerShell probe budget (#157289) fix(exec): avoid gateway stalls during background task writes (#157177) test(cli): isolate preaction title setter state fix(test): synchronize Git backoff cancellation readiness (#157315) ... Co-authored-by: Vincent Koc <[email protected]>
Clarify that a Codex conversation-catalog refresh interrupted by client closure is deferred for automatic recovery, retaining cause details and genuine failure warnings. Refs openclaw#152689.
* test(ui): cover stack-free tooltip disconnect cleanup * fix(build): scope normalization declarations to package sources Give normalization-core its own TypeScript project so declaration generation does not load the repository-wide source set. Preserve the existing DTS build command and compiler policy. * Merge normalization declaration scope for tooltip proof * commit '81aeccb3db80136a118d6d2f98b67d836ec25e51': fix(build): scope normalization declarations to package sources * fix(ui): avoid retaining tooltip anchors in abort reasons * Merge main to include native wrapper source inventory repair * commit 'f11e16cd65951f284264bd202b49984e21091cf5': (134 commits) fix(build): scope normalization declarations to package sources (openclaw#157174) fix: exit after validating Codex model references (openclaw#157323) fix(gateway): guard workspace adoption during active work (openclaw#157259) fix(update): rebuild stale Git runtimes when source is already current (openclaw#156996) fix: require a click before diagnosing failed updates (openclaw#157359) test(release): provide sealed artifact inputs to writer fixtures fix(ios): preserve chat state and adapt layout when iPad windows resize (openclaw#156683) fix(test): prepare native UI fixtures before compilation fix(test): await outbound delivery readiness before assertions fix: clarify deferred Codex catalog refresh warnings (openclaw#157352) fix(skills): refresh skills after watched directories are replaced (openclaw#156324) ci: reduce Node fixture overhead and defer seven release matrices (openclaw#157341) chore(test): stop Codex Computer Use and Signal batching tests flaking under load (openclaw#157334) fix(gateway): retain owned suspension status during restart (openclaw#157258) fix(ci): scope desktop status assertions to the selected worker chore(i18n): refresh native locales (openclaw#157337) test(daemon): use the native PowerShell probe budget (openclaw#157289) fix(exec): avoid gateway stalls during background task writes (openclaw#157177) test(cli): isolate preaction title setter state fix(test): synchronize Git backoff cancellation readiness (openclaw#157315) ... Co-authored-by: Vincent Koc <[email protected]>
Related: #152689
What Problem This Solves
When a native Codex client closes during a conversation-catalog metadata refresh, the catalog already defers recovery to its current owner. The top-level log still says “background update failed,” which makes that handled interruption look like an unresolved failure even though the cause details describe the deferral.
User Impact
The warning now says “Codex resident catalog metadata refresh interrupted; deferred for automatic recovery.” Recovery is pending at that point; the message does not claim that it has completed or promise a deadline. The warning level and original cause chain remain available for diagnosis, and genuine read, reconciliation, and storage failures keep their existing failure warning.
Why This Change Was Made
The existing client-closure branch now passes an explicit deferred disposition to the catalog's diagnostic owner. This avoids inferring handled errors from their message text. Recovery scheduling, source backoff, native-client retirement, captured results, and stored state are unchanged. The harness documentation describes the distinction.
Evidence
Both queued and written closure cases fail on the original implementation at the new top-level warning assertion. On candidate
cb8f14039872f3a57296cea607a101ee829e344a, all 53 affected tests across five files pass remotely, including genuine read, reconciliation, and storage failure controls and catalog lifecycle/durability coverage. The new read and storage controls take 3 ms and 2 ms; the combined maintained test command takes 76.84 seconds including cold compilation.A real native Codex 0.155.1 process was exercised through the candidate's production catalog owner and list entry point. A metadata response was held before decoding, then normal retirement and final lease release closed the physical client. The resulting warning used the new deferral message exactly once and retained the full indeterminate-transport cause chain, including
mayHaveWritten: true. The existing scheduler obtained freshgitInfo.branchfromthread/liston a replacement client and published it before the visible catalog was queried. Recovery took 30.015 seconds in this run; the subsequent query added zero native requests. Normal and later metadata changes passed, with no model inference, and all probe clients closed cleanly. This reuses the published-release baseline and strengthens the diagnostic assertion on the candidate; it is production owner/list proof, not a full Gateway or UI run.The remote proof ran in the retained validation job. Formatting, diff hygiene, changed-path ratchets, targeted lint, and independent review passed. The full remote changed-path gate passed all 26 selected obligations in 738.85 seconds, including six additional Doctor contract tests. Hosted CI passed, and the changed 30-case test file totaled 1.503 seconds of test time in CI (the shared extension job took 288 seconds). ClawSweeper reviewed the exact candidate at Platinum with no findings. This log-only contribution does not claim to resolve the separate disk-growth or platform concerns in the linked issue.