Skip to content

keep tool results - #4

Merged
maks-ivanov merged 1 commit into
mainfrom
reduce-logging
Apr 28, 2026
Merged

keep tool results#4
maks-ivanov merged 1 commit into
mainfrom
reduce-logging

Conversation

@maks-ivanov

@maks-ivanov maks-ivanov commented Apr 28, 2026

Copy link
Copy Markdown

Note

Medium Risk
Changes the pi --mode json output contract by emitting completed assistant messages and toolResult messages, which may break consumers that relied on the previous assistant-only/turn-end behavior.

Overview
pi --mode json now outputs a compact JSONL transcript of completed messages, emitting message_end records for user, assistant, and toolResult roles (instead of relying on turn_end for assistant turns).

Docs and changelog are updated to describe the new transcript semantics (assistant message that requested a tool followed by a toolResult), and tests are adjusted to assert the new ordering and inclusion of tool results.

Reviewed by Cursor Bugbot for commit e44041c. Bugbot is set up for automated code reviews on this repo. Configure here.

@maks-ivanov
maks-ivanov merged commit b9f0a5d into main Apr 28, 2026
4 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