Skip to content

chore(deps): upgrade Pi runtime to 1.5.2 and adopt its features - #2413

Merged
vastsa merged 1 commit into
mainfrom
chore/pi-1-5-2-upgrade
Nov 18, 2026
Merged

vastsa merged 1 commit into
mainfrom
chore/pi-1-5-2-upgrade

Conversation

@vastsa

@vastsa vastsa commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Upgrade the Pi release group from 1.5.0 to 1.5.2 (1.5.1, 1.5.2).

  • Rebase the three pnpm patches; manual ports in the Anthropic adapter (message threads), clampMaxTokensToContext, and coding-agent compaction utils.
  • Delegates and compaction summaries pass disableContinuation: true so they do not replace the conversation's Anthropic message-thread state.
  • DesktopAgentRuntime.dispose() calls cleanupSessionResources(sessionId).
  • qwen-token-plan-individual-cn aliases the alibaba-token-plan-cn preset.
  • Tests follow upstream's session-id header rename and the 1.5.2 identity.

Details and validation: docs/project/pi-152-adoption.md. No persisted format, IPC, or Plugin SDK change. No real provider used.

Pin the Pi release group at 1.5.2 and rebase the pi-ai and
pi-coding-agent patches onto 1.5.1's Anthropic message threads, the
proportional output-limit margin, and the new compaction imports. The
Claude Code version hunk is dropped because 1.5.2 ships it upstream.

Desktop delegates and compaction summaries share the conversation's
session id for gateway affinity, so they now disable continuation and
leave the conversation's Anthropic thread intact. Runtime disposal
releases pi-ai's per-session resources, and the new
qwen-token-plan-individual-cn provider maps onto the existing China
Token Plan preset.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying pi-desktop with  Cloudflare Pages  Cloudflare Pages

Latest commit: 72254b8
Status: ✅  Deploy successful!
Preview URL: https://4985f97a.pi-desktop.pages.dev
Branch Preview URL: https://chore-pi-1-5-2-upgrade.pi-desktop.pages.dev

View logs

@vastsa
vastsa merged commit c52a93c into main Nov 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant