sixteen PRs merge into pi in the two days after v1.6.1: Copilot prompt caches survive effort and tool changes, OSC 7577 lets terminals re-launch pi, Bedrock Kimi K3.1 reasoning fixes, and a telemetry reference page lands and reverts
Sixteen pull requests merged into pi in the two days after v1.6.1 published at 13:41:35 UTC on November 25 — twelve on the 25th and four on the 26th: three features (#12539, #12557, #12579), eight fixes (#12518, #12523, #12541, #12551, #12552, #12553, #12555, #12592), and five docs changes (#12029, #12554, #12558, #12584, #12589), the last pair being a telemetry reference page added on the 26th and reverted 80 minutes later. The running tally: 156 merges since v1.5.0 through November 20’s entry, plus 34 more between November 21 and v1.6.1’s cut (their release membership not determined here), plus these sixteen, for 206; 89 of the earlier merges are verified inside v1.5.1 and v1.5.2, and all sixteen of this window’s merges are certainly main-only as of this entry. The per-PR notes below are written from the PR bodies; the merged-pulls search behind the source link is the count’s source.
#12539 keeps the prompt cache alive across effort and tool changes on GitHub Copilot (closes #12316): changing a Claude model’s thinking level or the tool set no longer rewrites top-level output_config / tools — the catalog comment claiming Copilot rejects tool_addition / tool_removal blocks is no longer true — and a GPT-6 effort change no longer touches reasoning.effort, which dropped the whole cache; Claude models also gain promptCache lifetimes, so cache warming runs for them (supportsStrictTools itself already shipped in v1.6.0, #12332). #12557 implements the program side of the Program Resume Protocol (OSC 7577): a terminal that sets OSC7577_TOKEN can bring pi back after the terminal restarts, the command authenticated by a SHA-256 mac over the report and a per-pane token, so text that merely passes through the terminal — cat output, logs, ssh — cannot register commands; commands the spec cannot carry (control characters, relative program or cwd, over the 64-argument / 2048-byte limits) return undefined and the caller sends clear instead. #12579 adds Store.setOutbox(on, ctx) to chord, switching an open store’s outbox at runtime inside the commit queue — a commit records whole or not at all — persisted like openStore’s outbox option; p3 drops its backup/enabled marker file, the worker opens the session store with the persisted setting, and the backup plugin flips it through WorkerRuntime.store.setOutbox, so backup on/off takes effect without restarting the worker.
#12592 makes estimateTokens() return 0 for bashExecution messages carrying excludeFromContext — a !! command and its output are stored that way and already dropped by convertToLlm(), but the estimator still counted them, so large !! output inflated the context estimate, could trigger auto-compaction early, and ate the keepRecentTokens budget during cut-point selection; plain ! commands estimate as before, and the zero cost matches what the send paths actually transmit. #12553 gives Windows a graceful Ctrl+Break: interactive pi listened for SIGTERM and SIGHUP but not SIGBREAK, so a console Ctrl+Break — which raw mode does not block the way it blocks Ctrl+C, and which any child process in the same console can send — ended the process with no exit handler, no crash log and no Windows crash record, leaving the terminal in the alternate screen with mouse reporting and keyboard modes on; the PR ties the cleanup-less death to the 1.6.0-era report in #12133 while noting that report has no direct Ctrl+Break evidence.
#12555 stops pi sending earlier-turn reasoning to Bedrock’s Kimi K3 and K3.1: AWS’s model cards list a known Converse limitation where requests fail with InternalServerException when reasoning content from earlier turns is included, and AWS says to remove reasoning blocks from prior turns — pi kept same-model thinking and sent it as reasoningContent.reasoningText for non-Claude models, so a normal tool loop hit this on the second request. #12551 fixes #12462 by sending models.dev’s reasoning effort for Bedrock’s flat-effort models: the Kimi K3.1 profiles (global., us., in.) and GLM 5.3 had no thinkingLevelMap, so pi offered the generic off through high ladder and clamped --thinking max to high, and buildAdditionalModelRequestFields() — which only handled Claude, GPT and gpt-oss — sent no effort at all, leaving the model reasoning at max whatever was selected, including off; the PR maps them to the AWS model cards’ values. #12552 replaces models the upstream models.dev catalog dropped: the Qwen Token Plan Individual allowlist moves qwen4-max-preview (preview retired 2026-11-25) to the GA qwen4-max, and the Cloudflare Workers AI default moves off the deprecated @cf/moonshotai/kimi-k2.6 and kimi-k2.7-code (deprecated by Cloudflare on 2026-11-20) — both drifts broke CI before the fix landed.
#12541, a follow-up to #12518, fixes the remaining hints that name the wrong keybinding or hardcode a key: the extension editor’s submit hint and /resume’s session-rename input named tui.select.confirm while the inner editor submits on tui.input.submit, and /hotkeys claimed app.interrupt cancels autocomplete when tui.select.cancel does — all correct with default bindings only because both default to the same key. #12518 itself renamed the running-! command hint to keyText("app.interrupt"): it previously read tui.select.cancel — escape and ctrl+c by default — but the command cancels through app.interrupt (escape) while ctrl+c goes to app.clear, where a second press within 500 ms quits pi, so following the hint quit pi instead of stopping the command; the warning shown for a second ! command, which hardcoded “Press Esc to cancel it first”, got the same treatment. #12523 fixes #12522 by reporting models.json errors in every mode: modelRuntime.getError() was read by interactive mode and listModels but not by the runtime diagnostics that print, JSON and RPC modes write to stderr, so a typo like "contextWindow": "32000" silently ignored the whole file — print mode showed only Model "local/qwen-local" not found, and JSON and RPC showed neither the error nor the file; the error now rides the runtime-diagnostics warning channel, the same one invalid settings files use (#11973, #12234).
#12584 adds packages/coding-agent/docs/telemetry.md under Reference, written from a read of the current code: the pi.dev requests (the install/update ping — the only automatic telemetry — plus version check and model catalog updates, each with when it fires, what data it sends and how to turn it off), the metadata pi adds to model requests (User-Agent and its exceptions, attribution headers for OpenRouter, NVIDIA NIM and OpenCode, originator: pi for Codex, session ID), the identifiers extensions can read (deviceId, trackingId, session ID), the analytics opt-in that is stored but never sent by code, what /bug sends and its redaction limits, the controls (PI_TELEMETRY, enableInstallTelemetry, PI_SKIP_VERSION_CHECK, offline mode; pi does not read DO_NOT_TRACK), and what those controls do not cover (extensions, Pi packages, MCP servers, tool commands). #12589 reverts it 80 minutes later (reverts #12584, commit 524f015b3); this entry records the page’s roughly 80-minute life — added and reverted within the same day — and does not speculate about the revert. #12558 records in the model catalog, comment-only, why OpenAI models have no promptCache and therefore no cache warming: before GPT-5.6 caching is best-effort with no fixed lifetime and no write charge, and from GPT-5.6 entries live 30 minutes (12 hours with ttl: "12h" at twice the write price), which outlasts pi’s 30-minute idle warming window and is renewed by every real request — a decision the comment states was taken from the documented lifetimes, not measured; the Anthropic comment is updated too, since Copilot Claude models now carry promptCache (#12539). #12554 adds a “Recover the terminal after Pi was killed” row and section to docs/terminal-setup.md: when pi is killed outright (kill -9, Task Manager, out of memory) it cannot turn off the alternate screen, mouse and focus reporting or extended-key protocols (#12133), so run pi again and quit it cleanly — and if typed input is invisible, keep the pointer off the pane, press ctrl+c, then type pi. #12029 points the contributor guide’s keybinding sentence at the tables that replaced DEFAULT_EDITOR_KEYBINDINGS / DEFAULT_APP_KEYBINDINGS — TUI_KEYBINDINGS (packages/tui/src/keybindings.ts) and APP_KEYBINDINGS (packages/coding-agent/src/core/keybindings.ts), renamed in e3fee7a51 — a one-line docs fix, listed here so the window reconciles.
All sixteen bodies were read for this entry; every merge in the window landed after v1.6.1’s 13:41:35 UTC cut, so all sixteen are main-only as of this entry, riding no release yet.