Skip to content

feat(cli): Show compactions in jp conversation show#841

Merged
JeanMertz merged 1 commit into
mainfrom
jpc-show-compactions
Jul 3, 2026
Merged

feat(cli): Show compactions in jp conversation show#841
JeanMertz merged 1 commit into
mainfrom
jpc-show-compactions

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

jp conversation show now lists a conversation's applied compactions under a "Compactions" section. Each entry reads as turns X..Y (N total, POLICY), where turns are shown 1-based and inclusive, and POLICY is summary when the range was replaced by a generated summary, or a description of the applied reasoning/tool-call policies (e.g. reasoning + tools) otherwise. The JSON output form includes from_turn, to_turn, reasoning, tool_calls, and the full summary text.

The mechanical-policy label builder used by jp conversation compact is extracted from compact.rs into format.rs as compaction_policy_label, shared between the compact timeline output and the new show-command detail item, so both commands describe reasoning/tool-call strip policies identically.

`jp conversation show` now lists a conversation's applied compactions
under a "Compactions" section. Each entry reads as `turns X..Y (N
total, POLICY)`, where turns are shown 1-based and inclusive, and
POLICY is `summary` when the range was replaced by a generated
summary, or a description of the applied reasoning/tool-call policies
(e.g. `reasoning + tools`) otherwise. The JSON output form includes
`from_turn`, `to_turn`, `reasoning`, `tool_calls`, and the full
`summary` text.

The mechanical-policy label builder used by `jp conversation compact`
is extracted from `compact.rs` into `format.rs` as
`compaction_policy_label`, shared between the compact timeline output
and the new show-command detail item, so both commands describe
reasoning/tool-call strip policies identically.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit d43a7d2 into main Jul 3, 2026
16 checks passed
@JeanMertz JeanMertz deleted the jpc-show-compactions branch July 3, 2026 19:51
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