Claude Code 2.1.286 prompt count '2 of 5': parallel Sume calls
Claude Code 2.1.286 shows a count like 2 of 5 on stacked permission prompts, oldest first. Five parallel Sume calls make five prompts; script_run is one.

Claude Code 2.1.286, published on 2026-09-30, adds a count such as "2 of 5" to the permission prompt when several requests stack up, and shows waiting prompts oldest first (read 2026-10-02). If an agent fans out five parallel Sume generations, you will now see five prompts counted off, and each one is a separate paid call. A single script_run call is one prompt, but approving it approves everything the script is allowed to call.
What the changelog says
Two entries matter here, and one from 2.1.287 on 2026-10-01 completes the picture.
| Version and date | Changelog entry | For Sume |
|---|---|---|
| 2.1.286, 2026-09-30 | Count such as "2 of 5" on stacked permission prompts | You can see how many paid calls are waiting |
| 2.1.286, 2026-09-30 | Waiting prompts shown oldest first, so a new prompt does not cover the one you are reading | Read each one; prompts with a countdown still open on top |
| 2.1.287, 2026-10-01 | MCP and other tool prompts show the tool call between dashed lines | The idempotency_key and arguments are visible in the prompt |
Why parallel Sume calls stack
Each paid create, such as generate_video or tts_create, is its own tool call and needs its own idempotency_key (MCP tools and gates). Five scenes become five prompts. Read each prompt for the model, duration and max_spend_usd before you approve; the count tells you how many are left, not what they cost.
For the wait, Sume's jobs_wait accepts up to 20 job_ids in one call, so one batch wait covers the jobs instead of five separate waits (Jobs and results).
What script_run changes, and what it does not
Sume documents script_run as a short program that calls tools in a loop or in parallel and returns one value, for use when a turn needs three or more independent calls of the same shape. Inside the script, each call runs under the same gates as a direct call, paid creates still need their own idempotency_key, and the run is bounded by timeout_seconds (5 to 55), max_calls and max_paid_calls.
From Claude Code's side that is one tool call, so one prompt. The trade is that one approval now covers up to max_paid_calls spends. Set that bound to the number you actually intend, and ask for dry_run=true in the first pass. I have not verified how Claude Code words the prompt for script_run, so read the arguments before you approve.
A practical rule
Sume's OAuth page covers how to leave Write off when you only need discovery.
- Under about three parallel calls, approve them one by one and read the counted prompts.
- At three or more, use
script_runwith a tightmax_paid_callsand amax_spend_usdwhere the tool supports it. - With OAuth
mcp:readonly, paid calls returninsufficient_scope, so no prompt can lead to a spend.
Sources
Related posts
More in Integrations
- Claude Code 2.1.287 large MCP results: Sume's include_results answer
Claude Code 2.1.287 fixed paging of large MCP results saved as JSON. For Sume job waves, use jobs_wait include_results and read omitted ids once.
- Claude Code MCP whitespace warning: a pasted Sume key with a newline
Claude Code warns when an MCP header or url has leading or trailing whitespace, often a pasted token with a newline. It does not trim it. Fix a Sume entry.
- Claude Code .mcp.json: why ${ANTHROPIC_API_KEY} reads empty for Sume
Claude Code reads credential variables like ANTHROPIC_API_KEY and NPM_TOKEN as empty in a remote url or headers. Name your Sume key variable SUME_API_KEY.
- Claude Code: same MCP name in two scopes, one Sume entry, no merge
If a Sume server is defined in local and project scope, Claude Code loads one definition whole and warns. Order, no field merge, and which tools you get.
Written by Sume