feat(tui): show compaction summary in context dialog - #3877
Merged
Conversation
trungutt
approved these changes
Jul 31, 2026
trungutt
pushed a commit
to trungutt/docker-agent
that referenced
this pull request
Aug 3, 2026
…dialog Reflects changes from docker#3877. Source PR: docker#3877 The /context dialog now displays the verbatim text of the most recent compaction summary when a session has been compacted. Updated the TUI features documentation and compaction guide to reflect this new capability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/contextdialog/contextclipboard outputCloses #3870.
Preview
Approximate plain-text rendering of
/contextafter a compaction. The actual TUI applies the existing category colors, border, usage bar, and scrollbar styles.When live sessions or file inventories exist, the summary is placed after those selectable sections so their navigation mapping remains unchanged:
The section is omitted when the session has never been compacted. Pressing
ccopies the same summary verbatim as plain text.Issue expectations
/contextrenders the latest stored compaction summaryA semantic retained-versus-dropped diff and agent-level persistent compaction instructions are intentionally excluded.
FirstKeptEntryidentifies the verbatim retained message boundary, but it cannot prove which facts a summarizing model preserved semantically.Validation
task testgo test -race ./pkg/session ./pkg/runtime ./pkg/tui/dialog./scripts/build.shgolangci-lint rungo run ./lint .go mod tidy --diffgofmt -l .