Skip to content

fix(conversations): Show tool calls and redacted notice on empty transcript#119046

Draft
obostjancic wants to merge 1 commit into
masterfrom
ognjenbostjancic/tet-2607-improve-no-messages-found-screen
Draft

fix(conversations): Show tool calls and redacted notice on empty transcript#119046
obostjancic wants to merge 1 commit into
masterfrom
ognjenbostjancic/tet-2607-improve-no-messages-found-screen

Conversation

@obostjancic

Copy link
Copy Markdown
Member

When a conversation's generation spans carry no message content, the redesigned transcript (gen-ai-conversations-redesign) previously showed a blank "No messages found" panel — even when tool calls had run during the conversation.

Two improvements are included:

Show tool calls even when there are no messages. Tool spans are now extracted directly from the node list and rendered via MessageToolCallsNew in the empty-messages path. This covers both the case where tool spans have no accompanying generation span, and the case where generation spans exist but their inputs/outputs were not captured.

Treat missing inputs/outputs as redacted. When the panel renders with no message content, it now shows a muted "Message inputs and outputs were not captured" notice instead of nothing, making the reason for the blank panel explicit.

Bug fix: mergeEmptyTurns dropped orphaned tool calls. When every generation span in a conversation had no assistantContent, pending tool calls accumulated but were silently discarded because there was no committed turn to flush onto. The fix creates a synthetic tool-call-only turn from the last generation span in that case, so those calls reach turnsToMessages and appear as an assistant message with empty text but visible tool badges.

A new buildToolCallsFromSpans helper is exported for converting raw tool span nodes to ToolCall[] without needing a generation span as an anchor.

Refs TET-2607

@linear-code

linear-code Bot commented Jul 6, 2026

Copy link
Copy Markdown

TET-2607

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 6, 2026
…script

When a conversation's generation spans have no message content captured, the
redesigned transcript now shows any tool calls that ran and a muted notice
('Message inputs and outputs were not captured') rather than a blank panel.

Two bugs are fixed:
- mergeEmptyTurns dropped pending tool calls when no generation span had
  assistantContent, so tool-only turns were silently lost. They are now
  flushed onto a synthetic turn anchored on the last generation span.
- The empty-messages path in MessagesPanelNew now extracts orphaned tool
  spans directly from nodes and renders them via MessageToolCallsNew, so
  tool-only conversations (no generation spans at all) also surface their
  calls.

A new buildToolCallsFromSpans helper is exported for direct conversion of
tool span nodes to ToolCall objects without requiring a generation span.

Refs TET-2607
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@obostjancic obostjancic force-pushed the ognjenbostjancic/tet-2607-improve-no-messages-found-screen branch from eb06431 to 8bbb688 Compare July 6, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant