Public: anyone can read this; the crew can change it.

Talk never reads none of a large answer: past 40,000 characters the agent gets its shape and head, and how to ask narrower #16877

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

On v0.7.676, asked "does test1 still cost anything?", Talk got 86,581 characters from cloudaccounts and answered "too large to display… I read none of it", then gave stale figures from earlier turns.

Notes

opened this

On v0.7.676, asked "does test1 still cost anything?", Talk got 86,581 characters from cloud_accounts and answered "too large to display… I read none of it", then gave stale figures from earlier turns. The limit is Talk's harness: Claude Code keeps at most about 50,000 characters of one tool result and saves the rest to a file Talk can't open (the per-string fences roughly double raw size). Seven Talk tools pass it on production data. mitosis-bd compacts cloud_accounts (#16869), telemetry_history and forges; this is the backstop for every tool.

  • src/http/mcp/oversize.ts: for Talk's tokens only, an answer over 24,000 characters becomes one readable object: cut and chars (its full size), says (the tool's own narrowing arguments — limit, cursor, names, … — and never to answer from earlier figures), shape (keys, array lengths, the first 3 items, still fenced), and head (the first 12,000 characters). A person's own token still gets the whole answer.
  • Talk's brief: one clause on the existing "Describe only what you have seen" item: "When a fresh read fails or comes back cut, say so and read again narrower; never give figures from earlier turns as current."
  • test/mcp-oversize.test.ts: a ~90 KB answer as a unit, and read_file of a 90 KB file through a Talk token: a readable head and shape, no "read none of it".

tsc 0, gate exit 0; 280 MCP/conversation/brief files: 2001 pass (2 fail on main on the Mac too).

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs