You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9702895
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): Claude can show the user mid-turn text in full
Claude 5.1+ returns text written before a tool call as a progress-update
thinking block, and the API returns only a summary of it. A draft written
before a question card reached the user as a one-line paraphrase (#32877).
Following Anthropic's guidance, T3's MCP server gains `send_to_user`, loaded
up front in Claude Code, and Claude's appended instructions say when to use it.
Web and mobile render its message as the agent's own text, kept visible
through the turn fold.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
"Show the user a Markdown message in this thread, exactly as written, before your turn ends. Use it for content the user must read in full mid-turn, such as a draft, a code block, or what a question you are about to ask refers to. Don't repeat it in your reply.",
To wait for a background command or Monitor you started (tests, a build), call \`t3_background_wait\` with its task ID before you end your turn. Do not mark work you leave running, or PRs. T3 MCP tools are deferred: load one with ToolSearch before you call it.
1955
1955
`;
1956
1956
1957
+
// Claude 5.1+ returns text written before a tool call as a progress update, which the API
1958
+
// returns only as a summary.
1959
+
const CLAUDE_SEND_TO_USER_INSTRUCTIONS = `
1960
+
### Text the user must read mid-turn
1961
+
1962
+
Text you write before a tool call may reach the user only as a one-line summary. When the user must read something in full before your turn ends, such as a draft, a code block, or what a question you're about to ask refers to, send it with \`send_to_user\`. Put everything else in your final reply.
1963
+
`;
1964
+
1957
1965
// Native subagents start from their task, not this session's system prompt.
0 commit comments