Skip to content

Name a plugin's actions in reader language — every plugin tool appears as raw snake_case in the Tool activity rows today, the one surface #179 made speak reader language #286

Open

Description

@bencode

Problem

v1.10.0 gives a conversation the tools of a connected plugin, and the Tool activity rows — the reader's window into what the assistant is doing — fall back to the raw tool name for every one of them. toolLabel is a fixed map of the reader's own tools with a passthrough (toolLabels.get(name) ?? name, ui-packages/web/src/features/conversation/conversation-messages.tsx:7-39), and the plugin manifest protocol carries no reader-facing label a tool could use: readTool keeps only name, description (written for the model) and parameters (ui-packages/web/src/features/plugins/load-plugins.ts:69-81, docs/plugins.md — Manifest).

So a reply running on a plugin shows github_create_issue, jira_search_tickets and friends as snake_case fragments in the activity rows (conversation-messages.tsx:117-125), while every built-in action speaks reader language — "Reading the spreadsheet", "Searching the web". The switch that turned the plugin on is titled with its human name (composer/composer-toolbar.tsx:88-98); the moment it is used, the reader is back to developer identifiers. This is the exact surface #179 made speak reader language, reintroduced by the newest feature, and a plugin author has no field to fix it with.

Proposal

  • Extend the manifest protocol with an optional reader-facing label per tool, e.g. label: string // short, what the reader sees while it runs; readTool keeps it alongside the model-facing description.
  • toolLabel prefers the manifest label, then a humanized name (underscores to spaces, sentence case), never raw snake_case; built-in labels stay as they are.
  • Document the field in docs/plugins.md's Manifest block, so plugin authors know the description is for the model and the label is for the reader.

Goal

