piagent_
← /news
Oct 19, 2026community

Four days after v1.3.0, pi merges four petrroll PRs: Windows shell discovery reworked, Rex terminal hyperlinks, and Copilot request-size recovery

All four pull requests pi merged on October 19, 2026 came from one contributor, petrroll. Two rework how pi finds a shell on Windows, one teaches the TUI the Rex terminal’s hyperlink protocol, and one routes a provider-side request-size failure into pi’s compaction recovery.

The Windows pair starts with #9504: shell validation now uses access(F_OK) everywhere instead of Node’s existsSync(), whose extra stat step can fail with EACCES on runnable Windows Store shell aliases (nodejs/node#36790). Unix already resolves to the same access check, so the change is a no-op there and the search order is unchanged; it aligns the coding agent with the pathExists check packages/durable’s Node environment module has used since harness-v2’s async refactor. #9501 unifies how pi locates Windows binaries — previously a mix of hardcoded paths, environment variables, and fallback chains — into one resolution from installation directories, documented in packages/coding-agent/docs/windows.md. Non-standard installs benefit: a custom folder, or a system on a drive other than C: — issue #9490 reported findPowerShell’s hardcoded C:\ paths failing on D:-drive-only systems, which the pull request credits as partial inspiration.

#11150 adds Rex to the TUI’s terminal detection: TERM_PROGRAM=rex now enables OSC 8 hyperlinks and truecolor, where Rex previously counted as an unknown terminal and fell back to plain text (url) links. Images stay off because Rex only partially implements the Kitty graphics protocol — no Unicode placeholders — and the Rex check runs before the outer-terminal checks so leaked variables like KITTY_WINDOW_ID cannot win. The change closes #11131 in packages/tui/src/terminal-image.ts — the file the issue pointed at.

#11016 widens what packages/ai counts as context overflow: an HTTP 413 answer now classifies as a request-size overflow, matched provider-agnostically from raw SDK errors and formatProviderError’s prefixed form. The trigger is GitHub Copilot, which answers requests above a byte-size limit with 413 failed to parse request — the author kept hitting it on sessions of a few dozen MB of pictures, and a request can exceed the byte limit even with zero token usage and a large context window. pi handles context overflow with compaction rather than retry, so an oversized request now recovers through the automatic path where /compact was the manual fix.

All four merges postdate the October 15 v1.3.0 tag, so the next release cut picks them up from main; the complete diffs live on the four pull request pages.

## Guides

source: https://github.com/earendil-works/pi/pull/11016