Skip to content

fix(plugins): include selected context-engine plugin at startup#76669

Closed
steipete wants to merge 3 commits into
mainfrom
codex/replacement-76636-context-engine-startup
Closed

fix(plugins): include selected context-engine plugin at startup#76669
steipete wants to merge 3 commits into
mainfrom
codex/replacement-76636-context-engine-startup

Conversation

@steipete

@steipete steipete commented May 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

HCL and others added 3 commits May 3, 2026 13:22
…76598)

`resolvePluginTools` returned an empty tool list when no pre-warmed
channel/active registry was found after startup — the on-demand fallback
removed by PR #76004 was only added back for memory and capability-provider
surfaces, leaving path-based (origin "config") plugin tool factories silent.

Fix: when `resolvePluginToolRegistry` returns null, trigger a standalone
registry load via `ensureStandaloneRuntimePluginRegistryLoaded`, then retry.
Adds regression test asserting tools are resolved without pre-warming.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…startup (#76576)

External context-engine plugins (e.g. lossless-claw) register via
api.registerContextEngine at load time but ship without
activation.onStartup in their manifest. The gateway startup planner
only considered memory plugins and explicit sidecar plugins, so a
selected non-legacy context engine was omitted from the startup load
plan and never loaded before agent turns resolved the active engine,
producing the "Context engine X is not registered; falling back to
default engine legacy" warning.

Fix: add resolveContextEngineSlotStartupPluginId mirroring the memory
slot pattern; pass contextEngineSlotStartupPluginId into
shouldConsiderForGatewayStartup so the selected context-engine plugin
is included in pluginIds regardless of its manifest activation shape.

Tests: added four regression cases covering include, exclude, legacy
bypass, and id normalization. 82 tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@steipete

steipete commented May 3, 2026

Copy link
Copy Markdown
Contributor Author

Closing this replacement as superseded: the original PR #76636 merged while this was being opened, and current main now contains the same commits/changes. Canonical landed PR: #76636

@steipete steipete closed this May 3, 2026
@steipete steipete deleted the codex/replacement-76636-context-engine-startup branch May 3, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants