feat(tui): show prompt after /compact to choose continue or branch#17868
Open
jwcrystal wants to merge 2 commits intoanomalyco:devfrom
Open
feat(tui): show prompt after /compact to choose continue or branch#17868jwcrystal wants to merge 2 commits intoanomalyco:devfrom
jwcrystal wants to merge 2 commits intoanomalyco:devfrom
Conversation
After compaction completes, show an inline prompt (similar to permission/question prompts) with options to Continue in the current session or create a New Session with the summary injected as initial context. - Add CompactionPrompt component following the permission/question prompt pattern - Listen to session.compacted event to trigger the prompt - Save summary before dismissing to ensure it's available for new session
Auto compaction should continue automatically without interrupting the user. Only show the prompt for manual /compact commands.
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR: PR #7824: feat: add /branch command to create new session with compacted context This PR appears to be related because it also deals with creating a new session with compacted context. Your PR (17868) adds a prompt after However, PR #7824 is quite old and may have been merged already. You should verify if this functionality already exists or if your PR is building upon it. |
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.
Issue for this PR
Closes #17802
Type of change
What does this PR do?
After running
/compact, show an inline prompt letting users choose:This addresses the missing UX after compaction - users previously had no feedback on what happened or how to continue. Auto compaction continues silently without interruption.
How did you verify your code works?
/compactmanually → prompt appearsScreenshots / recordings
Checklist