Skip to content

Composer is hard-disabled during runs — allow type-ahead / queue next message #92

Closed

Description

@currentbits

ThreadView.tsx:2421 passes disabled={isWorking || isArchived}, which disables the Composer textarea itself (Composer.tsx:964). Users can't draft or queue the next instruction while the agent works — they have to babysit the spinner.

A queue-next-message flow (type while running, send on settle) fits the existing runId-guarded runner. Even without queueing, letting the user draft during a run (send becomes available on settle) is a strict improvement over a dead textarea.

Found during the 2026-08-16 improvement audit.

Activity

  1. added
    enhancement
    plan:todo
    plan:done
    and removed
    plan:todo
    on Aug 16, 2026
  2. currentbits commented on Aug 16, 2026

    @currentbits
    OwnerAuthor

    Implemented on branch coder/composer-is-hard-disabled-during-runs-al-389f73 (41ebbe8).

    • Composer keeps the prompt and Send live while a run is active (busy); the old hard lock now only applies to archived threads.
    • A send during a run is queued in useCoder and delivered on that thread's run terminal — including stopped, since interrupt-then-redirect is why you type mid-run. Queueing twice appends instead of replacing.
    • The queue sits at the useCoder level so it still fires for a thread you have switched away from; ThreadView shows a "Queued" strip with Cancel.
    • Build / Best of N / model / permission mode stay locked while busy (they cannot be queued).

    Known ceiling: the queue is renderer-side and in-memory, so a reload mid-run drops it (noted with a ponytail: comment).

    Tests: test/queuedFollowup.test.tsx (queue → deliver, append, cancel) plus updated Composer busy/archived cases. Full renderer suite green (691).

  3. added a commit that references this issue on Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions