Pi 1.6.1
New version of pi. Download from npm or view release on GitHub.
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