Repository navigation
feat: give every plugin a compact chat activity icon - #147333
Conversation
Separate package-owned activity SVGs from plugin identity artwork. Ship 154 defaults and seven exact tool overrides, preserving Echo and the progress claw. Include authenticated bounded delivery, safe mask rendering, packaging, and authoring guidance.
|
🦞👀 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: blocked before merge. Reviewed September 13, 2026, 4:19 PM ET / 20:19 UTC (Revision 3). ClawSweeper reviewWhat this changesAdds plugin-owned monochrome chat activity icons, optional tool-specific artwork, authenticated delivery, packaging support, and authoring documentation while preserving plugin branding elsewhere. Merge readiness⛔ Blocked before merge - 2 items remain Keep open as useful, review-ready work. Current main does not provide the general plugin-owned activity artwork contract, and the new Gateway-to-browser evidence resolves the previous proof blocker. No actionable introduced defects found. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI combines installed plugin metadata with effective tool ownership to display icons beside chat tool activity. The Gateway serves package artwork, and the browser validates and rasterizes it into theme-colored masks. flowchart LR
A[Plugin artwork] --> B[Prepared plugin metadata]
B --> C[Effective tool ownership]
C --> D[Default or tool-specific icon]
D --> E[Authenticated asset delivery]
E --> F[Validated browser rasterization]
F --> G[Theme-colored chat icon]
D --> H[Fallback glyph when unavailable]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep compact artwork owned by plugin packages, with one metadata-driven rendering path, bounded asset handling, and graceful fallback for older packages. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this extends presentation capability, and the supplied before/after captures plus real Gateway observations demonstrate the intended change. Is this the best way to solve the issue? Yes. Package-owned artwork replaces the central special-case mapping while reusing existing metadata, authorization, image validation, and lifecycle owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2e2061030888. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
What Problem This Solves
Compact chat tool calls currently reuse plugin branding or centrally maintained tool glyphs, so newly installed plugins can show a busy app logo or a generic fallback at 16 px.
User Impact
Every shipped plugin now includes a monochrome activity glyph. Tool calls and collapsed results use that shape in the current theme color; catalogs, settings, channel setup, and installation cards keep their existing branding.
Why This Change Was Made
Plugins own their compact artwork through optional
assets/activity.svgand exact tool overrides inassets/activity/<tool-id>.svg. The Gateway discovers these files with existing prepared metadata and serves them through an authenticated, bounded resource route. The UI validates and rasterizes SVGs before using their alpha channel as a mask; missing or invalid artwork keeps the existing fallback.Adds 154 defaults and seven tool overrides, moves the approved Echo/action shapes into their owning packages, and preserves Lobster's real progress claw. Bundled and standalone packaging carry the assets and embedded third-party notices. No configuration keys, persistent data, or database schemas change. The new protocol fields are optional; older plugin packages without activity assets keep the fallback, and existing identity artwork remains valid. No migration is required.
Evidence
Focused Gateway, metadata, packaging, and UI tests passed, including all 161 SVGs through the Chromium decoder, 199 affected plugin tests after the selector refactor, and 19 browser/controller tests after test-only lint cleanup. Independent review found no actionable issues. Full build and UI performance budgets passed. All selected local check lanes completed; one unrelated native fixture hit a 20-second timeout in the broad run and passed unchanged in 3.3 seconds on focused replay. CI is green on the final head after a targeted retry of one UI shard: its four unchanged terminal/lifecycle timing cases also passed in a separate 43-test replay.
Real Gateway → browser proof: an isolated Gateway discovered two installed fixture plugins, returned their real tool ownership, and served the default and exact-tool SVGs through the authenticated HTTP route. Unauthenticated access returned 401; absent artwork returned 404. The built UI fetched real metadata once, loaded both icons, and rasterized them into transparent PNG masks alongside the neutral fallback. Only the transcript tool messages were synthetic, avoiding a model invocation; discovery, authorization, HTTP delivery, and rendering were unmodified. No operator Gateway or existing state was changed.
This proof ran on
9605d393ac8e; the final commit changes only two test files, so production code and assets are identical.Before
After
Dark mode
Plugin branding stays unchanged
Real Gateway proof, light and dark
Sanitized discovery, HTTP and browser observations
{ "boundary": "Real isolated Gateway, real plugin discovery, effective ownership, token authorization, HTTP assets, browser rasterizer and UI. Only chat transcript tool messages are synthetic browser-side fixtures; no model is invoked.", "buildHead": "9605d393ac8ec6f52c3f5d1ecdd124efb225a6ef", "configCompatibility": "No existing user config or data changed; only new isolated fixture config/state.", "metadata": [ { "id": "activity-no-glyph", "installed": true, "enabled": true, "state": "enabled" }, { "id": "activity-proof", "installed": true, "enabled": true, "state": "enabled", "hasIcon": true, "hasActivityIcon": true, "activityIconTools": [ "proof_store" ] } ], "http": [ { "case": "unauthenticated", "status": 401, "contentType": "application/json; charset=utf-8" }, { "case": "default", "status": 200, "contentType": "image/svg+xml", "sha256": "0eab619dbd7458424b47a7d0041f9d9c126f694d279a158da6e0d69a39a8b0e0" }, { "case": "override", "status": 200, "contentType": "image/svg+xml", "sha256": "015fb54474876e8de98739f262721ea768a64987d806dc77f11b7abede202996" }, { "case": "no-glyph", "status": 404, "contentType": "text/plain; charset=utf-8" } ], "browser": { "effectiveOwnership": [ { "id": "proof_lookup", "pluginId": "activity-proof", "source": "plugin" }, { "id": "proof_optional", "pluginId": "activity-no-glyph", "source": "plugin" }, { "id": "proof_store", "pluginId": "activity-proof", "source": "plugin" } ], "iconResponses": [ { "route": "activity-proof", "tool": null, "status": 200 }, { "route": "activity-proof", "tool": "proof_store", "status": 200 } ], "masks": [ { "mime": "image/png", "width": 256, "height": 256, "hidden": true, "visibleAlphaPixels": 11524, "transparentPixels": 54012 }, { "mime": "image/png", "width": 256, "height": 256, "hidden": true, "visibleAlphaPixels": 16719, "transparentPixels": 48817 } ], "fallbackCount": 1, "realMetadataRpcCounts": { "pluginsList": 1, "toolsEffective": 1 } } }