feat(core): add message queue for user input during inference - #224
Merged
Conversation
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #224 +/- ##
==========================================
+ Coverage 81.32% 81.36% +0.04%
==========================================
Files 78 78
Lines 22174 22426 +252
==========================================
+ Hits 18034 18248 +214
- Misses 4140 4178 +38
🚀 New features to boost your workflow:
|
Add bounded FIFO message queue to agent loop so users can submit messages while the model is busy. Messages are drained from the channel transport buffer via non-blocking try_recv() and queued in a VecDeque (max 10 items). Consecutive messages within 500ms are merged. Queue count is forwarded to TUI as a badge indicator. - Extend Channel trait with try_recv() and send_queue_count() - Add QueuedMessage, drain_channel, enqueue_or_merge, clear_queue - Extract process_user_message() from agent run loop - TUI: AgentEvent::QueueCount, badge rendering, Ctrl+K to clear - TelegramChannel: implement try_recv() via mpsc - Add 8 queue unit tests, all 1249 tests pass
bug-ops
force-pushed
the
feat/m18/message-queue
branch
from
February 13, 2026 22:09
55b4b0c to
29ece5f
Compare
bug-ops
enabled auto-merge (squash)
February 13, 2026 22:10
bug-ops
disabled auto-merge
February 13, 2026 22:15
Update mdBook guides (channels, TUI, architecture), README, and CHANGELOG for the bounded message queue feature (#221).
bug-ops
enabled auto-merge (squash)
February 13, 2026 22:19
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
try_recv()(non-blocking poll) andsend_queue_count()[+N queued],Ctrl+Kto clear queuetry_recv()via mpscprocess_user_message()from agent run loopCloses #221
Test plan