Repository navigation
fix(channels): generate catalog from package manifests - #118097
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 10:41 AM ET / 14:41 UTC. ClawSweeper reviewWhat this changesThis PR generates OpenClaw’s official channel catalog from publishable bundled plugin manifests, retains a seed for official plugins outside the repository, and checks the generated source during release preflight. Merge readinessKeep this maintainer-authored PR open for an owner decision and exact-head CI completion. The patch replaces the current stale-wins catalog behavior with a manifest-owned generation path, preserves a seed for out-of-tree official plugins, and adds focused compatibility coverage; I found no discrete correctness defect in the proposed patch. Priority: P2 Review scores
Verification
How this fits togetherThe official channel catalog feeds packaged channel discovery, setup, and Doctor’s plugin-repair decisions. Bundled channel packages and plugin manifests provide metadata to the catalog generator, while separately distributed official plugins retain curated fallback records. flowchart LR
A[Bundled channel manifests] --> C[Catalog generator]
B[External official-plugin seed] --> C
C --> D[Committed official catalog]
D --> E[Packaged runtime catalog]
D --> F[Setup and Doctor metadata]
E --> G[Channel discovery]
Decision needed
Why: The implementation is coherent, but the catalog drives setup and Doctor behavior for existing installations; the intended ownership and upgrade contract need an explicit owner decision rather than an automated merge conclusion. Before merge
Agent review detailsSecurityNone. PR surfaceSource +26, Tests +275, Config +2, Generated 0, Other +1747. Total +2050 across 17 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land one canonical manifest-generated catalog only after the catalog and plugin owners confirm the generated entries preserve fresh-install and lagging-plugin hydration behavior, and after the remaining exact-head checks finish green. Do we have a high-confidence way to reproduce the issue? No live current-main reproduction was run in this read-only review, but source inspection establishes the prior failure path: the copied catalog is loaded first and same-ID bundled package metadata is skipped. The PR adds focused tests at that exact generator boundary. Is this the best way to solve the issue? Yes, subject to the owner decision and upgrade proof: manifest-owned bundled metadata plus a dedicated external-plugin seed removes the competing source of truth while retaining the documented compatibility fallback for separately distributed plugins. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 48c14976b96c. LabelsLabel 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
HistoryReview history (5 earlier review cycles)
|
6f2a0be to
0f0d616
Compare
0f0d616 to
bb30532
Compare
bb30532 to
c559601
Compare
c559601 to
53e2355
Compare
53e2355 to
6a6c836
Compare
|
Merged via squash.
|
* origin/main: fix(onboard): keep referenced provider secrets out of plaintext (#118702) docs: show canonical agent roster configuration (#118722) fix(channels): generate catalog from package manifests (#118097) fix(zalouser): distinguish probe timeout from auth failure (#111336) improve(ui): cut E2E shard runtime by reusing the bundle (#118697) fix(cli): publish completion caches atomically (#118715) fix(whatsapp): honor disabled self-chat without widening group access (#118711) fix(voice-call): terminate carrier calls after realtime startup failures (#118699) fix(slack): isolate GovSlack media trust and delivery (#118695) fix(browser): wrap page-controlled action results (#118691) fix(security): sanitize JSON-escaped forged content boundaries (#118698) test(qa): prove real yielded-child completion and channel delivery (#118707) fix(doctor): honor explicit plugin-only migration authority (#118700) fix(security): detect child_process calls through aliases and computed members (#116304) test(gateway): avoid async facade mock race (#118708) fix(gateway): preserve final speech during transcription shutdown (#118693) fix(gateway): resume durable outbound delivery retries (#118694) fix(plugins): reject external public-artifact hardlinks (#118689)
* origin/main: (78 commits) fix(parallels): recover Windows poll transport failures (#118479) fix(channels): deny unauthorized Discord and Telegram binding access (#118704) fix(test): bound shared git inventory lookup (#111171) fix(onboard): keep referenced provider secrets out of plaintext (#118702) docs: show canonical agent roster configuration (#118722) fix(channels): generate catalog from package manifests (#118097) fix(zalouser): distinguish probe timeout from auth failure (#111336) improve(ui): cut E2E shard runtime by reusing the bundle (#118697) fix(cli): publish completion caches atomically (#118715) fix(whatsapp): honor disabled self-chat without widening group access (#118711) fix(voice-call): terminate carrier calls after realtime startup failures (#118699) fix(slack): isolate GovSlack media trust and delivery (#118695) fix(browser): wrap page-controlled action results (#118691) fix(security): sanitize JSON-escaped forged content boundaries (#118698) test(qa): prove real yielded-child completion and channel delivery (#118707) fix(doctor): honor explicit plugin-only migration authority (#118700) fix(security): detect child_process calls through aliases and computed members (#116304) test(gateway): avoid async facade mock race (#118708) fix(gateway): preserve final speech during transcription shutdown (#118693) fix(gateway): resume durable outbound delivery retries (#118694) ...
* origin/main: fix(onboard): keep referenced provider secrets out of plaintext (openclaw#118702) docs: show canonical agent roster configuration (openclaw#118722) fix(channels): generate catalog from package manifests (openclaw#118097) fix(zalouser): distinguish probe timeout from auth failure (openclaw#111336) improve(ui): cut E2E shard runtime by reusing the bundle (openclaw#118697) fix(cli): publish completion caches atomically (openclaw#118715) fix(whatsapp): honor disabled self-chat without widening group access (openclaw#118711) fix(voice-call): terminate carrier calls after realtime startup failures (openclaw#118699) fix(slack): isolate GovSlack media trust and delivery (openclaw#118695) fix(browser): wrap page-controlled action results (openclaw#118691) fix(security): sanitize JSON-escaped forged content boundaries (openclaw#118698) test(qa): prove real yielded-child completion and channel delivery (openclaw#118707) fix(doctor): honor explicit plugin-only migration authority (openclaw#118700) fix(security): detect child_process calls through aliases and computed members (openclaw#116304) test(gateway): avoid async facade mock race (openclaw#118708) fix(gateway): preserve final speech during transcription shutdown (openclaw#118693) fix(gateway): resume durable outbound delivery retries (openclaw#118694) fix(plugins): reject external public-artifact hardlinks (openclaw#118689)
Summary
Problem
OpenClaw had two inventories for the same in-repository channels: metadata beside each plugin and copied records in a central catalog. The generator loaded copied catalog entries first and ignored same-ID package metadata, so stale copies silently won. ClickClack exposed the drift.
The generated catalog also acts as a compatibility supplement for installed official plugins whose shipped
openclaw.plugin.jsonpredates newer contracts orchannelConfigs. Reading only package metadata would drop that fallback for channels such as Slack and Raft.This establishes one ownership rule:
package.jsonopenclaw.plugin.jsonscripts/lib/official-external-channel-seed.jsonscripts/lib/official-external-channel-catalog.jsonPart of #118043.
User Impact
Cold install, setup, Doctor repair, and packaged catalog consumers now follow the owning manifests. Older official plugin builds continue receiving catalog-backed configuration descriptors, and duplicate IDs fail generation instead of producing order-dependent output.
Evidence
Exact head:
6a6c836c9d3f1e449b4c121edb684015a3956c38.oxfmt --checkpassedgit diff --checkpassedThe large line count is generated catalog and bundled configuration metadata. There are no storage schema or migration changes.
Follow-up
#118106 generates the public channel index from this catalog and repairs the WeCom and ClickClack discovery surfaces. It will close the shared issue after this prerequisite lands.