feat(tui): message queue navigation with ↑/↓ during streaming#3143
Closed
lanshi17 wants to merge 2 commits into
Closed
feat(tui): message queue navigation with ↑/↓ during streaming#3143lanshi17 wants to merge 2 commits into
lanshi17 wants to merge 2 commits into
Conversation
When a turn is running, users can now press ↑/↓ to browse and edit queued messages instead of only being able to queue new ones. Closes esengine#2551 Changes: - Add queueEditCursor/queueEditDraft fields to chatTUI for tracking which queued message is being browsed/edited - ↑ during tuiRunning saves the current draft and jumps to the last queued message; subsequent ↑/↓ moves through the queue - Editing a queued message and pressing Enter saves the edit back to the queue slot (shows 'queue [N] updated' notice) - Pressing Enter without browsing still queues a new message as before - Queue indicator rendered in dim grey above the input box showing all queued messages with [N] numbering; the currently browsed item gets a ▸ highlight marker - Queue navigation resets on any non-↑/↓ key, on Enter, on TurnDone dequeue, and when the turn finishes
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.
What
When a turn is running and the user queues messages (Enter during streaming), pressing ↑/↓ now lets them browse and edit queued messages, instead of only being able to append new ones.
Why
Closes #2551 — during streaming, queued messages were fire-and-forget with no way to review or correct them before they were sent.
How
Tests