Repository navigation
fix(plugins): Gateway stalls when a model change reloads the OpenAI plugin - #182194
Merged
Merged
Conversation
Do not infer asset ownership from an unused URL expression or its discarded property value. Continue inspecting arguments and preserve used file and directory URL captures. A generated codec directory URL caused config RPC model changes to capture unrelated build output during the OpenAI plugin reload. Cover the bundled capture boundary with aliased and direct-base regressions. Validation: 67 config RPC plan tests, 48 plugin capture tests, full build, targeted typecheck/lint/format, and independent P2 review.
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 25, 2026
…lugin (openclaw#182194) Do not infer asset ownership from an unused URL expression or its discarded property value. Continue inspecting arguments and preserve used file and directory URL captures. A generated codec directory URL caused config RPC model changes to capture unrelated build output during the OpenAI plugin reload. Cover the bundled capture boundary with aliased and direct-base regressions. Validation: 67 config RPC plan tests, 48 plugin capture tests, full build, targeted typecheck/lint/format, and independent P2 review.
steipete
added a commit
that referenced
this pull request
Nov 5, 2026
…#184851) * test(plugins): cover unused URL expressions in source references Restore regression coverage for #182194: a discarded new URL(...) or its discarded .href is not a plugin source asset, while the URL's arguments are still traced. The original regression was deleted with the bundled reload module in #182403, and #184340 removed this suite's visitor assertion. Before #182194, this pattern in a generated codec made the OpenAI plugin reload capture the host build, which hung Linux Bun teardown of server.config-patch.test.ts in restart.close.config-reloader. * test(plugins): pass a lazy resolver to the source reference visitor #188890 changed visitPluginSourceReferences to take getResolver. The old call throws a TypeError on current main, and stale PR CI could not see it.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 6, 2026
…openclaw#184851) * test(plugins): cover unused URL expressions in source references Restore regression coverage for openclaw#182194: a discarded new URL(...) or its discarded .href is not a plugin source asset, while the URL's arguments are still traced. The original regression was deleted with the bundled reload module in openclaw#182403, and openclaw#184340 removed this suite's visitor assertion. Before openclaw#182194, this pattern in a generated codec made the OpenAI plugin reload capture the host build, which hung Linux Bun teardown of server.config-patch.test.ts in restart.close.config-reloader. * test(plugins): pass a lazy resolver to the source reference visitor openclaw#188890 changed visitPluginSourceReferences to take getResolver. The old call throws a TypeError on current main, and stale PR CI could not see it.
wangmiao0668000666
pushed a commit
to wangmiao0668000666/openclaw
that referenced
this pull request
Nov 6, 2026
…openclaw#184851) * test(plugins): cover unused URL expressions in source references Restore regression coverage for openclaw#182194: a discarded new URL(...) or its discarded .href is not a plugin source asset, while the URL's arguments are still traced. The original regression was deleted with the bundled reload module in openclaw#182403, and openclaw#184340 removed this suite's visitor assertion. Before openclaw#182194, this pattern in a generated codec made the OpenAI plugin reload capture the host build, which hung Linux Bun teardown of server.config-patch.test.ts in restart.close.config-reloader. * test(plugins): pass a lazy resolver to the source reference visitor openclaw#188890 changed visitPluginSourceReferences to take getResolver. The old call throws a TypeError on current main, and stale PR CI could not see it.
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
Fixes Gateway stalls when a config RPC model change enables or reloads the OpenAI plugin.
User Impact
Model changes can finish reloading the plugin without capturing unrelated built plugins and assets. Used file and directory URL assets retain their existing capture behavior.
Why This Change Was Made
The generated audio codec contains an unused
new URL(".", _scriptName).hrefcalculation. Static source inspection treated that as an asset reference, recursively capturing the build directory. Local workers remained alive and CPU-bound in file capture and source parsing; the historical zombie diagnostics were collected after the watchdog sent SIGTERM.Track discarded expression results through member access and exclude only unused URL calculations from asset discovery. Continue inspecting their arguments. The regression covers aliased and direct URL bases and preserves a used aliased file asset; existing tests cover directory assets, cycle rejection, native Workers, and recovery. No timeout, retry, config-write, or teardown changes.
Evidence
agentic-control-plane-runtime-configselection, currentlychecks-node-compact-small-12:test/vitest/vitest.gateway-server.config.ts, including onlysrc/gateway/server.config-patch.test.ts, runtime prebuild, two workers, plan concurrency one. Historical compact indices differ.pnpm build, core and plugins-platform test typechecking through the repository tsrs lanes, targeted type-aware oxlint, formatting, andgit diff --checkpass. Independent local review is clean through P2.Local reproduction host: macOS arm64 M3 Ultra (32 CPUs), Vitest 5.0.5. The saved CI jobs used Ubuntu x64 AMD EPYC (2 reported CPUs), Vitest 5.0.3; Linux CI remains the broad proof.
CI plan replay
Use Node 24.22.1 and the pinned Bun fork (
1.4.4-canary.1+ef37c31de):The local runs also used external temporary/cache directories and crash diagnostics. The existing no-output timeout remained 300000 ms.