Repository navigation
Conversation
#52 added workflow_info, workflow and delete_workflow to the bots' own tools without activity labels, so the activity feed showed the humanized name in every language. Add their keys in English and Brazilian Portuguese, the pack that must keep every English key.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
The three workflow tools a bot can call,
workflow_info,workflowanddelete_workflow, get activity labels like every other tool of the app's own:server/activity.ts: three rows inTEAM_ACTION_KEYS.src/locales/en.json: the three keys, worded exactly as the labels the feed already showed ("Workflow info", "Workflow", "Delete workflow").src/locales/pt-br.json: the same three keys in Brazilian Portuguese, following the pack's wording for Workflows ("Fluxos de trabalho") and for deleting ("Excluir …").Why
#52 (85f6087, from 4da2845, 2026-11-23) added the workflow tools to the bots' tool catalog (
server/drivers/agents-workflow-tools.ts) but no keys inTEAM_ACTION_KEYS. SodescribedToolreturns them without alabelKey. The activity feed then shows the English humanized name in every language (src/lib/activity.ts:109translates only rows with anactivity.tool.key).server/activity.test.tschecks that every tool in the catalog goldens has such a key, and it has failed onmainsince #52. The first failing run is dc51643 (2026-11-28): from 2026-11-22 to 2026-11-28 preflight failed and vitest did not run.pt-bris in this PR because that pack is held to every English key (src/lib/i18n.test.ts:143,activePackComplete). Adding the English keys alone would have added three more gaps to it.src/locales/source-hashes.jsonis not changed. A translated key without a recorded hash counts as current until a release records one (scripts/generate-locale.mjs,validateTranslationHashes).--record-hasheswould also have recorded 66 unrelated keys.How it was verified
macOS, Node 24.22.1 (the CI version). Before is
main8c67e9d. The script calls the realdescribedTooland readspt-br.json.Before shows no key for the three tools; after shows each tool's key, its English label unchanged, and the Portuguese string.
main8c67e9d)describedTool("mcp__agents__workflow_info")label "Workflow info",labelKey nulllabel "Workflow info",labelKey "activity.tool.team.workflowInfo", pt-br"Informações do fluxo de trabalho"describedTool("mcp__agents__workflow")label "Workflow",labelKey nulllabelKey "activity.tool.team.workflow", pt-br"Fluxo de trabalho"describedTool("mcp__agents__delete_workflow")label "Delete workflow",labelKey nulllabelKey "activity.tool.team.deleteWorkflow", pt-br"Excluir fluxo de trabalho"pnpm exec vitest run server/activity.test.tsTests 1 failed | 30 passed (31)Tests 31 passed (31)pt-br.jsonnode scripts/generate-locale.mjs --checklocale catalogs valid (16 languages, 11394 English strings)pnpm exec tsc -p tsconfig.server.json --noEmit,oxlint server/activity.tsserver/activity.test.ts,src/lib/activity.test.ts,src/lib/i18n.test.tsandsrc/locales/together:Test Files 1 failed | 18 passed (19). The failure isactivePackComplete, failing onmainalready because of the 18 keys above. 17 of them are added by the stale-test-expectations PR. The 18th,task.helperGroup, belongs to the "Opened by bots" sidebar group, which needs a product decision.Not covered
Checklist