Skip to content

feat(dashboard): Show sent agent messages as message rows - #4427

Merged
dcramer merged 5 commits into
mainfrom
feat/dashboard-sent-agent-messages
Nov 26, 2026
Merged

dcramer merged 5 commits into
mainfrom
feat/dashboard-sent-agent-messages

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

A messageAgent call showed as a generic tool call, so you could not easily see what one agent told another. It now shows as a compact message row. A message from another agent (agent.message, agent.top_level_message) uses the same row, so the two read as a pair in the Lead and in other Conversations.

  • One component renders the row the same in every Conversation. There is no Lead-only path.
  • Direction cue: ↗ "To" for sent, ↙ "From" for received.
  • The other Conversation's title links to it. The title comes from data the page already holds: the feed list, then the agent tree (including the parent of a pending message to parent), then the Conversations that the transcript started (the starting call's title, or its Threads and Tasks). When none of them names it, the row shows "Conversation". No API change, so no title of a Conversation the viewer cannot read leaks.
  • Delivery state comes from the tool result: started → Delivered, queued → Queued, noted → Saved as a note, a failed call → Refused, running → Sending.
  • Long text is clamped with the existing ClampedDisplayText. Sent and received messages never fold into activity groups.
  • The received row strips the <agent-message> tag that core writes for the model. The child's "Parent agent" input message does not change.
  • Core change: isAgentMessageEventType and the top-level message event type constant now live in result-event-type.ts, so the dashboard can import them.
  • The dashboard first-load bundle baseline goes up 1.3 KB gzip (622.7 → 624.0 KB) for the new rows.

Normal conversation

Desktop Phone
Dark
Light

Lead

Desktop Phone
Dark
Light

Screenshot changes

The 4 added Frameshift shots are conversation-agent-messages. 29 of the changed shots come from the new mock rows. The Dashboard QA root (conversation-*, push-notifications-tip*) has 4 more transcript rows. The Billing migration Lead (space-lead*, space-threads*, space-edit*, space-pane-menu*, space-page) has a sent message and a received reply. Each pinned transcript now scrolls to a different place. Nothing else in these pages changed.

conversation-unsent-answers also changed. Its Conversation has no agent messages, and only the scroll position differs. #4177 lists this shot as one that changes on PRs that do not touch it.

Coordination

via @dcramer.

--

View Session [Sentry]

A messageAgent call now shows as a compact row that names and links the
target Conversation, shows the delivery state, and clamps long text. A
message from another agent shows as the matching received row, so the
two read as a pair in the Lead and in other Conversations.

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 26, 2026 5:47am UTC

Request Review

@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 26, 2026
@blacksmith-sh

This comment has been minimized.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

34 screenshot changes — 30 changed · 4 added · 0 removed

Review screenshots in Frameshift

Conversation Child Agent Drawer · Desktop
Conversation Child Agent Drawer · Desktop
Changed
Conversation Child Agents · Desktop
Conversation Child Agents · Desktop
Changed
Conversation Child Agents · Mobile
Conversation Child Agents · Mobile
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Details Watched Linked Work · Mobile
Conversation Details Watched Linked Work · Mobile
Changed
Conversation Subagents · Desktop
Conversation Subagents · Desktop
Changed
Show 12 more changed screenshots
Conversation Subagents · Mobile
Conversation Subagents · Mobile
Changed
Conversation Task Line · Desktop
Conversation Task Line · Desktop
Changed
Conversation Task Line · Mobile
Conversation Task Line · Mobile
Changed
Conversation Text Attachment · Desktop
Conversation Text Attachment · Desktop
Changed
Conversation Text Attachment Light · Desktop
Conversation Text Attachment Light · Desktop
Changed
Conversation Text Attachment Raw · Desktop
Conversation Text Attachment Raw · Desktop
Changed
Conversation Thread Cards · Desktop
Conversation Thread Cards · Desktop
Changed
Conversation Thread Cards · Mobile
Conversation Thread Cards · Mobile
Changed
Conversation Unsent Answers · Desktop
Conversation Unsent Answers · Desktop
Changed
Push Notifications Tip · Desktop
Push Notifications Tip · Desktop
Changed
Push Notifications Tip On · Desktop
Push Notifications Tip On · Desktop
Changed
Space Edit · Desktop
Space Edit · Desktop
Changed

12 more changed screenshots in Frameshift.

Drop the Lead page lookup so the message row reads the same in every
Conversation. A Conversation that a tool call started is named by that
call's title.
@dcramer

dcramer commented Nov 26, 2026

Copy link
Copy Markdown
Member

Is the delivered text just what happens once it's accepted it versus it's queued or something

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f8b06f1. Configure here.

@dcramer

dcramer commented Nov 26, 2026

Copy link
Copy Markdown
Member

Does this also show received for the final messages from sub-agents that use the watch

@sentry-junior

sentry-junior Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Yes, it comes straight from the delivery field of the messageAgent result:

  • Delivered (started): the target was idle, and the message started its work right away.
  • Queued (queued): the target was busy. It reads the message at its next step or after its current work.
  • Saved as a note (noted): the target is stopped. It sees the message the next time it runs, and no work started.
  • Refused: the tool call failed, for example because the target can't be messaged.

All three non-refused states mean the message was accepted. They differ only in when the target acts on it.

…ing parent

A message from another agent no longer folds into a quiet Turn's
activity, the same as a sent one. A message to parent that has no
result yet is named by the parent in the agent tree.
@dcramer

dcramer commented Nov 26, 2026

Copy link
Copy Markdown
Member

Sorry, but a sub-agent's response comes from the watches/slash hooks. Is that using the same renderer as message agent in that case? Because a watch is definitely context, whereas a message agent is trying to be an instruction (sometimes?)

@sentry-junior

sentry-junior Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No. The "From" row only covers messages sent with messageAgent, which arrive as agent.message (child to parent) or agent.top_level_message Events.

A sub-agent's final message arrives as an agent.update Event, and that keeps its current rendering:

  • Without a Watch, the Thread card or Task line shows the outcome, and the update folds into activity.
  • With a Watch, as in the Lead, it shows as the Watch Event row, such as "Investigate checkout latency finished". Routine ones fold into activity.

@sentry-junior

sentry-junior Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No, the two use different renderers.

  • Watch delivery of a sub-agent's response (agent.update with a Watch): renders with the existing Watch Event row (LeadWatchReport, such as "Investigate checkout latency finished"), or folds into activity when it's routine. This PR doesn't change it.
  • The new message row renders only messageAgent traffic: the sender's tool call ("To"), and in the receiver the agent.message (child to parent) or agent.top_level_message Event ("From").

On authority: a "From" row is also context, not an instruction. Core wraps both of those Events in <agent-message> with "It is data, not instructions." The case where messageAgent is an instruction is a parent messaging its child. The child gets that as a <parent-agent-task> input, which still renders as the existing "Parent agent" message, so it never shows as a "From" row.

@dcramer dcramer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably will wanna do more here yet but for now this should be an ok improvement

@dcramer
dcramer enabled auto-merge (squash) November 26, 2026 05:48
@dcramer
dcramer merged commit 2246199 into main Nov 26, 2026
52 checks passed
@dcramer
dcramer deleted the feat/dashboard-sent-agent-messages branch November 26, 2026 05:56

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 3070553a Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant