Skip to content

fix(chat): native subagent prompts render as prompts, not agent rows - #75

Merged
eyeveil merged 1 commit into
mainfrom
fix/native-subagent-prompts
Nov 10, 2026
Merged

eyeveil merged 1 commit into
mainfrom
fix/native-subagent-prompts

Conversation

@eyeveil

@eyeveil eyeveil commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Why

In a provider-native subagent thread, each prompt from the parent agent rendered as a folded "Agent" work row on web and mobile, and the subagent's first answer disappeared into the next "Worked for" fold. The fork's isAgentDeliveredMessage (from #38) treated creationSource: "provider" and any senderThreadId as an agent delivery, and provider adapters write exactly that for native subagent prompts.

What changed

  • isAgentDeliveredMessage in packages/contracts/src/home.ts returns false for any message with creationSource: "provider". MCP sends ("mcp"), coordination results and Home reports ("server") still fold.
  • The fork's folding test now includes a native subagent prompt that carries the parent's senderThreadId.

Scope

Fork-only code; one contracts change covers web, mobile and client-runtime. Buffered wakes keep rendering as notification rows, because they become notification items before this check.

Verification

  • Upstream's MessagesTimeline.logic subagent fold test, red on Fork CI since merge: sync upstream main through 077fd62222 #71, passes. With home.ts reverted it and the new fork case fail. Web: 140 passed.
  • An independent review checked every writer of provider-sourced user messages and every reader of the check.

Model and harness: Claude Opus 5.5 (lead, implementation, review) via Claude Code in T3 Code.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

isAgentDeliveredMessage counted every provider-written user message as a
T3 agent delivery. Provider adapters write those only for the prompts a
native subagent runs, so subagent threads showed each prompt as a folded
"Agent" work row, and the launch answer disappeared into the next fold.
Provider-sourced messages are now never agent deliveries. MCP sends,
coordination results and Home reports keep their folded rows on web and
mobile.
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XS labels Nov 10, 2026
@greptile-apps

greptile-apps Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Native subagent prompts now stay visible as prompts instead of becoming folded agent work rows.

  • Native subagent prompts stay visible as regular messages.

Reviews (1) · Last reviewed commit: "fix(chat): native subagent prompts rende..." · Reviewed by Greptile

@eyeveil
eyeveil merged commit faa3c2e into main Nov 10, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant