Skip to content

feat: give every plugin a compact chat activity icon - #147333

Merged
steipete merged 4 commits into
mainfrom
codex/plugin-activity-icons
Sep 13, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/plugin-activity-icons

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

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.svg and exact tool overrides in assets/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

Before

After

After

Dark mode

Dark mode

Plugin branding stays unchanged

Plugin branding stays unchanged

Real Gateway proof, light and dark

Real Gateway: default, override and fallback

Real Gateway: dark theme

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
    }
  }
}

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.
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 13, 2026 19:40
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: signal Channel integration: signal channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser app: web-ui App: web-ui gateway Gateway runtime extensions: copilot-proxy Extension: copilot-proxy extensions: diagnostics-otel Extension: diagnostics-otel extensions: llm-task Extension: llm-task extensions: lobster Extension: lobster extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 4:19 PM ET / 20:19 UTC (Revision 3).

ClawSweeper review

What this changes

Adds 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
Reviewed head: fbe2ff915fc4be0e70b21720105f38ca7df5d063

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent implementation with meaningful boundary coverage and real runtime evidence that satisfies the previous proof request.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The recorded isolated Gateway run exercises installed artwork discovery, effective ownership, authenticated HTTP delivery, and the built browser rasterizer, showing default and override PNG masks plus missing-artwork fallback. Inspected light/dark screenshots support those observations, and the final commit changes only tests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The recorded isolated Gateway run exercises installed artwork discovery, effective ownership, authenticated HTTP delivery, and the built browser rasterizer, showing default and override PNG masks plus missing-artwork fallback. Inspected light/dark screenshots support those observations, and the final commit changes only tests.
Evidence reviewed 9 items Pinned introduction and review continuity: The local introduced file list matches merge-base c8b3787 through the reviewed head. GitHub's pinned comparison confirms that the final commit changes only two test files, leaving production code and assets identical to the proof revision.
Previous proof request addressed: The captured PR body records a real isolated Gateway discovering installed fixtures, returning effective ownership, rejecting unauthenticated access with 401, serving default and override SVGs with 200, and returning 404 for missing artwork. Browser observations record two transparent PNG masks, one fallback, and one request each for plugin and tool metadata. Only transcript messages were synthetic. This directly addresses the previous review's requested discovery-to-rendering connection.
Inspected visual evidence: Inspected all four prepared screenshots: before, after, dark theme, and retained settings branding. Also inspected the two additional real-Gateway screenshots linked in the captured body; they visibly show distinct default, per-tool override, and missing-artwork fallback rows in both themes. Runtime sufficiency comes from these images together with the recorded HTTP and browser observations.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Protocol additions 2 optional catalog fields; 0 configuration keys or migrations The new presentation contract leaves existing plugin configuration and stored data unchanged.
Code growth Production/tooling net +193 lines; tests/support net +581 lines, excluding artwork and docs Production growth supports discovery, delivery, packaging, and selection while reusing the existing rasterizer and request lifecycle.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This improves compact chat presentation without changing tool execution or blocking existing workflows.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The recorded isolated Gateway run exercises installed artwork discovery, effective ownership, authenticated HTTP delivery, and the built browser rasterizer, showing default and override PNG masks plus missing-artwork fallback. Inspected light/dark screenshots support those observations, and the final commit changes only tests.
  • 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 (live_output): The recorded isolated Gateway run exercises installed artwork discovery, effective ownership, authenticated HTTP delivery, and the built browser rasterizer, showing default and override PNG masks plus missing-artwork fallback. Inspected light/dark screenshots support those observations, and the final commit changes only tests.

Label justifications:

  • P3: This improves compact chat presentation without changing tool execution or blocking existing workflows.
  • 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 (live_output): The recorded isolated Gateway run exercises installed artwork discovery, effective ownership, authenticated HTTP delivery, and the built browser rasterizer, showing default and override PNG masks plus missing-artwork fallback. Inspected light/dark screenshots support those observations, and the final commit changes only tests.
  • proof: sufficient: Contributor real behavior proof is sufficient. The recorded isolated Gateway run exercises installed artwork discovery, effective ownership, authenticated HTTP delivery, and the built browser rasterizer, showing default and override PNG masks plus missing-artwork fallback. Inspected light/dark screenshots support those observations, and the final commit changes only tests.

Evidence

What I checked:

  • Pinned introduction and review continuity: The local introduced file list matches merge-base c8b3787 through the reviewed head. GitHub's pinned comparison confirms that the final commit changes only two test files, leaving production code and assets identical to the proof revision. (ui/src/pages/plugins/activity-icon-loader.browser.test.ts:1, fbe2ff915fc4)
  • Previous proof request addressed: The captured PR body records a real isolated Gateway discovering installed fixtures, returning effective ownership, rejecting unauthenticated access with 401, serving default and override SVGs with 200, and returning 404 for missing artwork. Browser observations record two transparent PNG masks, one fallback, and one request each for plugin and tool metadata. Only transcript messages were synthetic. This directly addresses the previous review's requested discovery-to-rendering connection. (9605d393ac8e)
  • Inspected visual evidence: Inspected all four prepared screenshots: before, after, dark theme, and retained settings branding. Also inspected the two additional real-Gateway screenshots linked in the captured body; they visibly show distinct default, per-tool override, and missing-artwork fallback rows in both themes. Runtime sufficiency comes from these images together with the recorded HTTP and browser observations. (9605d393ac8e)
  • Authenticated, bounded asset delivery: The activity route reuses Control UI read authorization before metadata lookup, validates exact tool selectors, reads through the package-root boundary with a 32 KiB limit and hardlink rejection, and retains shared sandboxed image-response headers. It introduces no remote artwork fallback or new credential authority. (src/gateway/plugin-icon-http.ts:313, fbe2ff915fc4)
  • Rendering and lifecycle ownership: The existing icon controller retains connection, session, and request ownership checks. Activity selection consumes effective plugin ownership, and the existing browser SVG validator rasterizes accepted geometry before the chat renderer uses a PNG mask; package markup is not inserted into the chat DOM. (ui/src/pages/chat/chat-tool-icon-controller.ts:159, fbe2ff915fc4)
  • Compatibility and implementation boundary: The documented contract keeps activity assets optional, preserves identity artwork, specifies fallback behavior, and uses restart or explicit reload for metadata refresh. Both package builders include the new artwork paths. This is OpenClaw presentation metadata; adding Codex-branded artwork does not depend on the Codex runtime or protocol. Public docs: docs/plugins/manifest/surfaces.md. (docs/plugins/manifest/surfaces.md:101, fbe2ff915fc4)

Likely related people:

  • Patrick Erichsen: Raw commit bda26b8 adds ui/src/pages/chat/chat-tool-icon-controller.ts:118 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: bda26b810554; files: ui/src/pages/chat/chat-tool-icon-controller.ts)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (2 earlier review cycles)
  • reviewed 2026-09-13T19:46:51.350Z sha 7174dfb :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-13T20:06:42.541Z sha 9605d39 :: needs real behavior proof before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: a2a channel: buzz channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: irc channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: qa-channel Channel integration: qa-channel channel: raft Channel integration: Raft channel: reef Channel integration: reef channel: signal Channel integration: signal channel: slack Channel integration: slack channel: sms Channel integration: sms channel: synology-chat channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: twitch Channel integration: twitch channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser docs Improvements or additions to documentation extensions: acpx extensions: active-memory extensions: admin-http-rpc extensions: anthropic extensions: arcee extensions: baseten Extension: baseten extensions: byteplus extensions: cerebras extensions: clawrouter Extension: clawrouter extensions: clickclack extensions: cloudflare-ai-gateway extensions: codex extensions: cohere extensions: comfy extensions: copilot-proxy Extension: copilot-proxy extensions: crabbox extensions: deepgram extensions: deepinfra extensions: deepseek extensions: device-pair extensions: diagnostics-otel Extension: diagnostics-otel extensions: diagnostics-prometheus extensions: document-extract extensions: duckduckgo extensions: featherless extensions: fish-audio Extension: fish-audio extensions: gmi extensions: huggingface extensions: inworld Extension: inworld extensions: kilocode extensions: litellm extensions: llama-cpp extensions: llm-task Extension: llm-task extensions: lmstudio extensions: lobster Extension: lobster extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb extensions: memory-wiki extensions: oc-path extensions: onepassword 1Password plugin extensions: openai extensions: policy extensions: qa-lab extensions: stepfun extensions: tencent extensions: tokenjuice Changes to the bundled tokenjuice extension extensions: vault Extension: vault extensions: web-readability extensions: webhooks gateway Gateway runtime plugin: azure-speech Azure Speech plugin plugin: beam Beam session sharing plugin plugin: bonjour Plugin integration: bonjour plugin: cua-computer plugin: file-transfer plugin: geolocation Geolocation plugin (IP to coarse city) plugin: google-meet plugin: imap plugin: linux-node plugin: logbook Logbook automatic work journal plugin plugin: migrate-claude plugin: migrate-hermes plugin: mxc plugin: pixverse plugin: session-share plugin: team-reports plugin: teams-meetings Teams Meetings plugin plugin: visitor-access plugin: workboard plugin: zoom Zoom plugin scripts Repository scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant