Repository navigation
fix: avoid source worker startup deadlines in Codex history tests - #170668
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
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. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
…enclaw#170668) Register the Codex session-history worker in the existing compiled-worker inventories and extract its unchanged entrypoint descriptor. This removes avoidable TypeScript startup work from tests without changing assertions or task deadlines. All seven selected history cases passed in exact-head PR CI. Unrelated Knip export findings were matched to main and repaired separately.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Codex history projection tests can exhaust the worker task deadline while loading their TypeScript dependency graph. The history worker was missing from Vitest's compiled-worker declarations and build entries, unlike the neighboring catalog worker.
User Impact
No user-visible behavior change. History tests use the existing compiled-worker infrastructure, with their assertions and timeouts unchanged.
Why This Change Was Made
Move the existing descriptor into a sibling entrypoint module and register it in both compiled-worker inventories. Its source and packaged paths stay identical. Vitest redirects only the descriptor; runtime parents and direct worker imports stay source-backed. The old inline declaration is removed.
The diagnostic replay associated with #170262 recorded a source history worker failing at its 60-second deadline before the handler started. Successful controls spent roughly 44–53 seconds reaching the handler, then completed the operation in under 200 ms. These are startup observations from a loaded host, not a latency benchmark.
Evidence
The unchanged base (
b78d2d4c7ec7d) passed all seven selected item-limit, field-limit, and evidence-budget cases:pnpm test extensions/codex/src/app-server/session-history.test.ts --maxWorkers=1 -t 'retains (item_limit|field_limit) in capture diagnostics|projects native evidence within its budget'. Invocation wall time: 278.85 seconds on macOS / Node 26. This confirms that the old failures are intermittent; it is not candidate proof or a claim that every incognito timeout has the same cause.Changed-file formatting, basic oxlint and
git diff --checkpass. Independent Codex review is scoped-clean with no actionable findings.PR CI passed at
bea1f9c21862740bdf4fc6f35b3b9c29f4a01608, including production/test types, type-aware lint, source contracts, architecture and database ratchets. The extension worker test job passed 12 files / 175 tests. All seven selected history cases passed on Linux / Node 24:The separate exact-head Knip export scan passed the script scan with zero entries. Production/full scans reported 14 distinct inherited exports in untouched files; none involve this patch. Thirteen match the exact file/symbol findings in scheduled main, repaired by #170660 (
bda83ac9f168). The remainingChatPermissionCardproduction export has identical source and consumers on observed main03fb581d3584: its only external consumer is a test; production uses the local bridge. Scanner owners and export configurations are unchanged, apart from main adding two unrelated offline entrypoints. That cleanup is now merged as #170680 (9a15afcfbdcc). This is an inherited-static exception, not a claim that the full Knip scan passed. No scan was rerun.These are test durations, not product latency claims. No local candidate rerun or full-suite replay was needed. The distinct historical incognito timeout and native process-startup/placement failures are not claimed repaired by this change.
No schema, SDK surface, plugin-loading, update or service-lifecycle change. SQL harness and published-driver update cell are not applicable. LOC: production unchanged in net LOC; test-build metadata +4 net (14 additions, 10 deletions total).