Skip to content

[Bug]: A workflow or agent message over 120,000 characters is displayed as sent, then its run fails, and the sender gets no error #47077

Done

Description

@seankoji

Note

Written by Claude Sonnet 5.5 on behalf of @seankoji

Area

apps/server (workflow agent turns) and apps/web (thread message handling). I am not sure which layer should own the check.

Steps to reproduce

I have not reproduced this with a minimal script. What I observed, and what I believe triggers it:

  1. A workflow script ends by sending its result to the invoking thread with T3.agent(name, { thread: { threadId }, brief }).
  2. The brief is very large (a pretty-printed JSON result for a backlog of about 125 items). Its exact length is unmeasured, but it is over the limit.
  3. The thread shows the brief as a message with "Show full message", then the red error "Message is too long. Message exceeds 120,000 characters after expanding quotes. Shorten it and try again."
  4. The two thread runs started for it were recorded as failed within about 100 ms, with no provider turn.

To reproduce deterministically: run a workflow whose final step sends a brief of, say, 150,000 characters to the invoking thread.

Expected behavior

One of these, consistently:

  • T3.agent (or the thread-send path behind it) rejects an over-limit brief up front with a typed error that names the limit and the actual length, so the script can truncate and retry; or
  • the brief is accepted and delivered to the agent.

The same limit should apply on every path that starts a turn. #6105 added the client-side check for the composer; a message sent by a workflow, or by another agent, does not pass through the composer.

Actual behavior

The over-limit message is stored and displayed as if sent, then the run fails on the turn-input limit. The workflow finished normally and I saw no error returned to the script, so as far as I can tell the script treats its result as delivered while the invoking agent never sees it. The wording "after expanding quotes" is also misleading here, since the message was not authored with quotes; if quote expansion is part of the length calculation, the error should say how long the expanded text was and which part came from quotes. (#35776 covers the composer's wording of the limit message; this report is about a non-composer path.)

Impact

Major degradation or frequent failure. A long-running workflow's final result is lost silently. Large results are the normal case for backlog-style workflows.

Version or commit

0.1.14 nightly, builds from 1 December 2026.

Environment

T3 Code server on Linux (WSL2); web client on macOS. Provider for the invoking thread: Antigravity.

Logs or stack traces

Message is too long
Message exceeds 120,000 characters after expanding quotes. Shorten it and try again.

Workaround

The workflow author must bound the brief themselves (for example under 60,000 characters) and return the full result as the workflow's value. Nothing in T3.agent tells the script when it has crossed the limit.

Related

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