Skip to content

feat(cli, term): Support removing a single compaction event - #930

Merged
JeanMertz merged 1 commit into
mainfrom
compact-reset-index
Aug 3, 2026
Merged

feat(cli, term): Support removing a single compaction event#930
JeanMertz merged 1 commit into
mainfrom
compact-reset-index

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

jp conversation compact --reset previously removed every compaction event in one go. It now also accepts an index, --reset=2, which removes only that compaction event, numbered the same way jp conversation show lists them. Indices are 1-based; 0 or a value past the last compaction event is an error rather than a silent no-op, matching how --turn behaves. --dry-run still previews the removal without mutating the conversation.

ConversationStream gains remove_compaction, which removes the compaction event at a given 0-based position among the stream's compaction events and returns it, leaving the stream unchanged if the position is out of range.

The pretty details table view now renders list values as a numbered list (1., 2., ...) instead of bullets, with numbers right-aligned so item text lines up past the tenth entry. This affects any CLI output built from DetailValue::List, such as attachment listings.

`jp conversation compact --reset` previously removed every compaction
event in one go. It now also accepts an index, `--reset=2`, which
removes only that compaction event, numbered the same way `jp
conversation show` lists them. Indices are 1-based; `0` or a value past
the last compaction event is an error rather than a silent no-op,
matching how `--turn` behaves. `--dry-run` still previews the removal
without mutating the conversation.

`ConversationStream` gains `remove_compaction`, which removes the
compaction event at a given 0-based position among the stream's
compaction events and returns it, leaving the stream unchanged if the
position is out of range.

The pretty `details` table view now renders list values as a numbered
list (`1.`, `2.`, ...) instead of bullets, with numbers right-aligned
so item text lines up past the tenth entry. This affects any CLI
output built from `DetailValue::List`, such as attachment listings.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz
JeanMertz merged commit 0bac826 into main Aug 3, 2026
16 checks passed
@JeanMertz
JeanMertz deleted the compact-reset-index branch August 3, 2026 05:37
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