#6076·rushstack

[rush] rush-cli-client: no agent-oriented reporter on the daemon path, and the repository reporter opt-in (useRushReporter) is silently ignored

Author: TheLarkInnCreated Sep 24, 2026Updated Sep 24, 2026

Summary

The daemon path renders only the legacy collated operation stream. There is no compact, agent-oriented output, and no agent detection. The concise and interactive @rushstack/rush-reporter reporters exist, including the AI reporter and the 3-row live default reporter, but they are unreachable through rushd. On top of that, a repository that opts into the reporter is silently ignored on the daemon path.

With "useRushReporter": true in common/config/rush/experiments.json:

  • native rush build on a non-TTY selects the concise plaintext reporter (16 lines / 403 B, a per-operation status line, a final rush build succeeded (12/12 operations, 0 failed) line and a log path), and on a TTY the 3-row live reporter;
  • rush-client build prints the legacy stream (38 lines / 1,710 B, no summary; see #6053).

On failure, native concise output prints [error] RUSH_OPERATION_FAILED ... p05: failure / p06..p12: blocked / rush build failed (1 failed). The daemon prints 12 headers and "is blocked by" lines, with no summary.

For AI agents, the daemon path is the worst of both worlds. Output is large (thousands of bytes of legacy blocks per build, which costs tokens). The first byte takes 0.7-3.9 s. Nothing is printed while waiting in the queue (#6052), a no-op build prints nothing at all (#6053), and failure details are shown only as "failed to build" when tools write errors to stdout.

Repro steps

# repository opt-in: common/config/rush/experiments.json { "useRushReporter": true }
rush build | cat          # concise: 16 lines, summary + log path
rush-client build | cat   # legacy: 38 lines, no summary

Expected result:

  • Short term: honor the repository opt-in on the daemon path, or route opted-in repositories to the native reporter path (consistent with the README rule for explicit reporter controls).
  • Long term: host a real reporter renderer in the client for daemon event streams, with an agent mode that prints its first line within about 50 ms. That mode shows at most 3 live rows on a TTY or throttled status lines on a pipe, shows a queue notice while waiting, guarantees a final summary line, and includes a bounded tail of failing operations' stdout. Detect agents via an explicit switch (e.g. --reporter=ai or RUSH_REPORTER=ai) and, when the qualification/privacy gates allow it, via known agent environment variables.

Actual result: Legacy stream only, and the opt-in is silently ignored.

Details

Root cause (main @ 60007c9a8c): apps/rush-cli-client/src/routing.ts:59-65 (reporterControls) ignores the repository opt-in. ClientOperationRenderer.ts:32 passes no renderer, so DaemonRendererHost.ts:39 defaults to LegacyCollatedRenderer.

A prototype client patch implemented the agent mode on the daemon path: first line in 36-54 ms, ≤3 live rows (TTY) or throttled lines (pipe), a queue notice, a guaranteed final line, and a bounded stdout tail for failed operations. It had 7 new tests, and the existing routing and renderer tests stayed green. This shows the approach works with the existing event stream.

This was found during an automated performance/behavior analysis of rush-client/rushd on Linux focused on agent-friendly output. Independently confirmed.

Standard questions

Question Answer
@microsoft/rush globally installed version? built from main @ 60007c9a8c (5.179.0)
rushVersion from rush.json? 5.179.0
pnpmVersion, npmVersion, or yarnVersion from rush.json? [email protected]
(if pnpm) useWorkspaces from pnpm-config.json? true
Operating system? Linux (WSL2 Ubuntu 24.04)
Would you consider contributing a PR? Yes
Node.js version (node -v)? 22.23.2