After this, a reader watching a plugin-powered reply sees "Creating a GitHub issue" (or the plugin's own wording) in the activity rows, the same reader language every built-in action already uses; no tool a conversation can run on appears as a snake_case identifier, whether shipped with the reader or by a plugin.

Verification

pnpm --filter @gamma-reader/web test src/features/conversation
grep -n "label: string" docs/plugins.md
pnpm check

(the suite gains: a plugin tool with a manifest label renders the label, one without renders a humanized name, and neither renders raw snake_case)

Refs

Activity

  1. added
    enhancement
    source:scheduled
    on Oct 28, 2026
  2. bencode commented on Oct 29, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Audit at d05b6b6 — valid, stays open.

    Evidence check — every anchor verified:

    • ui-packages/web/src/features/conversation/conversation-messages.tsx:7-39 — the fixed toolLabels map and the raw passthrough toolLabels.get(name) ?? name.
    • conversation-messages.tsx:117-125 — the Tool activity rows render toolLabel(tool.name); a plugin tool shows as github_create_issue and friends.
    • ui-packages/web/src/features/plugins/load-plugins.ts:69-81 — readTool keeps only name, description, parameters.
    • docs/plugins.md Manifest block — tools carry name/description/parameters; no reader-facing field.
    • composer/composer-toolbar.tsx:88-98 — the switch is titled with the plugin's human title (title={plugin.title}), its tools are not.

    Duplicate check (open + closed): none — #179 closed completed for the built-in tools; v1.10.0 (de9243b) introduced a new tool population after that fix, which is the regression surface here.

    Sensor: lint ✓; verify ✗ — tests pass, the grep "label: string" docs/plugins.md step fails, correctly failing while unimplemented.

    Sharpening:

    • Plugin tool names are ${plugin}_${tool} (readTool enforces the prefix), so the humanized fallback should say whether it strips the plugin prefix: github_create_issue humanizes to "Github create issue", not "Creating a GitHub issue" — the polished wording can only come from the manifest label. Specify the fallback's treatment of the prefix so plugin authors know what readers see when they omit the label.
    • Adding label is forward-compatible — readTool destructures known fields and ignores the rest, so manifests without it keep working; the protocol addition is a non-breaking one. Worth saying in docs/plugins.md when the field is documented.
    • The verification block's test step passes vacuously today (the suite runs without the new cases); once the doc gains the field, verify would pass on the doc alone. Anchor the behavior with a selective run, e.g. append -t "plugin tool" to the vitest line with the new cases named to match — vitest exits non-zero until they exist.
  3. bencode commented on Nov 1, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit at d05b6b6 (HEAD unchanged since the last review) — valid, stays open. Includes a correction to my previous comment.

    Anchors independently re-verified:

    • toolLabels fixed map + passthrough toolLabels.get(name) ?? name (conversation-messages.tsx:7-40); activity rows render toolLabel(tool.name) (:117-125).
    • readTool keeps name/description/parameters only (load-plugins.ts:69-81), and enforces the prefix — !name.startsWith(${plugin}_) rejects unprefixed names — so the prior review's humanization point is source-true: the fallback sees github_create_issue, and whether it strips the plugin prefix decides "Github create issue" vs "Create issue".
    • readTool destructures known fields and drops the rest, so a manifest already carrying label today is silently ignored — the protocol addition is non-breaking in both directions.

    Duplicate check (open + closed, re-scanned): none — #179 completed for built-ins; the plugin population post-dates it.

    Sensor: lint ✓; verify ✗ at the grep "label: string" docs/plugins.md step — correctly red. Structural weakness stands: the suite step passes vacuously today, and a doc-only edit landing label: string in docs/plugins.md would turn the whole block green with zero rendering coverage.

    Correction to my previous comment: the -t "plugin tool" anchor it recommended is unusable on this toolchain — established while repairing #285's block on this checkout: (1) vitest 5 with -t matching nothing exits 0 ("all skipped"), so it never signals not-implemented; (2) a positional after --silent crashes vitest 5 (TypeError: Unexpected value "--silent=…"). Use the title-contract pattern instead:

    grep -q "plugin tool" ui-packages/web/src/features/conversation/conversation-messages.test.ts
    pnpm --filter @gamma-reader/web test src/features/conversation
    pnpm check

    (fails on main today; passes only when the new cases land beside it('names every tool the assistant can use in reader language') — conversation-messages.test.ts:11-28 builds the real agent and asserts no built-in falls through to its raw name; plugin tools are outside its agent, which is precisely the gap this issue names)

  4. bencode commented on Nov 6, 2026

    @bencode
    OwnerAuthor

    Re-audit — posted by the scheduled issue-reviewer loop, independent of the authoring session. Third pass; main is still d05b6b6 (pulled today, "Already up to date") — anchors re-opened fresh regardless.

  5. bencode commented on Nov 9, 2026

    @bencode
    OwnerAuthor

    Re-audit (fourth pass) — posted by the scheduled issue-reviewer loop, independent of the authoring session. main is still d05b6b6 ("Already up to date"); anchors re-opened fresh — conversation-messages.tsx:7-39 (the fixed toolLabels map; the passthrough toolLabels.get(name) ?? name sits at :39, so the issue's own 7-39 citation is exact — only my third-pass :40 was off by one) and :117-125 (activity rows render toolLabel(tool.name)); load-plugins.ts:69-81 (readTool keeps name/description/parameters only, rejects names without the ${plugin}_ prefix); docs/plugins.md:29 (the prefix contract comment; grep -c "label: string" = 0). Verdict: valid, keep open (unchanged).

    Checks new this pass:

    Standing sharpenings unchanged after four passes: (1) a doc-only label: string edit would flip the block green with zero rendering coverage — the title-contract grep into conversation-messages.test.ts proposed on 11-01 closes that; (2) the humanized fallback must state whether it strips the ${plugin}_ prefix ("Github create issue" vs "Create issue").

  6. bencode commented on Nov 11, 2026

    @bencode
    OwnerAuthor

    Re-audit (fifth pass) — posted by the scheduled issue-reviewer loop, independent of the authoring session. main is still d05b6b6 ("Already up to date"); anchors re-opened fresh — conversation-messages.tsx:39 (passthrough toolLabels.get(name) ?? name; the issue's 7-39 span exact) and :117-125 (activity rows), load-plugins.ts:69-81 (readTool keeps name/description/parameters only, enforces the ${plugin}_ prefix), grep -c "label: string" docs/plugins.md = 0. Verdict: valid, keep open (unchanged).

    Checks new this pass:

    Standing sharpenings unchanged after five passes: (1) a doc-only label: string edit would flip the block green with zero rendering coverage — the title-contract grep into conversation-messages.test.ts proposed on 11-01 closes that; (2) the humanized fallback must state whether it strips the ${plugin}_ prefix ("Github create issue" vs "Create issue").

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions