Skip to content

fix: clarify deferred Codex catalog refresh warnings - #157352

Merged
shakkernerd merged 1 commit into
mainfrom
fix/catalog-refresh-diagnostic
Sep 24, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
fix/catalog-refresh-diagnostic

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

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 fresh gitInfo.branch from thread/list on 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.

@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: codex size: S labels Sep 24, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 11:11 AM ET / 15:11 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: cb8f14039872f3a57296cea607a101ee829e344a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The small owner-local patch has targeted boundary coverage and no identified correctness or security blocker.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its tests exercise the changed warning through the production catalog owner and a client harness; the PR body's earlier published-runtime recovery proof does not show the new warning on this exact candidate. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its tests exercise the changed warning through the production catalog owner and a client harness; the PR body's earlier published-runtime recovery proof does not show the new warning on this exact candidate. No stored-data contract changes.
Evidence reviewed 9 items Introduced behavior: The client-closure branch passes an explicit deferred disposition to the existing catalog reporter; the reporter changes only the warning text for that disposition.
Existing failure path: The same reporter retains the general background-failure warning for errors without the deferred disposition.
Current main remains affected: Current main sends closed-client interruptions to a reporter that always emits the general background-failure warning.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +6, Tests +45, Docs +2. Total +53 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 10 4 +6
Tests 1 45 0 +45
Docs 1 4 2 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 59 6 +53

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This focused change improves operator-facing diagnostic wording without changing catalog recovery or stored state.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its tests exercise the changed warning through the production catalog owner and a client harness; the PR body's earlier published-runtime recovery proof does not show the new warning on this exact candidate. No stored-data contract changes.

Label justifications:

  • P3: This focused change improves operator-facing diagnostic wording without changing catalog recovery or stored state.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its tests exercise the changed warning through the production catalog owner and a client harness; the PR body's earlier published-runtime recovery proof does not show the new warning on this exact candidate. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@shakkernerd shakkernerd self-assigned this Sep 24, 2026
@shakkernerd
shakkernerd merged commit d9f6364 into main Sep 24, 2026
130 checks passed
@shakkernerd
shakkernerd deleted the fix/catalog-refresh-diagnostic branch September 24, 2026 15:27
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Improved: Codex catalog warnings now distinguish interrupted metadata refreshes deferred for automatic recovery while preserving genuine failure diagnostics.

vincentkoc added a commit that referenced this pull request Sep 24, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 24, 2026
* 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
  ...
vincentkoc added a commit that referenced this pull request Sep 24, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 24, 2026
* 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]>
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: codex P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant