Repository navigation
fix(plugins): stop ambient source startup for external plugins - #116759
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 6:10 AM ET / 10:10 UTC. ClawSweeper reviewWhat this changesThe PR prevents source-checkout gateway startup from implicitly launching externalized plugins solely because their manifests request Merge readinessKeep open for explicit maintainer review. This focused draft changes the startup policy for source-discovered packages marked Priority: P2 Review scores
Verification
How this fits togetherThe gateway builds a startup plan from discovered plugin records and the operator configuration. That plan decides which channel and provider plugins are loaded during gateway boot, affecting source-checkout startup cost and whether an unconfigured plugin becomes active. flowchart LR
A[Plugin manifests] --> B[Plugin discovery registry]
C[OpenClaw configuration] --> D[Startup activation policy]
B --> D
D --> E[Gateway startup plan]
E --> F[Loaded channel and provider plugins]
F --> G[Gateway boot time and capabilities]
Decision needed
Why: The patch changes an existing startup default for a class of source-checkout installations; the correct balance between startup cost and implicit plugin availability is an intentional product and compatibility policy choice. Before merge
Agent review detailsSecurityNone. PR surfaceSource +5, Tests +77. Total +82 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep core-bundled plugins on ambient startup, require explicit activation for externalized source packages, and document or diagnose any supported workflow that previously depended on implicit startup. Do we have a high-confidence way to reproduce the issue? Unclear for a live current-main run: the supplied diff and PR description identify the source-checkout decision path, but the review context does not include an independently inspectable after-fix runtime trace for the affected externalized package. Is this the best way to solve the issue? Unclear: mapping source-discovered AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 44ce19821fbc. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer decision: adopt explicit startup for source-discovered packages with Ambient After-fix proof: https://github.com/openclaw/openclaw/actions/runs/30622479155
Rank-up moves:
|
|
Post-merge exact-state proof: https://github.com/openclaw/openclaw/actions/runs/30623132812
|
* commit 'refs/frozen/talk-pcm-output-main-refresh': fix(skills): allow autonomous sweep sync (#116755) fix(irc): recognize punctuation in nickname mentions (#116758) fix(plugins): require explicit source external startup (#116759) fix(whatsapp): keep sends running when typing presence fails (#116739) fix(cli): reject dangling config path escapes (#116738) fix(qa): authenticate summaries and bound native scenario commands (#116748) fix(bedrock): reject truncated streams and preserve audio results (#116743) docs(skill): isolate autonomous issue sweep worktrees fix(ci): retire Kova runtime deps coverage (#116760) chore(i18n): refresh native locales (#116640) fix(ollama): resolve web search secret refs (#104829) fix(ollama): honor stop sequences and async payload hooks (#116737) fix(ollama): stop oversized stream records from growing memory (#107473) fix(agents): preserve thinking for runtime-selected Ollama models (#116584)
* origin/main: (23 commits) fix(agents): preserve resumed turns after stale terminal events (#116777) fix(browser): preserve tab-bound browser authorization (#116778) fix(doctor): correct SQLite-backed automation warnings (#116769) fix(release): skip unavailable Buzz QA runner (#116753) feat(plugins): externalize DuckDuckGo search (#116740) refactor(reply): simplify task-owned typing refresh (#116770) fix(chat): explain chat-only model limits feat(models): expose tool support to clients docs(skill): require independent proof before issue closure fix(skills): allow autonomous sweep sync (#116755) fix(irc): recognize punctuation in nickname mentions (#116758) fix(plugins): require explicit source external startup (#116759) fix(whatsapp): keep sends running when typing presence fails (#116739) fix(cli): reject dangling config path escapes (#116738) fix(qa): authenticate summaries and bound native scenario commands (#116748) fix(bedrock): reject truncated streams and preserve audio results (#116743) docs(skill): isolate autonomous issue sweep worktrees fix(ci): retire Kova runtime deps coverage (#116760) chore(i18n): refresh native locales (#116640) fix(ollama): resolve web search secret refs (#104829) ...
* commit 'refs/frozen/talk-pcm-output-main-refresh': fix(skills): allow autonomous sweep sync (openclaw#116755) fix(irc): recognize punctuation in nickname mentions (openclaw#116758) fix(plugins): require explicit source external startup (openclaw#116759) fix(whatsapp): keep sends running when typing presence fails (openclaw#116739) fix(cli): reject dangling config path escapes (openclaw#116738) fix(qa): authenticate summaries and bound native scenario commands (openclaw#116748) fix(bedrock): reject truncated streams and preserve audio results (openclaw#116743) docs(skill): isolate autonomous issue sweep worktrees fix(ci): retire Kova runtime deps coverage (openclaw#116760) chore(i18n): refresh native locales (openclaw#116640) fix(ollama): resolve web search secret refs (openclaw#104829) fix(ollama): honor stop sequences and async payload hooks (openclaw#116737) fix(ollama): stop oversized stream records from growing memory (openclaw#107473) fix(agents): preserve thinking for runtime-selected Ollama models (openclaw#116584)
* origin/main: (23 commits) fix(agents): preserve resumed turns after stale terminal events (openclaw#116777) fix(browser): preserve tab-bound browser authorization (openclaw#116778) fix(doctor): correct SQLite-backed automation warnings (openclaw#116769) fix(release): skip unavailable Buzz QA runner (openclaw#116753) feat(plugins): externalize DuckDuckGo search (openclaw#116740) refactor(reply): simplify task-owned typing refresh (openclaw#116770) fix(chat): explain chat-only model limits feat(models): expose tool support to clients docs(skill): require independent proof before issue closure fix(skills): allow autonomous sweep sync (openclaw#116755) fix(irc): recognize punctuation in nickname mentions (openclaw#116758) fix(plugins): require explicit source external startup (openclaw#116759) fix(whatsapp): keep sends running when typing presence fails (openclaw#116739) fix(cli): reject dangling config path escapes (openclaw#116738) fix(qa): authenticate summaries and bound native scenario commands (openclaw#116748) fix(bedrock): reject truncated streams and preserve audio results (openclaw#116743) docs(skill): isolate autonomous issue sweep worktrees fix(ci): retire Kova runtime deps coverage (openclaw#116760) chore(i18n): refresh native locales (openclaw#116640) fix(ollama): resolve web search secret refs (openclaw#104829) ...
What Problem This Solves
Fixes an issue where source-checkout gateways implicitly started externalized plugins as core-bundled startup plugins, forcing live TypeScript transforms and adding roughly 1.3-1.5 seconds to startup.
Why This Change Was Made
Source discovery still exposes externalized plugin packages, but
bundledDist: falsepackages now follow the external explicit-startup policy. Explicit plugin entries, allowlists, configured channels, and selected providers still activate them. Core-bundled plugins keep their existing default startup behavior.Packaged users were not affected because these plugin trees are excluded from the core package and separately installed packages use compiled runtimes.
User Impact
Developers running OpenClaw from a source checkout no longer pay ambient startup cost for externalized plugins they did not configure.
Evidence
git diff --check: cleanhttps://github.com/openclaw/openclaw/actions/runs/30621382626