Release notes
Oh My Pi v19.3.0
@oh-my-pi/pi-agent-core
Added
- Added
Agent.inheritToolDescriptions()andAgent.normalizedTools()so forked agents can reuse their parent’s prompt cache when tool descriptions differ only in wording. - Added
CompactionSettings.summaryMaxTokensto control the output token budget for regular compaction summaries. Compaction preserves history that fits alongside the previous summary and the requested output budget (#18688).
Changed
- Capped the default reserve-based compaction threshold at 690,000 tokens for large context windows. Explicit percentage and fixed thresholds, as well as
baseWindowTokensoverrides, remain uncapped.
Fixed
- Turn-end hooks can now identify calls that did not name a tool through
AgentTurnEndContext.unresolvedToolCallIds(#10876). generateHandoffFromContextnow sets an output limit so handoffs cannot stream indefinitely on servers without their own limit. Handoffs that reach the limit without finishing report an incomplete-output error (#18031).- Reduced authentication-gateway request sizes by excluding internal host state from tool definitions.
- OpenTelemetry chat spans now report the model that actually served the response.
- Fixed shake recovery increasing context size by replacing tool results that were smaller than the replacement text (#7204).
- Fixed context token counts used by the status line and compaction to include
$Python output,@filementions, and terminal images from!commands, while excluding!!output that is not sent to the model (#20834 by @sjawhar). - Fixed token counting failing on stored custom messages whose content is neither text nor content blocks (#20834 by @sjawhar).
- Compaction now stops in-flight summary requests and avoids sending new ones after cancellation or failure, including during split-turn compaction (#20713 by @sjawhar, #20887 by @sjawhar).
@oh-my-pi/pi-ai
Breaking Changes
- Removed
KnownProviderandOAuthProvider. UseProviderandOAuthProviderId, respectively; provider IDs are plain strings. - Rename OpenAI
promptCache.breakpointfromlatest-stable-messagetomessage-boundariesin your configuration. Explicit caching now marks the leading instructions, each user message, and each consecutive group of tool outputs so later requests can reuse cached prefixes. Nested gateway cache markers are rejected (#12880 by @ZenAlexa). - Import the
SPEECH_FORMATSvalue from@oh-my-pi/pi-catalog/types. TheSpeechFormattype is still exported by this package (#19183 by @Xytronix).
Added
- Added encryption at rest for SQLite credentials, backed by the OS credential vault. Set
encrypt: trueonSqliteAuthCredentialStore.open()or.unlock()to enable it, orencrypt: falseto decrypt existing credentials and stop using the vault. The"auto"mode preserves an existing store’s mode and encrypts a new store only if the vault is available without prompting. Localagent.dbuses"auto"unless overridden byauth.encryptorOMP_AUTH_ENCRYPT. macOS builds without a Team ID signature do not access the vault. omp usagenow reports Venice USD and DIEM balances, available bundled credits, and the DIEM epoch reset with a regular API key (#20701 by @dagurval).- Added xAI speech-to-text transcription (
xai-stt), including through the authentication gateway (#19184 by @Xytronix). - Mock provider responses can set
upstreamModelto report a serving model different from the one requested (#20466 by @byhow). - Devin models now support the
priorityservice tier for faster inference at the corresponding priority price. synthesizeSpeechuses the model’s configured voice when none is requested. UsespeechModelSupportsFormatto check which audio formats a model supports viaModel.speechFormats(#19183 by @Xytronix).- Added
kimi-code-globalsupport for streaming and quota reporting through Kimi Code’s global region (#15889 by @z80dev, #20509 by @digi4care). - Added the
onDiscardedAttemptstream callback to track attempts discarded during safe retries that may still incur charges. Attempts with neither token usage nor charges are omitted (#20667, #20806 by @wapenshaw). - Factory Droid now supports
xhighthinking on Gemini models that offer it, such as Gemini 4 Neon (#19841). - Set
PI_ANTHROPIC_OAUTH_CALLBACK_PORTto override the Anthropic OAuth callback port. The default is54545; use0to select a free port automatically (#14135). - Added the
sign-outprovider hook andOAuthApi.signOut. Removing a login now runs the provider’s hook to clear secrets stored outside the credential store and revoke the OAuth grant.
Changed
- GitHub Copilot now distinguishes AI-credit billing from premium-request billing. Claude and GPT replies record server-reported AI-credit charges and their token-type breakdown in
usage.aiu, or setusage.aiuMissingwhen no charge was reported. AI-credit accounts show “AI Credits” in quota reports and omitusage.premiumRequestsestimates; request-billed accounts retain their existing reporting, and accounts with unknown billing still retain the estimate (#20667, #20806 by @wapenshaw, #20807 by @wapenshaw). - GitHub Copilot’s
gpt-6.2-solnow defaults to detailed reasoning summaries to avoid blank summaries. Explicit settings still take precedence (#20804 by @wapenshaw). - xAI text-to-speech now supports configurable playback speed, PCM output, and inputs up to 60,000 characters.
- The tool-call loop guard now catches repeated calls that differ only in numeric arguments when the assistant repeats its text, without interrupting pagination or work across distinct file paths (#13426 by @nick-maderight).
Fixed
- Codex accounts with only a weekly quota are no longer deprioritized by the 85% short-window usage guard (#20958).
…