Repository navigation
chore(deps): upgrade Pi kernel packages from 1.1.0 to 1.3.0 - #1786
Merged
Merged
Conversation
Move the five direct Pi dependencies (agent-runtime's pi-agent-core, pi-ai and pi-coding-agent; Desktop's pi-ai and pi-mcp) to exactly 1.3.0 so the release group stays internally consistent. The three Desktop compatibility patches are rebased onto the published 1.3.0 tarballs, preserving hosted-search streaming, bounded Anthropic OAuth handling, DeepSeek reasoning replay, local request errors, and native session estimation. Adopt the upstream behavior changes that the upgrade makes reachable: foreign model thinking is no longer replayed, malformed final tool-argument JSON is rejected before Host execution, and the extension startup event carries the user discriminator the new SDK expects. Desktop's own command-argument parser gains the same empty-argument handling so quoted blanks no longer shift later positional arguments. Anthropic strict-tool fallback now re-enters local request preparation on each attempt, keeping callback and serialization failures classified instead of leaking raw payloads. Provider projection gaps that this upgrade does not close are recorded as deliberate follow-up work rather than silently enabled.
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.
Scope
Move the five direct Pi dependencies to exactly 1.3.0:
packages/agent-runtime:pi-agent-core,pi-ai,pi-coding-agentapps/desktop:pi-ai,pi-mcpThe seven-package release group stays aligned through the lockfile. No Host
protocol, database schema, persisted provider endpoint, permission policy,
extension VERSION marker, or storage ownership change.
Compatibility work
hosted-search streaming/replay/estimation, bounded Anthropic OAuth handling,
DeepSeek reasoning replay and endpoint-scoped system-message capability, local
request errors, native session context estimation and image degradation.
each fallback attempt now re-enters local request preparation so callback and
serialization failures stay classified and never expose raw payloads.
requiresNonEmptyReasoningReplaymoved into the new provider compat schema.its codec-only tests; real stream-decoder, hosted-search consumer, and
final-message coverage kept.
malformed final tool JSON never reaches Host execution, extension startup
event carries the user discriminator.
the upstream 1.3 fix, so an empty quoted argument no longer shifts later
positionals.
Explicitly unchanged
Desktop still owns model/endpoint projection, retry policy, MCP ownership, and
compaction.
ToolCall.argumentsError, provider-native effort replay,samplingParams/promptCache/inputLimitsforwarding, the Kimi For CodingAnthropic preset, the OpenRouter models.dev route, and the OpenCode
/zenrouteare intentionally untouched. Details and file locations are in
docs/project/pi-130-adoption.md.Validation
pnpm build:js, Desktop typecheck,pnpm lint,pnpm docs:check(581 pages),check-architecture,check:agent-policy,check:pr-base— passed.pnpm check:pi-dependencies,pnpm check:pi-patches,pi-patch-hashfixturetests — passed.
pnpm -r --workspace-concurrency=1 --if-present test— exit 0. Runtime 102files / 1,412 tests; Desktop 4,134 passed; pi-host 61 passed / 1 platform skip.
test:e2e:provider-api-styleis flaky under parallel load (two runs stopped atthe no-auth save and StepFun selection steps). Its fixture and renderer source
are unchanged from
main; all 26 scenarios pass serially. Recorded, notclaimed as a pass.
changed.