Release notes
Pi v1.6.1
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)
…