Release notes
Oh My Pi v19.4.2
@oh-my-pi/pi-agent-core
Breaking Changes
- Tool calls in the same assistant message now start concurrently.
AgentTool.concurrencyandresolveToolConcurrencyhave been removed. Tools that depend on earlier calls should replacectx.toolCall.earlierEffectsSettledwithctx.toolCall.earlierSettled(matches). It waits for all matching earlier calls to finish, never rejects, and returnsundefinedif none match. - Speculative execution now runs only through tool stream sessions.
ToolSpeculationPolicy.finalizedhas been removed, andToolSpeculationPolicy.streamis required.SpeculativeOperationCoordinatornow takes only the config;closeanddiscardForMessageno longer accept an outcome, andclosereplacesdiscardAll. ItsadmitFinalized,admit,claim,finalizeAdmissions,settleAdmissions,directExecutionArgsFor,discardChildren,ineligible,register,isRunning,onIdle,size, andmaxInFlightmembers have been removed. SpeculativeExecutionHostandSpeculativeLaunchAuthorizer(formerlySpeculativeOperationSink) now require onlyauthorizeLaunch. The host no longer exposesauthorize,captureEvidence,validate,commit,discard, orclose, andSpeculativeToolExecutionConfigno longer acceptsmaxInFlightoronTelemetry.ToolSpeculationAssessmentContexthas been renamed toToolSpeculationFinalizeContext.- Removed speculation exports
normalizeSpeculationEffect,createExecutionFingerprint,SPECULATIVE_STREAM_SESSION,SpeculativeRawOutcome,CoerceToolResult,SpeculativeResourceAccess,ToolSpeculationEffect,ToolSpeculationAssessment,ToolSpeculationExecutionContext,ToolSpeculationCommitContext,ToolSpeculationDiscardContext,SpeculativePhysicalOutcome,SpeculativeOperationContext,SpeculativeCommitContext,SpeculativeDiscardContext,SpeculativeCommitDecision,SpeculativeChildDefinition,SpeculativeChildHandle, andSpeculativeToolTelemetry. Also removedToolCallContext.hasActiveSpeculation,ToolSpeculationStreamSession.contextIndependent, andSpeculativeAuthorization.deferBeforeToolCall.
Added
- Tools can declare a
read,write, orexeceffect throughAgentTool.effect. UseresolveToolEffect(tool, args)to resolve the effect from that declaration or the approval tier for the supplied arguments. If neither provides an effect, it defaults toexec; if the approval check throws, it useswrite. TheearlierSettledpredicate receivesEarlierToolCallrecords withid,name, andeffect, so tools can wait only for calls they depend on.
Fixed
- Queued peer IRC messages now raise
ToolCallContext.steeringSignalfor running tools even withinterruptMode: "wait". The mode still controls when steering takes effect. - Context estimates now include replayed GitHub Copilot reasoning summaries but exclude encrypted reasoning state (#19989 by @ashtacore).
@oh-my-pi/pi-ai
Breaking Changes
- Replace the MCP concurrency classifier in
CursorExecHandlerswithmcpEffect(call). Return the call’sToolEffect, orundefinedif the call does not execute anything. withThinkingLoopGuardnow takes the requestcontext, and its dispatch receives(context, options);guardThinkingLoopStreamwas removed.completeandcompleteSimpleno longer re-sample a request that ends in a thinking-loop error, andcompleteSimpleno longer takesonAttempt. PassonAttempttoretryTransientCompletionto see every attempt, including failed ones it retries.- OpenAI-compatible requests omit
top_kunless the route advertises it orcompat.samplingParametersexplicitly includes it.
Added
- The
chat-templatethinking format now sendsthinkingandenable_thinkingtogether inchat_template_kwargs(bothfalseto turn thinking off), so DeepSeek- and Qwen-style templates on vLLM/SGLang read the same switch; the templatereasoning_effortis skipped when the model omits effort. - Thinking-off requests for chat-completions models marked
thinking.dialectUnverifiedprobe the off encodings concurrently: the resolved one,reasoning_effort: "none",chat_template_kwargsthinking/enable_thinkingfalse, top-levelenable_thinking: false, andreasoning: { enabled: false }. The first encoding that is accepted without reasoning is cached and sent. Effort requests probe the on format within the model's known levels. Requests withforceReasoningOffnever probe and use only cached results. - Export
ToolEffectandeffectWaitsForso callers can determine which earlier tool calls in the same message must finish before a call can run. usage.reports()now estimates quota status for providers without a usage endpoint. Accounts that hit a usage limit are shown as exhausted until the provider’s stated reset time; other accounts are shown at 0% used while a sibling account is blocked.
Changed
- Cursor now schedules tool calls like local execution: reads can run alongside other reads, shell calls can run alongside other shell calls, reads wait for earlier shell calls, and file writes run exclusively in call order.
- A detected thinking loop no longer fails the request: the reasoning is cut where the repetition began and the turn continues from it in a follow-up request with the same options, so the prompt cache still applies. The request fails only if the follow-up loops too.
- A repetition stop reported by the provider is continued the same way, as a fresh follow-up with the same notice.
- Gemini reasoning that writes 64 consecutive planning headers without a tool call is cut and continued with a reminder to call a tool, keeping the reasoning. Turn this off with
loopGuard.toolCallReminder: false.
Fixed
- Unverified models no longer repeat all reasoning-effort checks before every turn when one tier fails temporarily. Verified tiers are remembered for 30 minutes (#21457).
- Codex and OpenAI Responses now count cache-write tokens correctly when the provider reports them only in per-TTL breakdowns (#20952, #20955 by @koeria).
- Tool-call arguments now appear as they stream on OpenAI-compatible Chat Completions hosts, so tool cards update live and speculative subagent launches can start sooner (#17551, #19960 by @JamieJ5926).
- Claude usage polling now checks each account only once per cycle, regardless of API URL format. A rate-limit response pauses polling for all accounts on that endpoint across sessions for the server’s
Retry-Afterinterval (#16950). - Fixed request validation errors when setting reasoning effort on Kiro GPT models (#21332).
…