Artifact 28d123681aa417c6af2a7f9dd97b49f0ab99e4572b4122e7bada481d23d6f651:
- File
docs/manual/differences-from-pi.md
— part of check-in
[f99ea5c3ff]
at
2026-11-22 11:08:00
on branch ghostty-fixes
— tui: consume terminal replies, pick light or dark from OSC 11, signal when a reply is ready
The decoder consumes OSC, DCS, APC, PM and SOS replies while a probe is outstanding and every private CSI reply (DA1, DA2, DECRQM, kitty flags, colour scheme reports) always, so an answer never reaches the editor as an Escape and typed text. At start pic asks for the background colour and DA1, waits up to 150 ms for DA1, and keeps the reply window open for a second; the answer decides system and light/dark themes ahead of COLORFGBG. Focus reports (DECSET 1004) gate a BEL plus OSC 9 (OSC 777 in foot and VTE) when a turn ends; the notifyWhenDone setting turns it off. (user: dmestas, size: 2864) [annotate] [blame] [check-ins using] [more...]
# Differences from Pi pic does what Pi does. Where it does something differently, or leaves something out, it is listed here. ## Sessions and state - A session is a conversation in the journal, not a file; `pic export --pi` writes Pi session lines when you need them. - pic has no extensions and no subscription login. - There is no `--resume` or `-r`: continue the latest conversation with `-c`, another with `--session ID`, or pick one with `/resume` in the terminal interface. - `/import` and `pic import` keep the text of a Pi session's messages, not its tool calls, images or other entries. - Settings are pic's own, in `~/.pic/pic.sqlite`; there are no project-level settings files. ## Tools - `write` replaces a file unconditionally in Pi. In pic it is refused once, with the file's current text, when another conversation running in the same project changed the file after this one last saw it; writing again replaces it ([tools](tools.md#a-file-another-conversation-changed)). It cannot happen with one conversation at a time. ## Modes - `--mode json` is refused: pic's JSON events come with `--json`. `--mode rpc` is the only mode besides the default. - pic has no MCP client: no `/mcp` and no `pi mcp`. ## RPC mode Where pic differs: a session is a conversation in the journal, so `sessionFile` is left out, `switch_session` takes a conversation id (or a file `pic export --pi` wrote) as `sessionPath`, and `get_entries` and `get_tree` cover the conversation's own path; a model or thinking change applies from the next request; `set_auto_retry` is saved as Pi's `retry.enabled`, which only RPC mode reads. pic has no extensions or subscription login, so `extension_ui_response`, `login` and `logout` are answered with an error that says so. ## The terminal interface - Images are attached and sent, but not drawn inline in the transcript. - Some default keys are Claude Code's rather than Pi's; [the key reference](../reference/keys.md) lists them with the reasons. - pic warns about a key two actions claim; Pi detects the conflict but shows no message. - Transcript search edits the query at its end only, its arrows are not clickable, and case folding covers ASCII, Latin, Greek and Cyrillic ([the terminal interface](tui.md#transcript-search-fullscreen)). - pic does not generate Pi's terminal-palette `system` theme ([themes](themes.md)). - `system` and `light/dark` ask the terminal for its background colour before falling back to Pi's `COLORFGBG` rule ([themes](themes.md)). - When a reply is ready and the window is not focused, pic rings the bell and asks for a desktop notification; Pi sends neither ([the terminal interface](tui.md#when-a-reply-is-ready)). ## Benchmarks - Trial labels have no place on a message in Pi's session format, so the Pi export leaves them out ([benchmarks](benchmarks.md)).