Release · Oh My Pi · can1357

Oh My Pi v19.4.2

What's new in Oh My Pi v19.4.2, released Dec 3, 2026 (). Newer: v19.4.4 (Dec 4, 2026)

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.concurrency and resolveToolConcurrency have been removed. Tools that depend on earlier calls should replace ctx.toolCall.earlierEffectsSettled with ctx.toolCall.earlierSettled(matches). It waits for all matching earlier calls to finish, never rejects, and returns undefined if none match.
  • Speculative execution now runs only through tool stream sessions. ToolSpeculationPolicy.finalized has been removed, and ToolSpeculationPolicy.stream is required. SpeculativeOperationCoordinator now takes only the config; close and discardForMessage no longer accept an outcome, and close replaces discardAll. Its admitFinalized, admit, claim, finalizeAdmissions, settleAdmissions, directExecutionArgsFor, discardChildren, ineligible, register, isRunning, onIdle, size, and maxInFlight members have been removed.
  • SpeculativeExecutionHost and SpeculativeLaunchAuthorizer (formerly SpeculativeOperationSink) now require only authorizeLaunch. The host no longer exposes authorize, captureEvidence, validate, commit, discard, or close, and SpeculativeToolExecutionConfig no longer accepts maxInFlight or onTelemetry. ToolSpeculationAssessmentContext has been renamed to ToolSpeculationFinalizeContext.
  • Removed speculation exports normalizeSpeculationEffect, createExecutionFingerprint, SPECULATIVE_STREAM_SESSION, SpeculativeRawOutcome, CoerceToolResult, SpeculativeResourceAccess, ToolSpeculationEffect, ToolSpeculationAssessment, ToolSpeculationExecutionContext, ToolSpeculationCommitContext, ToolSpeculationDiscardContext, SpeculativePhysicalOutcome, SpeculativeOperationContext, SpeculativeCommitContext, SpeculativeDiscardContext, SpeculativeCommitDecision, SpeculativeChildDefinition, SpeculativeChildHandle, and SpeculativeToolTelemetry. Also removed ToolCallContext.hasActiveSpeculation, ToolSpeculationStreamSession.contextIndependent, and SpeculativeAuthorization.deferBeforeToolCall.
Added
  • Tools can declare a read, write, or exec effect through AgentTool.effect. Use resolveToolEffect(tool, args) to resolve the effect from that declaration or the approval tier for the supplied arguments. If neither provides an effect, it defaults to exec; if the approval check throws, it uses write. The earlierSettled predicate receives EarlierToolCall records with id, name, and effect, so tools can wait only for calls they depend on.
Fixed
  • Queued peer IRC messages now raise ToolCallContext.steeringSignal for running tools even with interruptMode: "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 CursorExecHandlers with mcpEffect(call). Return the call’s ToolEffect, or undefined if the call does not execute anything.
  • withThinkingLoopGuard now takes the request context, and its dispatch receives (context, options); guardThinkingLoopStream was removed.
  • complete and completeSimple no longer re-sample a request that ends in a thinking-loop error, and completeSimple no longer takes onAttempt. Pass onAttempt to retryTransientCompletion to see every attempt, including failed ones it retries.
  • OpenAI-compatible requests omit top_k unless the route advertises it or compat.samplingParameters explicitly includes it.
Added
  • The chat-template thinking format now sends thinking and enable_thinking together in chat_template_kwargs (both false to turn thinking off), so DeepSeek- and Qwen-style templates on vLLM/SGLang read the same switch; the template reasoning_effort is skipped when the model omits effort.
  • Thinking-off requests for chat-completions models marked thinking.dialectUnverified probe the off encodings concurrently: the resolved one, reasoning_effort: "none", chat_template_kwargs thinking/enable_thinking false, top-level enable_thinking: false, and reasoning: { 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 with forceReasoningOff never probe and use only cached results.
  • Export ToolEffect and effectWaitsFor so 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-After interval (#16950).
  • Fixed request validation errors when setting reasoning effort on Kiro GPT models (#21332).

…