Repository navigation
fix(ui): resolve channel icons by owning plugin - #144177
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 9:55 PM ET / September 11, 2026, 01:55 UTC (Revision 5). ClawSweeper reviewWhat this changesThe Channels interface uses manifest-declared plugin ownership to load and share packaged icons while preserving channel names and descriptions. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main and the latest release still miss icons for distinct channel IDs. No blocking defect was found, and the retained browser proof demonstrates the visible improvement. Priority: P3 Review scores
Verification
How this fits togetherThe Gateway exposes installed plugin metadata to the Control UI. The Channels page combines that metadata with channel status to display artwork through the existing authenticated icon endpoint. flowchart LR
A[Installed plugin manifests] --> B[Gateway plugin catalog]
C[Channel status] --> D[Channel icon owner lookup]
B --> D
D --> E[Authenticated icon endpoint]
E --> F[Shared plugin image]
F --> G[Gallery, details, and setup]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +39, Tests +207, Other +17. Total +263 across 9 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep manifest metadata authoritative for artwork ownership and share plugin images without changing channel identity, configuration, or authorization. Do we have a high-confidence way to reproduce the issue? Yes: current-main source excludes icons when channel and plugin IDs differ, and retained before/after browser captures demonstrate the symptom and improvement. This review did not execute the application. Is this the best way to solve the issue? Yes: projecting existing manifest ownership and reusing the authenticated icon loader repairs the association at its existing owners without introducing another configuration or rendering path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d331583bbf0f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Reuse the plugin-owned image when another channel arrives later. Preserve exact-ID precedence and cover pending-load cancellation and optional native catalog decoding.
Keep the real cancellation reason assertion while rejecting the fetch double with an explicit DOMException, as required by type-aware lint.
|
Thanks @emoriwan! Proof: A normally installed plugin with distinct plugin/channel IDs now shows its packaged icon in the real Gateway-served Channels gallery, details, and setup wizard. Both channel names and descriptions stay intact.
The retained browser controls cover reload, authenticated loading, fresh unauthorized rejection, invalid/missing fallback, URL cleanup, and normal plugin removal after restart. Before/after captures are in the PR body. Independent source review, browser acceptance, and the exact-head local review passed. Validation: 161 distinct focused tests passed, plus the two old/current Swift decoder cases on macOS. Exact-head CI and the iOS scan passed. No failing-check exception was used. Landed as |
Closes openclaw#144152 ## What Problem This Solves Channels showed letter tiles when a channel ID differed from its plugin ID, even when that plugin supplied a valid icon. ## Why This Change Was Made The catalog exposes existing manifest ownership, and gallery, details, and setup resolve artwork through the owning plugin. Channel names and descriptions stay unchanged. Each plugin owns one image URL. Channels that appear later reuse it, and page cleanup releases it once. Exact plugin/channel-ID matches retain priority. The existing authenticated package-icon route, trust rules, and configuration authority remain in place. The optional catalog field preserves older payload decoding. ## User Impact Channels can use their plugin’s packaged artwork while keeping their own stable identity, name, and description. Multiple channels share one loaded plugin image. ## Evidence ### Real browser proof An isolated Gateway served its matching Control UI with a normally installed external plugin, `agent-system`, and distinct channels `agent-system-github` and `agent-system-chat`. - Pinned main `a93f6823bb07c1e005bde24b222b233d72ef5c05`: both channels showed fallback tiles; no owning-plugin icon request occurred. - Candidate: one authenticated `GET /__openclaw__/plugin-icon/agent-system` returned PNG with HTTP 200. Both channels shared the decoded 256×256 image. Gallery, details, setup, and reload showed the packaged icon with the original text. - Navigation released each image URL once. Invalid and missing icons showed readable fallbacks. Fresh unauthenticated requests returned 401. Normal plugin removal followed by Gateway restart removed both channels and the plugin. - A source-blind validator independently drove the candidate and removal flows, inspected their screenshots, and separately judged the retained fallback captures. | Surface | Before | After | | --- | --- | --- | | Gallery |  |  | | Details |  |  | | Wizard |  |  | [Artifact manifest with file hashes](https://91b59577e757131d68d55a471fe32aca.r2.cloudflarestorage.com/openclaw-crabbox-artifacts/crabbox-artifacts/v2/org/b3BlbmNsYXc/owner/Z2l0aHViOjIyMDMxMTE0/pr-144177/public-media/20260911-013708-191645532/artifact-manifest.json?X-Amz-Expires=604800&X-Amz-Date=20260911T013709Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=a677a1e59413a4e54bcc2da5fec6164a%2F20260911%2Fauto%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=0455b1ca86ec7edd9f5051d69bff11dd4209be45ec56eb04e1b069f4e8e0a031). These brokered image links expire September 18, 2026; the original captures and full private proof remain retained. ### Validation - 161 distinct focused catalog, HTTP icon, page, view, and loader tests pass across retained runs. - A later-sibling regression fails on the original duplicate-fetch behavior and passes with one shared URL and one release. Exact-ID priority is tested in both catalog orders; pending disconnect and timeout controls pass. - Changed TypeScript lint, canonical protocol generation, Swift/Kotlin generated-output checks, protocol compatibility guard, source ratchets, UI copy checks, normal commit hook, and `git diff --check` pass. - Hosted CI owns full type checking and execution of the added Swift JSONDecoder test for old and current catalog payloads. Those results remain required before landing. No channel message delivery is claimed by this icon proof. The original contributor's implementation and commit ancestry are preserved. Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #144152
What Problem This Solves
Channels showed letter tiles when a channel ID differed from its plugin ID, even when that plugin supplied a valid icon.
Why This Change Was Made
The catalog exposes existing manifest ownership, and gallery, details, and setup resolve artwork through the owning plugin. Channel names and descriptions stay unchanged.
Each plugin owns one image URL. Channels that appear later reuse it, and page cleanup releases it once. Exact plugin/channel-ID matches retain priority. The existing authenticated package-icon route, trust rules, and configuration authority remain in place. The optional catalog field preserves older payload decoding.
User Impact
Channels can use their plugin’s packaged artwork while keeping their own stable identity, name, and description. Multiple channels share one loaded plugin image.
Evidence
Real browser proof
An isolated Gateway served its matching Control UI with a normally installed external plugin,
agent-system, and distinct channelsagent-system-githubandagent-system-chat.acbe754b931608952968d29d9548b5f2589f7d3b: both channels showed fallback tiles; no owning-plugin icon request occurred.GET /__openclaw__/plugin-icon/agent-systemreturned PNG with HTTP 200. Both channels shared the decoded 256×256 image. Gallery, details, setup, and reload showed the packaged icon with the original text.Artifact manifest with file hashes. These brokered image links expire September 18, 2026; the original captures and full private proof remain retained.
Validation
git diff --checkpass.No channel message delivery is claimed by this icon proof. The original contributor's implementation and commit ancestry are preserved.