Skip to content

feat(cli): Add chat style preset to conversation print#578

Merged
JeanMertz merged 1 commit intomainfrom
prr144
Apr 17, 2026
Merged

feat(cli): Add chat style preset to conversation print#578
JeanMertz merged 1 commit intomainfrom
prr144

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

The brief style already hides reasoning and tool arguments, but still shows tool call headers. A chat style is now available that hides tool calls entirely, leaving only user and assistant messages visible — closer to a plain chat transcript.

jp conversation print --style chat <id>

Two rendering bugs were also fixed in the process. When reasoning or a tool call is hidden, the chat renderer was not flushing its markdown buffer at the hidden boundary, causing adjacent message chunks to be glued together into a single paragraph. Both render_reasoning and the hidden-tool-call branch in TurnRenderer now call flush() so the surrounding message blocks are separated by a blank line as expected.

The `brief` style already hides reasoning and tool arguments, but still
shows tool call headers. A `chat` style is now available that hides tool
calls entirely, leaving only user and assistant messages visible —
closer to a plain chat transcript.

    jp conversation print --style chat <id>

Two rendering bugs were also fixed in the process. When reasoning or a
tool call is hidden, the chat renderer was not flushing its markdown
buffer at the hidden boundary, causing adjacent message chunks to be
glued together into a single paragraph. Both `render_reasoning` and the
hidden-tool-call branch in `TurnRenderer` now call `flush()` so the
surrounding message blocks are separated by a blank line as expected.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit 4eedf8b into main Apr 17, 2026
13 checks passed
@JeanMertz JeanMertz deleted the prr144 branch April 17, 2026 17:56
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