[pi] pi-coding-agent to v0.87.0 - #51
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/pi-coding-agent
branch
from
September 21, 2026 13:46
ee5076c to
72d7207
Compare
renovate
Bot
force-pushed
the
renovate/pi-coding-agent
branch
from
September 22, 2026 23:01
72d7207 to
ee1d923
Compare
renovate
Bot
force-pushed
the
renovate/pi-coding-agent
branch
from
September 23, 2026 04:22
ee1d923 to
75d0226
Compare
renovate
Bot
force-pushed
the
renovate/pi-coding-agent
branch
from
September 23, 2026 11:51
75d0226 to
f1183b1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.85.1→0.87.00.87.1v0.85.1→v0.87.0v0.87.1Release Notes
earendil-works/pi (@earendil-works/pi-coding-agent)
v0.87.0Compare Source
New Features
context_with_systemfor per-request system-message transformations. Seecontext_with_system.read, and tool-result images. See Image Input Limits.Breaking Changes
shouldStopAfterTurnagent option. UsefinishTurnand return{ action: "end" }instead.finishTurnruns beforeturn_endbut applies the decision afterward, and it also receives error and aborted responses; migrate normal-response predicates by returningundefinedfor those hard exits. See the@earendil-works/pi-agent-corechangelog for a complete before-and-after example.ContextEditEntryto the exportedSessionEntryunion. TypeScript consumers with exhaustive entry switches must handlecontext_edit; usereplacement: nullfor omission and a content replacement otherwise.SessionManagercanonical forAgentSessionprovider context. Assigningsession.agent.state.messagesno longer replaces future request history; restore withSessionManager.inMemory(cwd, { id }, entries), navigate withsession.navigateTree(), or append throughsession.sessionManagerand callsession.refreshContext().TurnEndEventwith required boundary fields and addedAgentBeforeSettleEventto the exportedExtensionEventunion. Consumers constructing events or exhaustively switching onExtensionEventmust handle the new shapes.ExtensionRunner.emit()no longer acceptsturn_end; host integrations dispatch actionable boundaries withemitBoundary(baseEvent, buildContext).agent_settledhandlers until all settled handlers finish. Handlers still observectx.isIdle() === true, but no longer see a reentrantagent_startduring the same notification dispatch.Added
sessionManager.appendContextEdit(entryId, null)omits one message from future provider context without changing raw history, usage, or UI history.turn_endandagent_before_settleextension boundaries. Return{ entries: [...event.entries, draft], continue: true }to persist structural entries in order and ensure one next provider request without changing steering or follow-up scheduling.sessionManager.appendCompaction(summary, null, tokensBefore)stores the compaction's own ID as its kept boundary.context_with_systemextension event, which runs aftercontexthandlers on the full transcript including system messages and sends its result verbatim. Seecontext_with_system.inputLimits.images.resizeinmodels.json, applied to file attachments, image reads, and tool-result images (#9631).Fixed
contexthandlers that filter or slice messages dropping the prompt and tool declarations, which after extension-driven compaction left requests without built-in tools or made Codex emit raw tool-call text. Handlers no longer see system messages; Pi restores the prompt and tool state after they run. Seecontext(#9789, #9822)./bugallowing uploads in offline mode while preserving local zip exports (#9841 by @christianklotz).GIFbeing misclassified as images and omitted fromreadand CLI@fileinput (#9755).v0.86.1Compare Source
New Features
/login metaor useMETA_API_KEYto access Muse Spark models. See Meta (Muse subscription).Added
/login metawith automatic Model API key refresh, plusMETA_API_KEYsupport (#9096 by @xl0).Changed
Fixed
/bugdescriptions dropping line breaks from pasted diagnostics./bughints appearing for user cancellations and retryable provider failures such as service unavailability.Prompt too longerrors not being recognized as context overflow (#9805).v0.86.0Compare Source
New Features
/bugusing redacted diagnostics, optional transcripts, or exported ZIP archives. See Reporting Bugs.before_agent_start.Breaking Changes
Contextto normalizedTranscriptContextvalues. Custom providers must read system prompts and tool declarations fromcontext.messageswithgetCurrentSystemPrompt()andgetCurrentTools(). See Custom Streaming API.ToolCall.argumentsandToolResultMessage.detailsto JSON-compatible values, changedToolResultMessageinto a conditional type, and madeJsonValuearrays readonly.user_bashnow fails closed: errors or invalid defined results abort the command without invoking later handlers or executing locally. Returnundefinedto continue propagation; otherwise return{ operations }or{ result }(#9068).Added
before_agent_startand Entry Types (#9548).ToolSearchortool_searchas the loader name for prompt-prefix deferral (#9323).ctx.modelRegistry.stream()andstreamSimple()for extension model calls through configured providers with resolved authentication (#8964).reserveTokensandkeepRecentTokenssettings throughcompaction.modelOverrides, with ordinary compaction settings as fallback (#8133).compat.allowedFallbackModelsconfiguration for overriding or disabling Anthropic server-side fallback models (#9294).pi.on()so extensions can drop event handlers. Handlers added or removed during a dispatch apply to later dispatches, not the current one (#8967)./bug [description]to report a bug to the Pi developers. The report bundles environment, model, provider, extension, and settings metadata (secrets redacted), assistant message diagnostics from the session, optionally the session transcript, or a model-written summary of what went wrong instead. It is uploaded to Radius (no login required; attributed when logged in) or exported as a zip archive, and the report id is recorded in the session as api.bug-reportentry. Crashes are recorded in~/.pi/agent/crashes.json, announced once on the next start, and attached to the next report; unexplained errors and exhausted retries point at/bugonce per session./sessiondiagnostics, transcript notices, and thecache_warming_decisionextension event. See Cache Warming (#9668).Changed
--resumesession results appear progressively, using file modification times to prioritize all-folder loading and cancelling outstanding transcript reads after selection.--continuestartup time by checking candidate session headers in modification-time order and stopping after the newest matching session.read,bash,powershell,edit, andwritetools, without requiringPI_EXPERIMENTAL. Extensions can re-register tool definitions withconstrainedSampling: false.Fixed
EventStreamevents (#9055).reasoning_effortfor all reasoning-capablemistral-medium-*model IDs instead of the unsupportedprompt_mode(#8700).x-opencode-sessionfromsessionIdacross all supported API adapters (#9326).x-session-idfromsessionIdfor Chat Completions and Anthropic Messages models when prompt caching is enabled (#9102).deepseek-flashfor DeepSeek V4.1 Flash instead of retired Flash aliases, and refreshed DeepSeek pricing metadata (#9423).reasoning_effortinstead of the ignoredprompt_mode(#9375).sessionIdfor automatic prompt-cache routing (#9629).retry.maxAgentDelayMs(60s by default) so long retry runs stay responsive during prolonged transient outages (#8826).steerandfollow_upcommands bypassing extensioninputhandlers (#8718).balanced, falling back to the first available Radius model when needed.before_agent_starthandlers returningsystemPrompt(andforceSystemPrompt) on models with mid-conversation system messages: the forced prompt is now sent as the provider's leading system prompt instead of being appended as a section patch after the original prompt.enable_thinkingchat templates ignoring Pi's thinking level (#9528).skill:prefix instead of the bare skill name (#9120 by @yearth).caseslayouts around surrounding equations, and vertically laid out unsupported and nested display scripts (#8827, #9564, #7929).Removed
earendil-works/pi (pi)
v0.87.0Compare Source
New Features
context_with_systemfor per-request system-message transformations. Seecontext_with_system.read, and tool-result images. See Image Input Limits.Breaking Changes
shouldStopAfterTurnagent option. UsefinishTurnand return{ action: "end" }instead.finishTurnruns beforeturn_endbut applies the decision afterward, and it also receives error and aborted responses; migrate normal-response predicates by returningundefinedfor those hard exits. See the@earendil-works/pi-agent-corechangelog for a complete before-and-after example.ContextEditEntryto the exportedSessionEntryunion. TypeScript consumers with exhaustive entry switches must handlecontext_edit; usereplacement: nullfor omission and a content replacement otherwise.SessionManagercanonical forAgentSessionprovider context. Assigningsession.agent.state.messagesno longer replaces future request history; restore withSessionManager.inMemory(cwd, { id }, entries), navigate withsession.navigateTree(), or append throughsession.sessionManagerand callsession.refreshContext().TurnEndEventwith required boundary fields and addedAgentBeforeSettleEventto the exportedExtensionEventunion. Consumers constructing events or exhaustively switching onExtensionEventmust handle the new shapes.ExtensionRunner.emit()no longer acceptsturn_end; host integrations dispatch actionable boundaries withemitBoundary(baseEvent, buildContext).agent_settledhandlers until all settled handlers finish. Handlers still observectx.isIdle() === true, but no longer see a reentrantagent_startduring the same notification dispatch.Added
sessionManager.appendContextEdit(entryId, null)omits one message from future provider context without changing raw history, usage, or UI history.turn_endandagent_before_settleextension boundaries. Return{ entries: [...event.entries, draft], continue: true }to persist structural entries in order and ensure one next provider request without changing steering or follow-up scheduling.sessionManager.appendCompaction(summary, null, tokensBefore)stores the compaction's own ID as its kept boundary.context_with_systemextension event, which runs aftercontexthandlers on the full transcript including system messages and sends its result verbatim. Seecontext_with_system.inputLimits.images.resizeinmodels.json, applied to file attachments, image reads, and tool-result images (#9631).Fixed
contexthandlers that filter or slice messages dropping the prompt and tool declarations, which after extension-driven compaction left requests without built-in tools or made Codex emit raw tool-call text. Handlers no longer see system messages; Pi restores the prompt and tool state after they run. Seecontext(#9789, #9822)./bugallowing uploads in offline mode while preserving local zip exports (#9841 by @christianklotz).GIFbeing misclassified as images and omitted fromreadand CLI@fileinput (#9755).v0.86.1Compare Source
New Features
/login metaor useMETA_API_KEYto access Muse Spark models. See Meta (Muse subscription).Added
/login metawith automatic Model API key refresh, plusMETA_API_KEYsupport (#9096 by @xl0).Changed
Fixed
/bugdescriptions dropping line breaks from pasted diagnostics./bughints appearing for user cancellations and retryable provider failures such as service unavailability.Prompt too longerrors not being recognized as context overflow (#9805).v0.86.0Compare Source
New Features
/bugusing redacted diagnostics, optional transcripts, or exported ZIP archives. See Reporting Bugs.before_agent_start.Breaking Changes
Contextto normalizedTranscriptContextvalues. Custom providers must read system prompts and tool declarations fromcontext.messageswithgetCurrentSystemPrompt()andgetCurrentTools(). See Custom Streaming API.ToolCall.argumentsandToolResultMessage.detailsto JSON-compatible values, changedToolResultMessageinto a conditional type, and madeJsonValuearrays readonly.user_bashnow fails closed: errors or invalid defined results abort the command without invoking later handlers or executing locally. Returnundefinedto continue propagation; otherwise return{ operations }or{ result }(#9068).Added
before_agent_startand Entry Types (#9548).ToolSearchortool_searchas the loader name for prompt-prefix deferral (#9323).ctx.modelRegistry.stream()andstreamSimple()for extension model calls through configured providers with resolved authentication (#8964).reserveTokensandkeepRecentTokenssettings throughcompaction.modelOverrides, with ordinary compaction settings as fallback (#8133).compat.allowedFallbackModelsconfiguration for overriding or disabling Anthropic server-side fallback models (#9294).pi.on()so extensions can drop event handlers. Handlers added or removed during a dispatch apply to later dispatches, not the current one (#8967)./bug [description]to report a bug to the Pi developers. The report bundles environment, model, provider, extension, and settings metadata (secrets redacted), assistant message diagnostics from the session, optionally the session transcript, or a model-written summary of what went wrong instead. It is uploaded to Radius (no login required; attributed when logged in) or exported as a zip archive, and the report id is recorded in the session as api.bug-reportentry. Crashes are recorded in~/.pi/agent/crashes.json, announced once on the next start, and attached to the next report; unexplained errors and exhausted retries point at/bugonce per session./sessiondiagnostics, transcript notices, and thecache_warming_decisionextension event. See Cache Warming (#9668).Changed
--resumesession results appear progressively, using file modification times to prioritize all-folder loading and cancelling outstanding transcript reads after selection.--continuestartup time by checking candidate session headers in modification-time order and stopping after the newest matching session.read,bash,powershell,edit, andwritetools, without requiringPI_EXPERIMENTAL. Extensions can re-register tool definitions withconstrainedSampling: false.Fixed
EventStreamevents (#9055).reasoning_effortfor all reasoning-capablemistral-medium-*model IDs instead of the unsupportedprompt_mode(#8700).x-opencode-sessionfromsessionIdacross all supported API adapters (#9326).x-session-idfromsessionIdfor Chat Completions and Anthropic Messages models when prompt caching is enabled (#9102).deepseek-flashfor DeepSeek V4.1 Flash instead of retired Flash aliases, and refreshed DeepSeek pricing metadata (#9423).reasoning_effortinstead of the ignoredprompt_mode(#9375).sessionIdfor automatic prompt-cache routing (#9629).retry.maxAgentDelayMs(60s by default) so long retry runs stay responsive during prolonged transient outages (#8826).steerandfollow_upcommands bypassing extensioninputhandlers (#8718).balanced, falling back to the first available Radius model when needed.before_agent_starthandlers returningsystemPrompt(andforceSystemPrompt) on models with mid-conversation system messages: the forced prompt is now sent as the provider's leading system prompt instead of being appended as a section patch after the original prompt.enable_thinkingchat templates ignoring Pi's thinking level (#9528).skill:prefix instead of the bare skill name (#9120 by @yearth).caseslayouts around surrounding equations, and vertically laid out unsupported and nested display scripts (#8827, #9564, #7929).Removed
Configuration
📅 Schedule: (UTC)
* 0-3 * * *)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.