Skip to content

Display auto-compact point as a visible divider in the message list #1643

Description

@zhanba

Please describe the feature you want

When a conversation is auto-compacted (or manually compacted), the compact summary is stored as a <compact>...</compact> text part inside an assistant message. Currently the UI:

This makes the compact boundary hard to notice. The feature request is to render a clearly visible "compact point" divider in-between messages at the location where compaction occurred, so users can clearly see where history was condensed.

Proposed approach

  • In MessageList, detect when a message contains a compact part via findCompactPart (already exists).
  • Render a styled horizontal divider / banner (e.g. "Conversation compacted" with the existing SquareChartGantt icon and a clickable link to open the summary) between the compacted assistant message and the following user message — similar to how SeparatorWithCheckpoint (message-list.tsx#L395) renders checkpoint separators.
  • The existing tooltip / open-summary action from CompactPartToolTip (message-list.tsx#L521-L548) can be reused or promoted to this new divider.

Relevant files


🤖 Generated with Pochi

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions