Skip to content

Per-thread follow-up queues, typed image attachments, and steer (#10) - #18

Merged
tanRdev merged 1 commit into
mainfrom
feat/issue-10-followup-queue
Nov 11, 2026
Merged

tanRdev merged 1 commit into
mainfrom
feat/issue-10-followup-queue

Conversation

@tanRdev

@tanRdev tanRdev commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Closes #10.

  • Per-thread follow-up queue (shell-model, pure queue ops + controller): enqueue while a run is active; ordered exactly-once dispatch on agent_end; edit/delete/reorder/pause/resume; per-item status queued/sending/sent/failed; a failed head blocks later items (order preserved) until retry/edit/delete; failures preserve the item and its context. Persisted through an injected storage adapter (renderer localStorage, key pi:follow-up-queues:v1); items stuck in sending at quit rehydrate as failed, never silently resent.
  • Stop separated from Submit: submitting while executing now queues a follow-up instead of cancelling the current run.
  • Typed image attachments end-to-end: PromptImageAttachment (bytes + MIME) flows shared models -> contracts -> preload -> main IPC -> agent-host -> SDK/CLI/mock runtimes; the renderer loads bytes for image @file: mentions and picked files (cap 4).
  • Steer: new agent:steer channel, capability-gated (supportsSteer / supportsImageAttachments), never cancelling the in-flight run; Pi 0.79's native steer/follow_up under the hood.
  • UI: Steer button when supported; queue list above the composer with status badges and per-item controls.

Verification: contract coverage 80/80; import/size checks pass; biome clean on all 55 touched files; typecheck exit 0 for shared/contracts/shell-model/agent-host; tests: shell-model 27/27, contracts 124/124, shared 30/30, ui-components 14/14, agent-host 102/102, desktop-components 1314 passed, integration 477 passed. Remaining failures all reproduce identically on pristine main (Electron package unavailable in the build environment) and need one healthy CI run to confirm. Remaining scope notes: image paste is still the pre-existing stub (picker and @file: mentions work); queue persistence is localStorage, matching the existing draft pattern.

@tanRdev
tanRdev merged commit 7b14157 into main Nov 11, 2026
1 check passed
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.

P2: Add per-thread follow-up queues and typed image attachments

1 participant