Repository navigation
Description
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;readToolkeeps it alongside the model-facing description. toolLabelprefers 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
- ui-packages/web/src/features/conversation/conversation-messages.tsx:7-39,117-125 — the fixed label map with raw-name passthrough, and the activity rows it feeds
- ui-packages/web/src/features/plugins/load-plugins.ts:69-81 —
readToolkeeps name/description/parameters only - docs/plugins.md — the Manifest protocol, no reader-facing tool field; description "reaches the model as they are"
- ui-packages/web/src/features/conversation/composer/composer-toolbar.tsx:88-98 — the switch carries the plugin's human title, its tools do not
- Name every assistant action in reader language — today edit_active_source, sheet_read and twelve other tools appear raw in the activity rows #179 — the principle this reintroduces a violation of; its built-in list is fixed, plugin tools are the new population
- Say when a plugin this conversation uses cannot be reached — a failed manifest fetch empties every switch in silence (console.error only), the next reply runs without the tools, and a dead app looks the same as a deliberate disconnect #281, Put the plugin route on the privacy map — every other exit from the browser has a tutorial entry, the v1.10.0 plugin tools have none #284 — the v1.10.0 plugin family: a dead app, and the privacy map; this is the naming member
Activity
bencode commentedon Oct 29, 2026
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 fixedtoolLabelsmap and the raw passthroughtoolLabels.get(name) ?? name.conversation-messages.tsx:117-125— the Tool activity rows rendertoolLabel(tool.name); a plugin tool shows asgithub_create_issueand friends.ui-packages/web/src/features/plugins/load-plugins.ts:69-81—readToolkeeps onlyname,description,parameters.docs/plugins.mdManifest 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.mdstep fails, correctly failing while unimplemented.Sharpening:
${plugin}_${tool}(readToolenforces the prefix), so the humanized fallback should say whether it strips the plugin prefix:github_create_issuehumanizes 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.labelis forward-compatible —readTooldestructures known fields and ignores the rest, so manifests without it keep working; the protocol addition is a non-breaking one. Worth saying indocs/plugins.mdwhen the field is documented.-t "plugin tool"to the vitest line with the new cases named to match — vitest exits non-zero until they exist.bencode commentedon Nov 1, 2026
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:
toolLabelsfixed map + passthroughtoolLabels.get(name) ?? name(conversation-messages.tsx:7-40); activity rows rendertoolLabel(tool.name)(:117-125).readToolkeepsname/description/parametersonly (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 seesgithub_create_issue, and whether it strips the plugin prefix decides "Github create issue" vs "Create issue".readTooldestructures known fields and drops the rest, so a manifest already carryinglabeltoday 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.mdstep — correctly red. Structural weakness stands: the suite step passes vacuously today, and a doc-only edit landinglabel: stringindocs/plugins.mdwould 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-tmatching nothing exits 0 ("all skipped"), so it never signals not-implemented; (2) a positional after--silentcrashes vitest 5 (TypeError: Unexpected value "--silent=…"). Use the title-contract pattern instead:(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-28builds 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)bencode commentedon Nov 6, 2026
Re-audit — posted by the scheduled issue-reviewer loop, independent of the authoring session. Third pass;
mainis stilld05b6b6(pulled today, "Already up to date") — anchors re-opened fresh regardless.conversation-messages.tsx:7-40(the fixedtoolLabelsmap, passthroughtoolLabels.get(name) ?? nameat:40) and:117-125(activity rows rendertoolLabel(tool.name));load-plugins.ts:69-81(readToolkeeps name/description/parameters only, and rejects names not starting`${plugin}_`);docs/plugins.md:18-30(Manifest carriesname/title/toolname+description— the prefix contract the prior review's humanization point rests on is documented at:29; no reader-facing tool field exists);composer-toolbar.tsx:88-98verified at this same HEAD in the 11-06 pass (title={plugin.title}at:95).grep "label: string" docs/plugins.md, re-run by hand: absent. Correctly red.label: stringindocs/plugins.mdwould turn the whole block green with zero rendering coverage — the title-contract pattern (grep -q "plugin tool" conversation-messages.test.tsbefore the suite) proposed on 11-01 fixes that; (2) the humanized fallback must state whether it strips the${plugin}_prefix ("Github create issue" vs "Create issue"), since the polished wording can only come from the manifest label.bencode commentedon Nov 9, 2026
Re-audit (fourth pass) — posted by the scheduled issue-reviewer loop, independent of the authoring session.
mainis stilld05b6b6("Already up to date"); anchors re-opened fresh —conversation-messages.tsx:7-39(the fixedtoolLabelsmap; the passthroughtoolLabels.get(name) ?? namesits at:39, so the issue's own7-39citation is exact — only my third-pass:40was off by one) and:117-125(activity rows rendertoolLabel(tool.name));load-plugins.ts:69-81(readToolkeeps 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:
load-plugins.tsnordocs/plugins.md— nothing in flight.grep "label: string" docs/plugins.mddoc contract, re-run by hand: absent.Standing sharpenings unchanged after four passes: (1) a doc-only
label: stringedit would flip the block green with zero rendering coverage — the title-contract grep intoconversation-messages.test.tsproposed on 11-01 closes that; (2) the humanized fallback must state whether it strips the${plugin}_prefix ("Github create issue" vs "Create issue").bencode commentedon Nov 11, 2026
Re-audit (fifth pass) — posted by the scheduled issue-reviewer loop, independent of the authoring session.
mainis stilld05b6b6("Already up to date"); anchors re-opened fresh —conversation-messages.tsx:39(passthroughtoolLabels.get(name) ?? name; the issue's7-39span exact) and:117-125(activity rows),load-plugins.ts:69-81(readToolkeeps 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:
load-plugins.tsnordocs/plugins.md. No implementation in flight.Standing sharpenings unchanged after five passes: (1) a doc-only
label: stringedit would flip the block green with zero rendering coverage — the title-contract grep intoconversation-messages.test.tsproposed on 11-01 closes that; (2) the humanized fallback must state whether it strips the${plugin}_prefix ("Github create issue" vs "Create issue").