Skip to content

fix(status): status --all slows down with missing plugins - #119203

Merged
Patrick-Erichsen merged 6 commits into
openclaw:mainfrom
mikasa0818:fix/problem-status-all-plugin-discovery
Aug 5, 2026
Merged

Patrick-Erichsen merged 6 commits into
openclaw:mainfrom
mikasa0818:fix/problem-status-all-plugin-discovery

Conversation

@mikasa0818

@mikasa0818 mikasa0818 commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes repeated plugin-manifest discovery when commands resolve repair guidance for several configured official-external channels. The reported status --all path was one instance of the shared bulk-caller invariant.

Why This Change Was Made

The repair-hint owner now exposes one batched resolver that evaluates channel presence policy once. status --all, config-only channel status, agent summaries, web-login errors, and outbound channel selection use it; the scalar API remains for true single-channel errors.

User Impact

Missing-plugin status and error output stays the same while discovery work remains constant as configured missing channels increase. No config, schema, persistence, gateway protocol, plugin API, or output-format contract changes.

Evidence

  • Sanitized direct-AWS Crabbox, original head: 11 focused tests passed.
  • Sanitized direct-AWS Crabbox, repaired head: core typecheck plus 67 focused tests passed across gateway, infra, commands, and plugins.
  • Isolated real CLI status --all run rendered Feishu, Google Chat, Matrix, and Twitch repair rows and exited 0.
  • Autoreview reported no actionable findings.
  • Final exact-head CI and ClawSweeper review remain required before merge.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: S labels Aug 4, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels Aug 4, 2026
@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 10:08 PM ET / August 5, 2026, 02:08 UTC.

ClawSweeper review

What this changes

This PR batches missing official-external-plugin repair hints so status, gateway, agent-summary, and outbound-selection callers avoid repeated plugin-manifest discovery while keeping the same user guidance.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open. Current main still resolves each missing status channel through the scalar repair-hint path, which reloads manifest metadata when no prepared records are supplied; this PR moves that shared work into one batch and preserves the visible repair output. No blocking correctness or security finding remains after the repaired head addressed the two prior P2 filter-before-batch findings.

Likely related people: Vincent Koc is the feature-history owner; Shakker is the most recent current-main contributor on the affected path.

Priority: P2
Reviewed head: 300d0bea8a7a6662bb9e6bb936b347808832fa83

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused owner-boundary repair with direct laziness coverage and credible after-fix CLI proof.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR supplies an after-fix isolated CLI status run and discovery-count comparison, and the supplied exact-head checks include successful real-behavior proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR supplies an after-fix isolated CLI status run and discovery-count comparison, and the supplied exact-head checks include successful real-behavior proof.
Evidence reviewed 8 items Current-main root cause: The scalar resolver invokes channel presence policy for one channel; without supplied manifest records, that policy loads the installed manifest registry.
Current-main affected caller: The current status-all path loops missing candidate IDs and invokes the scalar resolver once per channel without prepared manifest records.
Head repair owner boundary: The PR-head resolver returns immediately for an empty batch and evaluates presence policy once before mapping the requested channel IDs; the scalar API remains a one-channel wrapper.
Findings None None.
Security None None.

How this fits together

Configured channel status paths must explain how to repair a channel whose plugin is absent. They combine configured channel IDs with plugin metadata and presence policy, then render CLI rows or gateway/outbound error guidance.

flowchart LR
  Config[Configured channels] --> Status[Status and error callers]
  Status --> Hints[Repair-hint resolver]
  Hints --> Policy[Channel presence policy]
  Policy --> Metadata[Plugin manifest metadata]
  Hints --> Output[Repair rows and guidance]
Loading

Before merge

  • Resolve merge risk (P1) - The head is behind main and one exact-head CI check remains in progress; refresh the merge result and complete required checks before landing.
  • Complete next step (P2) - No mechanical repair remains; complete the routine exact-head CI and merge-result refresh before normal maintainer landing.
Agent review details

Security

None.

PR surface

Source +21, Tests +228. Total +249 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 6 105 84 +21
Tests 7 313 85 +228
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 418 169 +249

Review metrics

Metric Value Why it matters
Production versus test delta production +105/-84 (net +21); tests +313/-85 (net +228) The production growth is the shared batch resolver and prepared-metadata handoff needed to remove repeated discovery; the larger test delta covers cross-caller laziness invariants.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/agents.providers.ts, migration/backfill/repair: src/commands/channels.status.command-flow.test.ts, migration/backfill/repair: src/commands/channels/status-config-format.ts, migration/backfill/repair: src/commands/status-all/channels.test.ts, migration/backfill/repair: src/commands/status-all/channels.ts, migration/backfill/repair: src/gateway/server-methods/web.start.test.ts, and 5 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the single batched resolver with the prepared status metadata handoff once the exact head is green against the current merge result; retain scalar resolution only for true one-channel errors.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the single batched resolver with the prepared status metadata handoff once the exact head is green against the current merge result; retain scalar resolution only for true one-channel errors.

Do we have a high-confidence way to reproduce the issue?

Yes. Current main’s status-all loop calls the scalar resolver per missing channel, and the resolver loads the manifest registry when callers provide no prepared records; the PR also supplies an after-fix CLI transcript and discovery-count comparison.

Is this the best way to solve the issue?

Yes. Batching at the repair-hint owner and carrying the already-prepared status metadata forward removes duplicate discovery without adding a cache, configuration surface, or competing repair policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6a8e11e63cee.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR supplies an after-fix isolated CLI status run and discovery-count comparison, and the supplied exact-head checks include successful real-behavior proof.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This repairs a bounded status and error-path performance defect without evidence of message loss, data loss, security exposure, or runtime unavailability.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR supplies an after-fix isolated CLI status run and discovery-count comparison, and the supplied exact-head checks include successful real-behavior proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR supplies an after-fix isolated CLI status run and discovery-count comparison, and the supplied exact-head checks include successful real-behavior proof.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Commit f482e4d introduced catalog-backed missing-plugin repair hints and status warning rows, the feature this batch optimization extends. (role: feature origin; confidence: high; commits: f482e4d3359c; files: src/plugins/official-external-plugin-repair-hints.ts)
  • shakkernerd: Current-main blame attributes the scalar status-all loop and scalar repair-hint implementation to commit 34e73d2. (role: recent current-main path contributor; confidence: medium; commits: 34e73d25a6f2; files: src/commands/status-all/channels.ts, src/plugins/official-external-plugin-repair-hints.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the remaining exact-head CI check finish, then refresh the merge result if main advances.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-08-04T12:20:59.710Z sha 3a4f599 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-04T13:27:55.513Z sha 3a4f599 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-04T14:11:37.962Z sha 3a4f599 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-05T01:07:34.093Z sha 8761f78 :: needs changes before merge. :: [P2] Filter loaded channels before resolving repair hints | [P2] Filter requested and visible channels before resolving hints
  • reviewed 2026-08-05T01:14:33.976Z sha 8761f78 :: needs changes before merge. :: [P2] Filter loaded channels before resolving repair hints | [P2] Filter requested and visible channels before resolving hints

@mikasa0818

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The PR body now includes inspectable after-fix status --all terminal output and the normalized baseline-vs-fixed row comparison requested in the previous review. The exact PR head is unchanged.

@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@mikasa0818

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The PR body now includes the inspectable production-path discovery-count comparison requested by the previous review:

  • pinned latest main: one missing row = 1 preparation, four missing rows = 4
  • PR head: one missing row = 0 preparations, four missing rows = 0

The real CLI transcript and unchanged normalized channel-row hashes remain included as well.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: M and removed size: S labels Aug 5, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 5, 2026
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 5, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

The exact head now addresses both prior P2 findings:

  • agent summaries filter channels already represented in metadata before batch resolution
  • config-only status filters requested and visible channels before batch resolution
  • empty batches return before presence-policy discovery

Patch-identical sanitized AWS proof passed core typecheck, repository-wide formatting, and 83 focused tests (run_404c876f9c29). Fresh autoreview is clean.

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 5, 2026
@Patrick-Erichsen
Patrick-Erichsen merged commit 722dfb3 into openclaw:main Aug 5, 2026
195 of 208 checks passed
vincentkoc added a commit that referenced this pull request Aug 5, 2026
* origin/main: (22 commits)
  refactor(plugins): consolidate lifecycle hook dispatch (#119429)
  fix(ci): stabilize TUI PTY proof ownership (#119420)
  test(system-agent): reduce suite setup overhead (#119424)
  fix(ui): keep session rail pill status from overlapping the headline (#119397)
  fix(discord): avoid doctor runtime loading (#119391)
  fix(media): decouple playback cache retention (#119417)
  fix(slack): infer upload filename extensions from MIME types (#119399)
  refactor(channels): unify configured binding resolution (#119414)
  refactor(google-meet): unify gateway and tool dispatch (#119413)
  test(state): reuse legacy database fixtures (#119423)
  fix(reset): preserve bootstrap guidance for dynamic models (#119179)
  fix(chutes): honor serving context limits (#119196)
  refactor(status): consolidate scan projections and lazy loaders (#119412)
  fix(status): status --all slows down with missing plugins (#119203)
  refactor(gateway): consolidate usage reporting and caches (#119409)
  perf(gateway): keep reload and recovery machinery off gateway cold start (#119094)
  fix(cli): align TaskFlow controller columns for wide text (#118801)
  fix: make startup migration restart guidance install-neutral (#119406)
  fix(ci): preserve cache warmer shard envelopes (#119403)
  fix(sessions): preserve compatible auth profiles on model changes (#117550)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
…19203)

* fix(status): avoid repeated discovery for missing channels

* fix(status): batch missing plugin repair hints

* fix(status): type missing plugin channel ids

* fix(status): preserve required channel ids

* fix(status): keep batch hint type internal

* fix(status): preserve batch repair laziness

---------

Co-authored-by: daily-fix[bot] <daily-fix[bot]@users.noreply.github.com>
Co-authored-by: Patrick Erichsen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants