Skip to content

The outbound send_message card does not render in the web timeline for stored sends #522

Closed

Description

@Jacksondr5

Found during the live runs for #508 (2026-10-10), and consistent with what the screenshot pass for #500 saw on both j5/main before that merge and on the merged branch.

What happens

In the web app, a thread's own sends show as a generic tool row ("J5 send message") where J5's outbound card should be (FORK.md case 14: renderThreadA2AOutboundTool in apps/web/src/j5/a2a/ThreadA2ARenderer.tsx, reached from MessagesTimeline.tsx). Inbound cards render correctly.

What the #508 builder saw

  • The timeline's work item for the send carries a trimmed output with no exchangeState.
  • On Claude, the tool's full output is a JSON string under content, not the structured object the card's gate expects.

So the delegate's "completed, structurally valid" check returns null and the generic row is used. Not yet established: whether the trimming happens in the server's projection, in the client's work-entry derivation, or in what the provider records; whether Codex sends render; and when it stopped working. The unit tests for the renderer pass because they build the structured shape by hand.

Not caused by

The j5_ rename (#508) or the upstream advance (#500): the #500 screenshot pass found no outbound card on the pre-merge build either, in real copied data.

To do

Reproduce on Codex and Claude with a real send, find where the output loses its shape, and make the card render from what is actually stored. Add a test built from a recorded work entry, not a hand-made one.

Activity

  1. Jacksondr5 commented on Oct 10, 2026

    @Jacksondr5
    OwnerAuthor

    Cause found (2026-10-10), on j5/main at 553119ca24 with a dev server on a copy of real data.

    The card can never render from what the client receives. Upstream's server trims every tool call before it goes over the socket (projectTurnItemForWire in apps/server/src/orchestration-v2/WireProjection.ts, part of the V2 orchestrator):

    • the output is reduced to a few ids by compactDynamicToolOutput (messageId survives; exchangeId and exchangeState do not);
    • the input is summarized, so the full message body is not there either.

    The card's gate requires exchangeState and shows the full body, so it returns null for every send, on Codex and Claude alike. The full values exist only in the on-demand detail read (projectTurnItemForDetail).

    A second, smaller mismatch: Claude stores the result inside the MCP envelope (output.structuredContent, plus the same data as JSON text under output.content); Codex stores the result itself. The gate reads only the Codex shape. This matters only if the card is ever given untrimmed data.

    Also seen: a send sits inside upstream's collapsed group of work rows ("Ran 2 commands, linked 1 pull request, and performed 2 other actions"), so even a working card would only appear after opening the turn and that group.

    So this is a design choice, not a small fix: exempt sends from upstream's trimming (an upstream-file seam and more data on the socket), draw a smaller card from what the wire carries, or retire the outbound card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions