Repository navigation
feat(mecatui): add explicit queue and steer controls - #2397
Conversation
Implementation plan: queued prompt controls
This is the complete publishable plan. Local checkout paths, sibling-checkout provenance and unrelated operator working-tree details are omitted. The verification section records the intended checks; actual outcomes are reported in the PR description. Observable contract
Scope and compatibilityTUI-local routing and UI state only. Reuse existing Individual queued-message selection, reordering, per-entry editing, a new server queue and a new run lifecycle are out of scope. Dependency-ordered tasks
Verification intentions
Starting evidence and ownershipThe compact-rendering slice entered this extension with focused tests, the official golden task and the full offline suite passing. Its owned files were AmendmentManual testing before publication showed that a rejected The operator subsequently authorized rebasing onto |
Render pending input as compact user-prompt blocks. Add explicit /queue and /steer commands, prevent mixing pending delivery kinds, and preserve delivery intent, attachments and paste markers through merged edit-back. Show rejected delivery attempts while a run is active instead of hiding feedback behind the running footer. Closes #2065 Co-authored-by: Mecatl <[email protected]>
8cb27b9 to
f133f05
Compare
Preserve multiline queue and steer previews within the existing row and rune bounds. Add pullback guidance to conflicting delivery errors using the configured edit-back key, with rendering and resend regressions. Co-authored-by: Mecatl <[email protected]>
Rename enqueuePrompt to deliverDefaultPrompt to distinguish delivery selection from local queue insertion. Update callers and comments without changing behavior. Co-authored-by: Mecatl <[email protected]>
Remove the obsolete box-width cap and bound preview processing by terminal width. Render muted edit controls inline with pending status, including steers still sending, and update rendering regressions and the steer golden. Co-authored-by: Mecatl <[email protected]>
Summary
/steer TEXTand/queue TEXTto explicitly choose delivery timing; either starts a normal run when idle.Closes #2065.
Related bug fixes
+N moreoverflow indicator, and processing remains bounded to each message's leading text.Plan and merge status
Approved implementation plan.
Rebased onto
mainate17d8394d365a94fb79258fa02a940625bfb99ff. The only conflict was in keybinding documentation. Range comparison confirmed the production patch was unchanged by the rebase; a focused independent integration review checked upstream worktree-modal, navigation, help and layout interactions with no findings. Subsequent preview and recovery-hint fixes are included inbc8f404f3.Verification
task test:goldentask testtask linttask test:racetask docstask site:buildtask buildgo run ./cmd/mecademo(tool call, permission ask/approval, final result)task test,task lint,task test:race, docs/site checks, build and offline demo.bc8f404f3, rerantask test,task lint,task test:race,task build, and the offline demo. Regression tests cover direct multiline queue/steer input, repeated pullback/resend, preserved blank preview rows, bounded preview processing, and recovery guidance with a rebound pullback key. Independent incremental review found no remaining issues.TestCarryoverHandoffandTestFireProvisionalAdmissionDeadlineKeepsPendingUntilRecovery. They passed isolated repeated checks (10 and 5 runs respectively), followed by passing complete offline/race-suite reruns. No unrelated test or production changes were made. An initial combined lint/race invocation also exhausted its aggregate tool timeout; the final standalone race gate passed.API compatibility
Compatible, client-local change. Existing
SendSteerand prompt submission paths are reused; there are no protobuf, RPC, SDK, engine, or stored-data schema changes. API major and feature identifiers are unchanged, and no client upgrade coordination is required. The TUI reserves/queueand/steeras builtins with the existing precedence over same-name workspace commands.Limitations
Steer pullback uses the existing best-effort cancellation protocol; an already-consumed steer cannot be recalled. Queued entries merge into one follow-up prompt. Individual pending-message selection, reordering, and per-entry editing remain out of scope.