piagent_
← /news
Nov 13, 2026community

Five pi merges on November 13: very large tool results stop crashing pi, /copy survives aborted turns, Copilot learns reasoning effort

Five pull requests merged in pi on November 13, all fixes, lifting the tally since v1.5.0 shipped on November 2 to 124 — seventy-eight through November 8, twenty-eight more across November 9 to 11, thirteen on November 12, five on November 13 — with eighty-nine already inside v1.5.1 and v1.5.2 and 35 left on main. All five carry documented bodies; the behavior notes below are written from them, and the counts come from the merged-pulls search behind the source link.

The biggest user-facing fix closes a crash that came back on every resume: robopipi[bot]’s #12145 (fixing #8036, requested by davidbrai) stops pi from exiting with RangeError: Maximum call stack size exceeded when a tool that draws itself renders a very large result. ToolExecutionComponent.render() appended the rendered lines of renderShell: "self" tools — the built-in edit tool included — with a spread (lines.push(...contentLines)), and an edit into a file with a multi-megabyte line, such as exported HTML, can wrap to hundreds of thousands of display lines; spreading that many arguments crosses V8’s limit. Because the diff is saved in the session, the crash returned every time the session was resumed. The change appends in a loop instead, the same way Container.render in pi-tui already does, with nothing changing in what is rendered or saved. The PR’s validation opened a session whose edit diff carried two lines of about 12 MB each at 100 columns — pi crashed in ToolExecutionComponent.render before the fix and opens and accepts input after it.

Two fixes keep the session honest about what the model sees. robopipi[bot]’s #12139 removes a warning that went stale on model switch: when read loaded an image under a text-only model, the result text appended [Current model does not support images. The image will be omitted from this request.], and that text was saved in the session — after switching to a vision model, the next request sent the image together with a note that was no longer true, while pi-ai’s downgradeUnsupportedImages was already replacing the tool-result image itself with a placeholder. The result text no longer mentions image support at all; instead the tool records the model’s id in details.imageUnsupportedByModel, which the TUI shows but never sends to the model, and the read renderer draws [<model> does not support images; it saw a placeholder instead] collapsed and expanded — naming the model that read the image, so the warning stays accurate after a switch. The durable package’s read had the same problem through an info diagnostic rendered into the tool result the model sees; that diagnostic and its unused vision field are removed and the README paragraph updated. Left unchanged, per the PR: the stored image is still resized with the reading model’s inputLimits.images.resize, and the HTML export draws read results from their text so it no longer shows the warning. acmerfight’s #12121 (closing #12119) fixes /copy after aborted turns: getLastAssistantText() only skipped aborted messages with no content, so after an Esc during a tool call (a tool-call-only message plus an empty one) or a provider error (an empty error message), /copy reported “No agent messages to copy yet.” while the previous answer sat on screen, and the get_last_assistant_text RPC returned null in the same cases. The fix skips assistant messages without text whose turn did not end normally — stopReason other than stop: aborted, error, toolUse, length — generalizing the existing aborted-and-empty check. A normal reply without text stays the last reply, so /copy never silently copies an older answer, and the evals harness’s empty-final-reply report is unchanged; the RPC documentation notes the skipped messages.

robopipi[bot]’s #12136 widens the retry classifier to bare Node socket error codes. Errors like read ECONNRESET, write EPIPE and connect ETIMEDOUT carry no retryable wording — ETIMEDOUT has no space, so the pattern’s timed? out missed it — and none matched RETRYABLE_PROVIDER_ERROR_PATTERN, so isRetryableAssistantError returned false and the turn ended. The confirmed case is Amazon Bedrock: the AWS SDK’s HTTP handler (@smithy/node-http-handler on node:https) passes Node’s socket error through unchanged, and with no cause attached formatBedrockError reports just read ECONNRESET when the connection resets before a response arrives. The fetch-based APIs were already retried because their SDKs wrap the socket error with the code appended. The change adds ECONNRESET, ECONNABORTED, ECONNREFUSED, ETIMEDOUT and EPIPE, plus Node’s wording “connection reset by peer”, to the transport section of the pattern, with word-boundary guards like the status-code rule so a code inside a longer identifier cannot match; ECONNREFUSED is included on purpose because the pattern already retries connection.?refused and the two forms of the same error should not be treated differently. coding-agent and durable share the classifier and get the fix unchanged; the Codex Responses transport already retries network exceptions on its own path. Still not retried, per the PR: EHOSTUNREACH, ENETUNREACH and UND_ERR_SOCKET; the codes match case-insensitively like the rest of the pattern.

The day’s last fix, DenielC1’s #12110 (closing #12019), repairs the GitHub Copilot catalog on two counts. The catalog hardcoded supportsReasoningEffort: false for its Gemini and Kimi models, so the thinking level was never sent; the flag now comes from models.dev, which turns it on for gemini-4-argon and gemini-3.8-flash from the issue and also for gemini-4-carbon (low/medium/high) and kimi-k3 (low/high/max). And Copilot reports reasoning tokens at the top level of usage (usage.reasoning_tokens) rather than nested in usage.completion_tokens_details, so pi’s usage.reasoning was always 0; parseChunkUsage now reads the top-level field when the nested one is missing, like its existing cached-token fallbacks. The issue’s suggestion of reading /models at login is left out — per the PR, no provider changes model settings after login. Validation on main b8e1eec80d covers both fixes with one failing-without-fix test each; the PR notes they were not tested against a live Copilot account.

source: https://github.com/earendil-works/pi/pulls?q=is%3Apr+is%3Aclosed+merged%3A2026-11-13T00%3A00%3A00Z..2026-11-14T00%3A00%3A00Z