Repository navigation
Conversation
Messages sent from another thread already record senderThreadId, and the web and mobile timelines use it, but t3_thread_read items left it out, so the receiving agent could not tell which thread sent a message. Timeline items now carry an optional senderThreadId, included only when the message has one.
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused, backward-compatible MCP response fix that exposes already-recorded sender thread metadata and omits it for ordinary messages. It adds targeted coverage without changing defaults, workflows, persistence, or deployment behavior. You can add or adjust custom eligibility rules. Learn more. |
macroscopeapp
Bot
dismissed
their stale review
October 11, 2026 11:13
Dismissing prior approval to re-evaluate 4f43047
The new readThread sender test now provides ServerSettings.layerTest(), which OrchestratorMcpService requires since main added the server settings dependency.
macroscopeapp
Bot
dismissed
their stale review
October 11, 2026 11:17
Dismissing prior approval to re-evaluate d73854e
AdEx-Partners-DE
added a commit
to AdEx-Partners-DE/t3code
that referenced
this pull request
Oct 11, 2026
This branch has not been deployed
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.
Addresses the
t3_thread_readpart of #17517; the server-authored line in the delivered turn is left out (see below).Problem
When one thread sends a message to another with
t3_thread_send, the server records the sender on the message assenderThreadId, and the web and mobile timelines use it.t3_thread_readleft the field out of its timeline items, so the agent that received the message could not tell which thread sent it. It only sawcreatedBy: "agent"andcreationSource: "mcp". @pawelwitek34's reproduction shows this clearly. A parent with two delegated children could only work out the sender by reading each child's timeline and matchingmessageIds.Change
OrchestratorMcpThreadTimelineItem(packages/contracts/src/orchestratorMcp.ts) gets an optionalsenderThreadId.timelineIteminapps/server/src/mcp/OrchestratorMcpService.tscopies it from the stored message. The field appears only when the message has a sender, so items without one add no response bytes; the advertised output schema gains the optional field.The issue also suggests adding a server-written line to the delivered turn so the agent would not need a second call. That is out of scope here. It changes the prompt text that every provider receives and needs its own design for how the line is worded and placed. The field on
t3_thread_readgives agents a reliable sender id now.Verification
OrchestratorMcpService.activity.test.tson basesenderThreadIdisundefined)senderThreadIdand the user message has no such fieldvp test run src/mcp(apps/server)vp run typecheck(apps/server, packages/contracts)Server/contract change with no UI, so no screenshots.
Not checked: a live
delegate_task+t3_thread_sendround trip against real providers.Implemented with Claude Opus 5.5, verified with GPT-6 Astra, coordinated by Claude Fable 5.1 in Claude Code.