Seven pi merges on November 12: p2 backups reach Radius, signal-terminated pi.exec commands fail, bash output survives a long-line tail
Seven pull requests merged in pi on November 12, one feat and six fixes, lifting the tally since v1.5.0 shipped on November 2 to 113 — seventy-eight through November 8, twenty-eight more across November 9 to 11, seven on November 12 — with eleven already inside v1.5.1 and v1.5.2 and 102 left on main. All seven 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 feat extends p2’s backup chain: cristinaponcela’s #12059 wires the backup coordinator (#12042) to Radius, so P2_BACKUP=radius sends every Chord store’s backups to Radius rather than only to a local P2_BACKUP_DIR. Targets now come from plugins through a BackupTargets registry owned by the backup plugin — the Radius plugin offers the radius target and the backup plugin carries no Radius code itself. Radius stays opt-in; making it the default is named as a follow-up. The token comes from the existing Radius connection (RadiusBrain.syncAccess()) and refreshes as that connection does, and the server’s store is named server-<serverId>. Radius has stored Chord session history server-side since radius#295, Caren’s adapter (#11990) speaks that API, and this PR joins them. Per radius#295’s request, 400, 403 and 413 stop uploads until a restart (403 is what an account with the session_sync feature off gets), while 401, 5xx and network errors keep retrying with backoff. One named limitation: the adapter sends each upload as one in-memory request, and Radius caps uploads at 32 MiB compressed, so a store’s first full copy could exceed the cap and sit stopped until restart. As with the coordinator, sessions not opened again after a failed final upload, search, device.json, auth.json and owner files are not backed up, and restore is next.
Two coding-agent fixes correct user-visible behavior. acmerfight’s #12089 (closing #12088) stops pi.exec from reading signal-terminated commands as success: a missing exit code used to map to 0 through code ?? 0, so timeouts, aborts, SIGSEGV crashes and OOM-killer kills all reported code: 0. ExecResult.code now reports 128 plus the signal number — the same expression the bash tool uses, 143 for SIGTERM, 137 for SIGKILL — and 1 when there is neither a code nor a signal; normal exit codes, killed and truncated are unchanged, and a truncated result still never reports 0. robopipi[bot]’s #12092 (requested by davidbrai, fixing #12062) keeps bash output that used to vanish: when a command printed a short line and then one very long line — a grep -n hit in a minified bundle is the PR’s example — the snapshot text came back empty and the footer printed a wrong Showing lines 3-2 of 2 (50.0KB limit) notice; any output whose last line is longer than about 100KB once the total passes about 200KB was exposed. The fix falls back to the unclipped tail when clipping leaves nothing, and truncateTail then shows the last 50KB of the line under its Showing last 50.0KB of line N notice. Not fixed, per the PR: the line is 0B notice on newline-terminated long lines is the separate cause #10015, and truncateTail still returns empty on a too-long line followed by an empty one.
The remaining two robopipi[bot] PRs, both requested by davidbrai, land in the ai package. #12093 (fixing #12064) widens the retryable set: some gateways end a stream mid-response with an api_error reading “Connection closed.”, which isRetryableAssistantError did not match, so the turn stopped with no automatic retry even though similar drops such as “Connection lost” and “socket connection was closed” were already retried. A connection.?closed pattern now joins RETRYABLE_PROVIDER_ERROR_PATTERN in packages/ai/src/utils/retry.ts, the agent proxy’s own “Connection closed by proxy server before the response completed” matches too, and the non-retryable quota/limit pattern is still checked first. #12100 (fixing #12067) repairs the non-strict Anthropic tool-schema path: with strict tools off, convertTools() rebuilt each input_schema from only type, properties, required, $defs and definitions, dropping a root additionalProperties: false, so Claude was never told that extra arguments are forbidden. The keyword now carries into the non-strict schema whenever the tool sets it — false, true or a schema — while root anyOf/oneOf/allOf stay out because Anthropic rejects them with a 400, root patternProperties, unevaluatedProperties and propertyNames remain dropped, and the strict path and the Bedrock, Google and OpenAI providers already send the whole parameters object.
The day’s last two merges, both ai PRs, add custom fetch support to the Google adapters. rometi’s #12103 (closing #12097) lets google-generative-ai and google-vertex accept a fetch option both used to reject: routing model requests through a caller-owned HTTP proxy — mainly to control request URLs and inspect HTTP status codes and Retry-After headers — no longer requires Google’s OpenAI-compatible endpoint, where pi’s openai-completions adapter loses Gemini’s thought signatures from extra_content between tool calls. Both adapters now pass options.fetch through httpOptions.fetch on an @google/genai upgraded from 2.21.0 to 2.32.0, and the new SDK’s CONTINUATION finish reason is handled as MAX_TOKENS. petrroll’s #12108, whose two commits were pushed after #12103 had already merged, drops the obsolete test of the removed custom-fetch rejection and adds the changelog entries — custom fetch in the Google adapters (Vertex ADC token requests do not use it), and the 2.32.0 update with automatic continuation turned off.
None of the seven is in a release — the newest tag remains v1.5.2, published November 10 — and every number appears in the merged-pulls search the source field links.