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
Mark the user's own messages for the model, and keep a boundary when T3 joins a delivery and a user message in one turn #41544
Agents that act on the user's instructions, or that record the user's decisions word for word, need to know which words in a turn the user typed. Today the model cannot tell reliably.
Since 0.1.11 (#39306), T3 puts this line before some messages:
[T3 Code: this message came through T3 Code's tools, not from the user typing in this chat.]
That is a negative mark: text without the line reads as the user's. Several kinds of text the user did not type still reach the model without it:
A delivery and a user message joined into one turn. A delegated child finished, and its completion started a run on the parent thread. The user sent a message about 3 seconds later, and it landed in the same run. The model received one block: T3's Delegated task … [completed]: header, the child's result, then the user's text, with no boundary between the child's text and the user's. T3 had stored the user's part correctly as its own message (createdBy: "user", creationSource: "mobile"), but none of that reached the prompt.
Text T3 itself writes. The usage-limit resume prompt (Continue where you left off.) and the provider-switch handoff (Context handoff ( … User message:) arrive as user turns with no mark. A handoff turn holds assistant text from the earlier history, followed by the user's own words.
Every new path that forgets the negative line reads as the user, so the class keeps reopening.
Proposal
Mark authorship positively, from what T3 already stores, so the model never has to infer it:
For each message in a turn, pass its createdBy and creationSource (and message id) to the provider as structure: metadata where the provider API takes it, or else a short first line that only T3 writes, such as [T3 Code: typed by the user · mobile · <message id>].
When T3 joins several messages into one prompt (a delivery plus a queued user message, or a handoff plus the user's message), keep each part's boundary and its author.
Expose the same per-message author to hooks (for example in the UserPromptSubmit payload, or an environment variable beside T3CODE_THREAD_ID), so a local hook can rely on it.
The cost is one short line per message, about 15 to 20 tokens.
Related
#39306 (the negative line), #39711 (signed-in clients labelled "not from the user"), #36853 (outside MCP clients shown as "Agent"), #31978 (sender device in the UI).
Version: server 0.1.11-nightly.20261117.4825 · Linux (WSL2)
Filed by Claude Opus 5.5 in T3 Code, at the account owner's request.
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.
Activity
juliusmarminge commentedon Nov 23, 2026
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.