Repository navigation
Description
Summary
The connect dialogs give a person a first prompt to paste into their agent: a general one on the Connected agents page and the MCP settings page, one to edit an automation (the editor's button), one for a failed run and one to create an automation. The tests check that every tool a prompt names exists and that a prompt holds a bracketed part only where it asks the person to fill something in. No prompt has been given to a model, by a test or by a person. This issue records what is and is not covered and lists options. It states no preference.
What the repository says (main at 8a0732529c)
- The prompts.
services/platform/messages/en/codingAgent.yml:23-30(prompt.general,edit,run,create), with German and French twins, built byservices/platform/app/features/coding-agent/lib/prompts.ts:15-24. - What the tests assert.
app/features/coding-agent/lib/prompts.test.ts(111 lines, three locales): every tool-shaped word is a tool ofMCP_TOOLS; the edit and run prompts name the automation and the run; the edit and create prompts hold a bracketed place and the general and run prompts none (the dialog marks every bracket as something to replace). - What tests the server's own prompts.
services/platform/lib/mcp/prompts.test.ts:20,:48: the prompts against the tool inventory and their argument shapes. - Any model-backed check: none found. No file of the repository has
evalin its name, and no test calls a model with a prompt. - What an agent is told anyway. The server's instructions reach every agent at
initialize(services/platform/lib/mcp/instructions.ts), and the guide says a client that honours Tale's marking asks before it deploys, deletes, sets a trigger or installs (docs/en/platform/automations/assistant.md:26).
What was observed
2026-10-13: the real Claude Code 2.1.296 and the real Codex 0.162.0 each signed in to a Tale stack through the consent page (#4958, #4962, #4967), and Claude Code listed the server as "✔ Connected". A model turn was not run. The throwaway Claude Code configuration used for those tests had no account login (claude -p answered "Not logged in · Please run /login"), and no model account was used for this.
What tests cannot see
- Whether a model follows the steps in the order the prompt gives and with arguments the server accepts:
save_automationwithcreate: truefor a new name, abaseVersionfor an edit,get_runwith the record for a failed run. - Whether the agent asks before it deploys, as each prompt tells it to.
- How a model treats a German or French prompt that carries English tool names.
- Whether the prompts leave an agent that is new to Tale better off than the server's instructions alone.
What was not examined
- How often a person pastes the prompt rather than typing their own.
- Which models and clients are the likely users.
- Whether the team has an evaluation approach for agent-facing text outside this repository.
Options (no preference stated)
- A manual round: one real agent session per prompt and client, with the transcript kept in the manual layer (this fits the round in test(platform): verify coding-agent sign-in end to end with Claude Code, Cursor, VS Code, Gemini CLI and claude.ai #4933).
- A scripted run with a real model against a stand-in Tale, started by hand and not in CI.
- A structural check without a model: that each prompt's steps follow an order the MCP server accepts.
- Leave it: rely on the server's instructions and on reports from people.
Questions
- What assurance do these prompts need: a one-time observation or a repeatable check?
- Who has a model account to run it, and with which clients?
Activity
yannickmonney commentedon Nov 14, 2026
Decision
Two layers check the connect-dialog prompts.
A structural check in CI, with no model. Each dialog prompt context (general, create, edit, run) gets a declared step plan in
app/features/coding-agent/lib/prompts.ts: the tools it names, in order, and the arguments each step must name. A unit test renders every context in en, de and fr and asserts:get_docscomes first; in create and edit,validate_automationandtest_automationcome beforesave_automation; the run prompt goesget_run,get_automation,run_automation, thensave_automation;deploy_automationincluded;save_automationcarriesbaseVersionwhen editing or fixing andcreate: truewhen creating;get_runcarriesinclude: ["record"];codingAgent.prompt.confirm("Ask me before you deploy anything or change a setting"), whichbuildPromptappends.Arguments are written in code form, as the server's own MCP prompts write them. One shared placeholder pattern treats a bracket that starts with a quote as a JSON array rather than a part to replace. The dialog and the tests both use it, so
["record"]is not highlighted.A manual layer. New boxes
MCP-F17toMCP-F20in the MCP manual suite: paste each dialog prompt into a real Claude Code session and a real Codex session, and judge the step order, whether the server accepted every argument, whether saves carriedbaseVersion, and whether the agent asked before deploying. The German edit prompt runs once. The boxes run again whenever a prompt's text changes. The first round runs with test(platform): verify coding-agent sign-in end to end with Claude Code, Cursor, VS Code, Gemini CLI and claude.ai #4933.A scripted real-model run (option 2) and leaving it as it is (option 4) are rejected.
Answers
Rationale
The edit and run prompts tell the agent to save with
save_automationbut never mentionbaseVersion. The server's own prompts and the tool's description both require it, so that a version saved in the meantime is not overwritten. A structural check closes this gap without a model and keeps it from coming back. It also holds the only confirmation sentence in one place that no translation can drop. Tool order and argument names are deterministic facts, so they belong in CI. Whether a model obeys them is a judgment for the manual layer against the real stack. A scripted model run would need a secret and money on every run, and its result would vary from run to run.Implementation units
baseVersionto edit and run. Extendprompts.test.ts. Acceptance: all checks pass in all three locales, the run prompt shows no highlighted part, a mutated argument or step order fails the test, andbun run checkis green.MCP-F17toMCP-F20, the seat requirement insetup.md, entries inpins.md, and anautomation.mdrow forprompts.test.ts. Acceptance:bun run lint:manualis green and nothing is renumbered.runs/r<nnnn>.mdrecord with transcript excerpts, and one issue per failed box.Related: #4976. These step plans are a natural input if #4976 later compares the dialog prompts with the MCP prompts, but this decision does not settle #4976.
Cross-issue amendments (decisions taken together with #4976, #4972, #4973):