Repository navigation
Zpi v0.2.3
Zpi v0.2.3
This release combines a more adaptable terminal workflow and safer session recovery with improvements to ACP integrations, tool-call validation, and interactive control. It also makes provider and tool failures clearer without claiming broader protocol or compatibility parity.
Highlights
-
Narrow-screen status bar. At phone-sized terminal widths the footer prioritizes the provider/model and context-window usage, hiding lower-priority workspace, token, and activity fields.
-
Folded multiline paste previews. Bracketed multiline pastes remain intact in the prompt buffer and are sent to the model in full, while the editor shows a compact line-count preview. Editing or moving within the pasted text reveals the full content. Slash-command completion remains available during active turns, and failed tool output can be folded without hiding its exit status.
-
Markdown in user messages. User-entered Markdown now receives the same lightweight terminal styling as assistant content, including inline code and fenced code blocks such as
context. -
Resume and fork sessions more reliably. Resuming restores the saved model and thinking level. When another Zpi process holds a session's exclusive writer lock, create an independent snapshot and continue in it:
zpi --fork-session /path/to/session.jsonl --session /path/to/company-session.jsonl zpi --session /path/to/company-session.jsonl
A fork contains the complete committed transcript and saved model/thinking selection as of the snapshot read. The source process remains untouched and can continue writing its own session. The two resulting sessions are independent; later changes do not synchronize between them.
-
ACP controls and slash commands. ACP clients receive model and reasoning-effort selectors, and available skill/prompt commands are advertised and handled through the session interface. Model/thinking selection remains effective across prompts in the same ACP process; settings cannot be changed during an active prompt.
-
Safer tool dispatch. Tool arguments are checked against a bounded JSON Schema subset before dispatch, across built-in, MCP, and native/plugin tools. If a provider returns an invalid call in a batch, the batch is rejected before any tool runs and each call receives a paired error result. This is not full JSON Schema support.
-
Improved TUI controls and feedback. Fullscreen conversations can preview edit diffs with clear added/removed line styling and expand the preview when needed. Existing queued follow-ups and Ctrl+S steering remain available while a turn is running.
-
Clearer diagnostics. Busy sessions now explain the fork workflow.
HttpConnectionClosing(peer/proxy closed before response headers) andRequestTimeout(Zpi's end-to-end request deadline expired) have distinct hints; the former alone does not establish that the configured timeout was too short.
Validation
Validated locally with Zig 0.17.0: unit tests, build, formatting, package fixture, and the offline CLI integration suite passed. The tagged release workflow built and published stripped archives for macOS arm64/x64 and Linux arm64/x64 (glibc and musl), each with a SHA-256 checksum. ACP and tool-schema coverage includes fixture tests; provider-backed behavior still depends on the configured service.