Skip to content

feat(tui): unify feedback and commands into single task queue#43

Merged
HonestMajority merged 1 commit intomainfrom
queue-commands
Feb 23, 2026
Merged

feat(tui): unify feedback and commands into single task queue#43
HonestMajority merged 1 commit intomainfrom
queue-commands

Conversation

@HonestMajority
Copy link
Copy Markdown
Owner

Summary

  • Replaces the separate feedback_queue.json (Vec<String>) with a unified queue.json containing a tagged QueueItem enum (Feedback / Command variants), so both feedback and stored commands share a single FIFO queue per task.
  • Commands pressed on a running task are now queued instead of blocked; when the task stops, the stranded-queue processor dispatches each item by type (agman continue for feedback, agman run-command for commands).
  • Queue view (w key) renders both item types with [feedback]/[cmd] prefixes and resolves command IDs to display names.
  • Includes automatic one-time migration from the old feedback_queue.json format.

🤖 Generated with Claude Code

Replace the feedback-only `Vec<String>` queue with a tagged `QueueItem`
enum supporting both Feedback and Command variants. This lets users queue
commands on running tasks the same way they queue feedback.

Key changes:
- Add `QueueItem` enum with `#[serde(tag = "type")]` for clean JSON
- Rename `feedback_queue.json` → `queue.json` with migration on read
- Rename all `feedback_queue` methods to generic `queue` equivalents
- Commands are queued when task is running, run immediately when stopped
- Stranded queue processor handles both feedback and command items
- Queue view shows typed items with `[feedback]`/`[cmd]` prefixes
- Agent flow runner only processes Feedback items (not commands)
- Add tests for queue_command, mixed queue, and migration path

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@HonestMajority HonestMajority merged commit c59d20e into main Feb 23, 2026
1 check passed
@HonestMajority HonestMajority deleted the queue-commands branch February 23, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant