Skip to content

Comments

feat(tui): edit queued messages before LLM processing#535

Merged
bug-ops merged 1 commit intomainfrom
feat/edit-queued-messages
Feb 18, 2026
Merged

feat(tui): edit queued messages before LLM processing#535
bug-ops merged 1 commit intomainfrom
feat/edit-queued-messages

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 18, 2026

Summary

  • Add /edit-last-queued command that pops last queued message and returns it to TUI input buffer
  • Up arrow in Insert mode with empty input and non-empty queue recalls last queued message
  • Visual [editing queued] badge shown while editing a recalled message
  • New send_edit_queued Channel trait method with default no-op (only TUI implements it)

Test plan

  • cargo +nightly fmt --check passes
  • cargo clippy --workspace -- -D warnings passes (0 warnings)
  • cargo nextest run --workspace --lib --bins passes (1596 tests)
  • Manual: open TUI, queue multiple messages, press Up with empty input — last message recalled
  • Manual: verify queue count decrements and [editing queued] badge appears
  • Manual: press Enter to re-submit, verify badge disappears

Closes #503

@github-actions github-actions bot added enhancement New feature or request rust core size/M and removed enhancement New feature or request labels Feb 18, 2026
@bug-ops bug-ops force-pushed the feat/edit-queued-messages branch from d2bffac to 08f28f0 Compare February 18, 2026 15:17
@github-actions github-actions bot added the enhancement New feature or request label Feb 18, 2026
@bug-ops bug-ops force-pushed the feat/edit-queued-messages branch 2 times, most recently from 6a96874 to 3df050d Compare February 18, 2026 15:47
Handle queue recall entirely on TUI side using input_history, avoiding
the blocking agent loop. Up arrow with empty input and non-empty queue
pops last message from history into input buffer and sends fire-and-forget
/drop-last-queued for agent to process at next drain_channel.

Closes #503
@bug-ops bug-ops force-pushed the feat/edit-queued-messages branch from 3df050d to 4b21484 Compare February 18, 2026 15:52
@bug-ops bug-ops enabled auto-merge (squash) February 18, 2026 15:52
@bug-ops bug-ops merged commit 56d510f into main Feb 18, 2026
34 of 36 checks passed
@bug-ops bug-ops deleted the feat/edit-queued-messages branch February 18, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edit queued messages before LLM processing in TUI

1 participant