piagent_
← /news
Nov 25, 2026release

pi v1.6.1 adds decision models to codemode, splits transcript notices into four settings, and fixes a 120k-entry session crash

pi v1.6.1 published on November 25 at 13:41 UTC (release page timestamp). The New Features section carries three items. Decision models arrive in codemode: GitHub Copilot’s gpt-6-luna-decisions and the Radius provider’s decision models are callable from models.classify(), and results now include the provider’s responseId — OpenRouter’s System One fills it with its generation ID, and its billed cost replaces the catalog estimate. Transcript notices split into one setting each: cache misses, cache warming, compaction costs, and reasoning drops each get their own toggle under Notices in /settings. Extensions gain a blockedKind option for ctx.ui.select(), ctx.ui.confirm(), and ctx.ui.input(), so terminals with program status (OSC 7501) can render a dialog as a permission request, question, or login.

The single Breaking Change rides the notices split: showCacheMissNotices is replaced by notices.cacheMisses, notices.cacheWarming, notices.compactionCosts, and notices.reasoningDrops, with an existing value migrated to all four; SettingsManager.getShowCacheMissNotices() and setShowCacheMissNotices() are removed in favor of getNotices() and setNotice().

The Added section carries six items, three beyond the features above: compat.supportsStrictMode lands for google-generative-ai and google-vertex models in models.json, so Gemini 3+ models served under IDs without the version can use strict tools (#12321); the bash tool’s structured output gains full_output_error (and fullOutputError in details, BashResult, and BashExecutionMessage) explaining when truncated output could not be saved to a temp file, and truncated output without a saved file now says so in the model context and the TUI (#10585); and gpt-6-luna-decisions joins GitHub Copilot as a decision model callable with text and images (#12395).

Changed’s three items include a default-model swap forced upstream: the default Mistral model moves from devstral-medium-latest to mistral-medium-latest because Mistral retired Devstral and the model catalog no longer lists it. after_provider_response now also fires for HTTP error responses (4xx/5xx) and for each retried attempt on OpenAI, Azure OpenAI, Anthropic, and Google models — as it already did for OpenAI Codex, Mistral, Radius, and Amazon Bedrock — so extensions can read the status and retry-after of rate-limited requests (#12376). First-time setup shows the colored pi logo, asks only about analytics, and defaults the theme to the system theme.

The Fixed section holds 14 items. Highlights: selecting the xhigh thinking level for Gemini 4 Hydrogen and Neon on the google and google-vertex providers no longer fails with Unsupported Google thinking level mapping ... xhigh -> xhigh (#12184); sessions with very many entries after the last compaction — about 120k or more — no longer fail to load with RangeError: Maximum call stack size exceeded (#12154); closing the console window or terminal tab on Windows no longer skips session_shutdown and orphan sleep 300-style commands — pi now handles SIGHUP on Windows like on POSIX and waits for taskkill before exiting, and Ctrl+D, /quit, and RPC-mode exits no longer leave ! or bash commands running; copies on Wayland stop silently failing when wl-copy guessed a non-text MIME type from the copied text — pi now copies as text/plain (#12446, by ttempaa); /login stops showing a provider as configured when its stored auth.json key is a !command that fails — it now reports stored key did not resolve (#12164); and pi update run from WSL against the Windows installation stops rebuilding it with Linux npm and says that path is unsupported (#12172). The rest: editor repaint outside terminal input handling (#12295), the bash tool’s (no output) when output ends with a 50KB+ line and an empty line (#12350), /tree re-adding prompts to Up-arrow history on every navigation (#12279), an intermittently failing AuthStorage test on coarse-timestamp systems (#12190), a thinkingLevelMap docs fix clarifying xhigh and max are opt-in (#12281), Mermaid diagrams wider than the terminal now saying how many columns they need (#12324), and no-crash handling when the full-output temp file cannot be written, such as a full /tmp (#10585).

source: https://github.com/earendil-works/pi/releases/tag/v1.6.1