You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4ee2216
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): avoid repeated plugin preparation at startup (#131503)
* fix(cli): retain invocation-owned plugin startup facts
Bind non-Gateway CLI work to one operation PluginCache while closing preparation authority before actions. Preserve selected-workspace execution and config-wide validation.
Defer the config writer, broad runtime state, and complete SDK aliases until demanded; keep late CJS and ESM actions in their creating cache. Rebuild the startup-only fix on the canonical progressive plugin cache without restoring superseded metadata and cache layers.
Startup split from the standalone relay investigation in #128379; updates #131503.
* fix(doctor): preserve registry scope across metadata refreshes
Give explicit post-lease and post-mutation reads a fresh metadata generation without retiring the invoking CLI or Gateway owner. Persist the original workspace index while retaining the complete config-wide validation view.
Bind rebased snapshots to their creating cache so later consumers cannot borrow a stale or foreign generation. Replace mocked persistence assertions with real scoped-index, lease, checkpoint, schema and provenance regressions.
Follow-up to the installed startup verification for #131503.
* fix(cli): defer MCP serving and stabilize startup checks
Load the existing channel MCP server only for the serve action, and use the already-eager client-runtime import for reload. Registration and probes no longer evaluate the unused serving owner.
Initialize the config CLI runtime capture before hoisted mocks. Give the real Doctor checkpoint fixture explicit build provenance and verify durable rows for successful, interrupted, and unidentified builds without changing runtime checkpoint policy. Remove duplicate fixture initialization and avoid dumping captured environments on rejection failures.
Refs: #131503 (CLI startup preparation)
* test(plugins): follow runtime load context module split
Import the canonical runtime context resolver from its new owning module in the CLI lifetime regression. Preserve the existing behavior assertions; the original CI TS2724 reproduces before the import correction and the same type program and 16 lifetime cases pass afterward.
Refs: #131503 (CLI startup preparation)
* test(plugins): drop duplicate alias memoization assertion
Remove the case that compares the same cached alias object with itself. Keep the stronger identity/no-repeated-filesystem-read test, context-isolation cases, and real source/native loader coverage. No production API or behavior changes.
Refs: #131503 (CLI startup preparation)
* fix(ui): stop retired usage loads before requests
Preserve main's canonical lazy Usage loading and check the router, transport epoch, and selected agent after the deferred import. Carry the existing route signal to all aggregate requests so obsolete navigation does not start new RPCs or retain client waits. Keep independent preload lifetime intact.
Consolidate pending results to absorb the ownership checks with a net reduction of one production line. Real router/Gateway/selection regressions fail before the fix and pass afterward. Browser Back during a held service-worker fetch starts three obsolete Usage requests before the fix and none afterward; a fresh Usage visit still loads normally. This does not claim cancellation of server work already sent.
Refs: #131503 (CLI startup preparation and integration repair)
Related: #132140 (canonical Usage startup loading)
* test(ui): assert fresh usage data after epoch changes
Keep the waited fresh-result identity and stale-result rejection checks. Remove two redundant assertions that required the old two-argument request shape and rejected the newly forwarded cancellation signal.
The same failure appeared in both Control UI and Node CI lanes. Both test entrypoints now pass, along with adjacent Usage/controller coverage, UI test types, lint, and formatting. No production code, mock response, timeout, or stale/fresh data assertion changes.
Refs: #131503 (CLI startup and Usage lifecycle integration)
CI: https://github.com/openclaw/openclaw/actions/runs/33224402718
0 commit comments