New Features
- Decision models in codemode: GitHub Copilot's
gpt-6-luna-decisionsand Radius decision models can be called from codemodemodels.classify(), and results include the provider'sresponseId. See Classify. - One setting per transcript notice: cache misses, cache warming, compaction costs, and reasoning drops each have their own setting under Notices in
/settings. See Model and thinking. - Dialog status kind for extensions:
ctx.ui.select(),ctx.ui.confirm(), andctx.ui.input()acceptblockedKind, so terminals with program status can show a dialog as a permission request, question, or login. See Program Status Kind.
Breaking Changes
- Replaced the
showCacheMissNoticessetting with one setting per transcript notice:notices.cacheMisses,notices.cacheWarming,notices.compactionCosts, andnotices.reasoningDrops, configured under Notices in/settings. An existingshowCacheMissNoticesvalue is migrated to all four.SettingsManager.getShowCacheMissNotices()andsetShowCacheMissNotices()are removed; usegetNotices()andsetNotice()instead
Added
- Added
compat.supportsStrictModeforgoogle-generative-aiandgoogle-vertexmodels inmodels.json, so Gemini 3+ models served under IDs without the version can use strict tools (#12321) - Added a
blockedKindoption toctx.ui.select(),ctx.ui.confirm()andctx.ui.input()that sets the kind of blocked program status (OSC 7501) the dialog reports, for example"permission"for a select that approves an action. See Dialogs - Added
full_output_errorto the bash tool's structured output andfullOutputErrorto its details,BashResultandBashExecutionMessage, giving the reason when truncated output could not be saved to a temp file. User bash output that was truncated without a saved file now says so in the model context and the TUI (#10585) - Added the
gpt-6-luna-decisionsdecision model for GitHub Copilot, callable from codemodemodels.classify()with text and images (#12395) - Added decision models on the Radius provider, callable from codemode
models.classify() - Added
responseIdto codemodemodels.classify()results. OpenRouter's System One fills it with its generation ID, and its billed cost replaces the catalog estimate. See codemode
Changed
- Changed the default Mistral model from
devstral-medium-latesttomistral-medium-latest, because Mistral retired Devstral and the model catalog no longer lists it - Changed
after_provider_responseto also fire 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 andretry-afterof rate-limited requests (#12376) - Changed first-time setup to show the colored pi logo and only ask about analytics; the theme defaults to the system theme, which follows the terminal's colors
Fixed
- Fixed selecting the
xhighthinking level for Gemini 4 Hydrogen and Neon on thegoogleandgoogle-vertexproviders failing withUnsupported Google thinking level mapping ... xhigh -> xhigh(#12184) - Fixed sessions with very many entries after the last compaction (about 120k or more) failing to load with
RangeError: Maximum call stack size exceededwhen building the context (#12154) - Fixed
ctx.ui.pasteToEditor()andctx.ui.setEditorText()not repainting the editor when called outside terminal input handling, such as after anawaitin a command handler (#12295) - Fixed the bash tool returning
(no output)when the output ended with a line over 50KB followed by an empty line; it now shows the end of that line (#12350) - Fixed
/treenavigation adding the branch's prompts to Up-arrow history again on every navigation; prompts already in history now move to the most recent position instead of repeating (#12279) - Fixed closing the console window or terminal tab on Windows skipping
session_shutdownand leaving commands started by the bash tool running, for examplesleep 300frombash -c "sleep 300". pi now handles SIGHUP on Windows like on POSIX and waits fortaskkillto finish before it exits. Quitting with Ctrl+D or/quitwhile a!command runs, or ending RPC mode while abashcommand runs, no longer leaves that command running on Windows either - Fixed the
AuthStoragecoalesced-reload test failing intermittently on systems with coarse file timestamps (#12190) - Fixed the
thinkingLevelMapreference in the models.json schema and docs suggesting pi does not support thexhighandmaxthinking levels; it now says they are opt-in and only offered when mapped, and the model guide explains how to map thinking levels (#12281) - Fixed Mermaid diagrams wider than the terminal falling back to their source without explanation; a note now says how many columns the diagram needs (#12324)
- Fixed copies on Wayland silently failing when
wl-copyguessed a non-text MIME type from the copied text, for exampleapplication/x-rubyfor text starting withdef, which clipboard managers such as Klipper discard; pi now copies astext/plain(#12446 by @ttempaa) - Fixed pi crashing when the bash tool or a
!command could not write its full-output temp file, for example when/tmpwas full, over a per-user quota or not writable; both now keep the truncated output and say why the full output could not be saved. Opening the external editor and/sharenow report such failures instead of crashing (#10585) - Fixed
/loginshowing a provider as configured when its storedauth.jsonkey is a!commandthat fails, while requests failed withNo API key found./loginnow showsstored key did not resolve,getProviderAuthStatus()returns{ configured: false, source: "stored" }, and entering the same!commandagain in/loginruns it again instead of reusing the cached failure (#12164) - Fixed
pi updaterun from WSL through the Windows installation of pi rebuilding that installation with Linux npm; it now stops and says that running the Windows installation from WSL is unsupported (#12172) - Fixed right-click paste inserting the clipboard twice in Tabby on Windows, which pastes on right-click itself (#12406)
- Fixed dialogs shown before interactive mode starts, such as the project trust prompt, the missing session folder prompt and first-time setup, reporting no
blockedprogram status (OSC 7501). Blocked messages of multi-line dialog titles are now the first line only, for exampleTrust project folder?instead of the folder path and explanation. The project trust prompt and first-time setup reportkind=permission(#12439) - Fixed GitHub Copilot listing decision models the account cannot use, such as
microsoft-decision-1on accounts whose plan does not include it, where every call failed with HTTP 400. After/loginor the next token refresh, only the decision models in the account's Copilot model catalog are listed (#12395) - Fixed the bash tool on Windows not finding Git for Windows installed outside Program Files and running commands through the WSL launcher
System32\bash.exeinstead. pi now asks thegit.exeonPATHfor its installation (git var GIT_SHELL_PATH, Git 2.47+) and uses its Git Bash before otherbash.exeonPATH(#12408) - Fixed RPC mode, session loading, and llama.cpp model events rescanning an incomplete line on every chunk, which made large lines, such as messages with images, take time quadratic in their size. llama.cpp model events also accept lone CR line endings and CRLF split across chunks (#12224)
- Fixed
!command output coming back collapsed after compaction,/reload,/resumeor/treewhile ctrl+o was set to expanded (#12426, #12427 by @acmerfight) - Fixed more temporary provider failures not being retried automatically: Cloudflare HTTP 525, gateway "provider is temporarily unavailable" and partial-response errors, Anthropic
api_errorevents during streaming, OpenRouter empty responses and stops without output, streams ending withfinish_reason: "error", and "request rate increased too quickly" throttling (#12206, #12227, #12240, #12407) - Fixed unrelated request errors whose code contains
request_too_largeinside a longer identifier, such asplugin_request_too_large, triggering compact-and-retry as if the context overflowed (#12343, #12438 by @muyiyr) - Fixed HTTP 400 with thinking
offon Claude Sonnet 5.5 through GitHub Copilot, and on Claude Opus 5.5 and Sonnet 5.5 through Cloudflare AI Gateway and Vercel AI Gateway; selectingoffon those models now uses the lowest supported level (#12429) - Fixed Gemini 3+ models whose IDs carry a prefix, such as
vendor-gemini-4-argon, being treated as older Gemini models: they now get strict tools, tool-call IDs, and images inside function responses (#12321) - Fixed Google prompt blocks being reported and retried as incomplete streams; the error now includes the block reason and safety ratings (#12330)
- Fixed
openai-codexstarting GPT-6 requests atmediumregardless of the selected thinking level (#12361) - Fixed GPT-6.2 dropping earlier reasoning as
prefix_mismatchafter the OpenAI Codex WebSocket connection expired (#12367) - Fixed Amazon Bedrock requests hanging behind
HTTPS_PROXYwith AWS SSO profiles (#12353) - Fixed HTTP 400 after tool calls without text on Cloudflare Workers AI's GPT-OSS 120B and 20B, Granite 4.0 H Micro, and Llama 3.3 70B Instruct FP8 Fast (#12194)
- Fixed HTTP 400 for non-strict Anthropic tools with Draft 7 tuples (#12212)
- Fixed OpenAI Decisions usage dropping cache read and write tokens (#12264)
- Fixed extension providers with
fetchModelsmaking model lookups quadratic in catalog size, which blocked pi for about a second with ~10k models (#12311) - Fixed the model list still offering models their providers shut down:
gpt-5-chat-latestonopenaiandazure, Groq'sllama-3.1-8b-instant,llama-3.3-70b-versatileandqwen/qwen3.6-27b, and the undocumentedmistral-medium-3.5(#12202) - Fixed Markdown after an unclosed
$before a number, such as+$50, rendering as raw text for the rest of the paragraph (#12389 by @wuhaoyujerry) - Fixed rendering a bare URL that runs into a multi-megabyte line exhausting the heap in terminals with OSC 8 hyperlinks (#12416)
- Fixed MCP requests to servers that echo request IDs as strings timing out, and large MCP Streamable HTTP events blocking pi for seconds (#12205, #12224)