You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Frictions from a dream: stale summaries, MCP arg guessing, fatal 429s, sleep polling #480
Four frictions from ~12 days of one user's Ultimate history (19–30 Nov), counted by a dream. Lines are on main at d899f2d. Items 1–3 add evidence to open issues; item 4 is new.
1. Summaries cut off by the 2048-token cap (45 discarded) — see #282, #325
38 of 510 summary calls ended at exactly output=2048, stopReason=length; successful ones used 1654–1955. The budget includes reasoning (summary.ts:188, :206), so a reasoning model spends it before writing the JSON, and :277 discards it. It hits the longest conversations, so their abstracts go stale.
Suggestion: on length, retry once with reasoning off or a larger budget.
2. No schema when a call has the wrong argument name (13 failures) — see #253
The schema is appended only when the error is an McpError (mcp/server.ts:413). A gateway that validates arguments itself replies with plain text ("takes no argument named X; it takes Y"), so the agent guesses again: one script repeated the same wrong call 7 times. An unknown tool name gets the server's "Use tools/list", which agents can't call.
Suggestion: append the schema on any failed call; for an unknown tool, point to mcp {server}.
3. A Slack 429 kills the whole codemode script (7 times, 4 fatal) — see #454 (item 2)
rateLimited() (server.ts:32, :402) only skips the reconnect; nothing retries, so the error throws out of the script and loses its other results.
Suggestion: retry a 429 inside the tool after a short backoff.
4. Agents poll with sleep loops instead of background: true (11 loops, 0 uses)
Agents waited on long-running commands with sleep N; check loops in foreground bash 11 times; bash { background: true } was never used. The bash description mentions background: true only for servers, so agents don't reach for it for other long jobs.
Suggestion: in the bash tool description, say to start any long command with background: true and check its log, rather than sleeping in a loop.
Activity