piagent_
← /news
Nov 27, 2026covers: Nov 26, 2026 – Nov 27, 2026release

pi v1.7.0 resumes sessions from the terminal, brings image generation to codemode, and drops install telemetry

pi v1.7.0 published on November 27 at 17:01:43 UTC (release page timestamp). The notes carry three New Features, one Breaking Change, five Added items, four Changed items, and eleven Fixed items. The merge window reconciles cleanly: twenty-four PRs have merged since v1.6.1’s cut, sixteen of them covered by the previous entry, and seven of the remaining eight ride this release — verified against the tag, they are the --agent-dir flag (#12595), the OSC 7577 restriction-flag replay (#12602), the Copilot reasoning replay (#12505), the Kitty-image pair (#12596, #12597), the terminal-reset docs (#12601), and the pi-image API (#12535, which rode the release without a notes mention). #12628, a docs PR merged two seconds after the release page published, is main-only so far. All nineteen PR numbers the previous entry named verified inside v1.7.0, so its sixteen main-only merges have found their release.

The New Features section covers terminal session resume, image generation in codemode, and GitHub Copilot prompt caching. Terminals that set OSC7577_TOKEN can reopen the current pi session after a restart with its original profile, tool restrictions, and instructions. Codemode can now generate images with Radius, and models.generateImages() accepts an optional third argument { aspectRatio, size } when using OpenRouter image models. Copilot prompt caches survive thinking-level changes on supported Claude 5.x and GPT-6 models, supported Claude 5.x models also keep the cache when tools change, and Copilot Claude models support cache warming.

The Breaking Change removes telemetry reporting for new installs and updates: the /api/report-install endpoint, the enableInstallTelemetry setting together with its SettingsManager accessors, and the PI_TELEMETRY environment variable are all gone. The remainder of Added fleshes out the resume protocol and image work: interactive mode reports the resume command pi --session <id> for the current session, and pi strips OSC7577_TOKEN from the environment of every process it starts; --agent-dir <dir> arrives as the command-line form of PI_CODING_AGENT_DIR, included in the printed and reported resume command when the config directory is not ~/.pi/agent, so a per-project profile comes back with its own settings and auth; the resume command now repeats, as typed, the restriction and resource flags pi was started with (--tools, --no-extensions, -e, --skill, --system-prompt and similar), so a terminal cannot resume a session with more tools or instructions than it had; and Radius image and classifier models join the built-in catalog alongside provider discovery.

Changed is mostly upstream model churn: the default model for cloudflare-workers-ai and cloudflare-ai-gateway moves to @cf/zai-org/glm-5.3 because Cloudflare deprecated Workers AI Kimi K2.6 and K2.7 Code; the ant-ling default moves from the retired Ring-2.6-1T to Ling-3.1-flash, with thinkingFormat: "ant-ling" kept as a deprecated alias for "deepseek" (#11800, by lvisei); the retired qwen4-max-preview is replaced by qwen4-max on Qwen Token Plan Individual; and the Copilot cache-preservation work lands here too, with GPT-5.3 Codex and MAI-Code receiving mid-conversation system messages where they take effect (issue #12316).

The Fixed section holds eleven items. Highlights: a console Ctrl+Break on Windows ends pi without restoring the terminal — pi now shuts down normally on it, including when a child process in the same console sends it (#12133); print, JSON, and RPC modes no longer swallow an invalid models.json — a typo like "contextWindow": "32000" surfaces as a warning in diagnostics from createAgentSessionServices() in every mode and SDK runtime, instead of appearing only as Model "..." not found or No API key found (#12523, by acmerfight, as reported in #12522); app.message.followUp (Alt+Enter) no longer queues half-typed text past an open autocomplete menu; running ! commands show the configured app.interrupt key as their cancel shortcut (#12518); !! commands stop counting toward the context estimate, so large outputs no longer trigger early compaction or crowd out recent history (#12513); Kitty images stop disappearing in Konsole, and regular mode stops clearing the screen and scrollback when an appended image extends past the bottom (#12548); Amazon Bedrock Kimi K3.1 and GLM 5.3 respect the selected thinking level, and Kimi K3/K3.1 no longer send earlier reasoning back to Bedrock in ways that could fail later turns (#12462); and Copilot models on openai-completions keep their reasoning state between turns (#12418). The rest: /llama “Download model” grabbing typed text instead of the highlighted result on owner/repository-shaped queries (#12465), key hints naming the wrong or hardcoded keybinding across the extension editor, session rename, /hotkeys, and settings surfaces, and codemode image generation reporting success for failed OpenRouter responses — image and classifier usage now includes reasoning tokens, image usage distinguishes image output tokens, and OpenRouter costs use the reported total or the model’s image output rate when estimating.

source: https://github.com/earendil-works/pi/releases/tag/v1.7.0