Skip to content

Esc / Ctrl+C in the composer stops the live turn #478

Closed

Description

@currentbits

What the CLIs do

Claude Code: Esc cancels the current turn (Grok flipped this a few times; current Grok 1.0.1: Esc on the cancel panel closes the panel and keeps the turn; Ctrl+C / Stop kills it). Double-Esc is rewind when idle. The common contract people have is: one key stops the agent.

Solenta today

Stop is a click on the status strip (`ThreadView` `onStopRun`). Composer Escape only closes popovers (`useEscapeClose`, mention/command/model menus). There is no document-level Esc or Ctrl+C → `stopRun` while a turn is live.

#315 (absolute stop) is about the backend actually dying. This ticket is the key.

Why it matters

You look up from the composer, the agent is about to `rm` something, and you hit Esc. Today nothing happens. That is how unsupervised damage lands.

Scope

  1. While the thread is working and no menu is open: Esc calls `stopRun`. If the composer has a draft, first Esc blurs/clears selection, second Esc stops (or: Esc always stops, draft stays). Pick one and test it. Prefer "Esc always stops the turn; the draft stays" — matching "interrupt, don't discard what I typed."
  2. Ctrl+C in the composer when a turn is live and the textarea is empty (or always, with a hint) also stops. Do not make Ctrl+C copy-unbind in a selected draft.
  3. Double-Esc when idle is rewind (Checkpoint restore should rewind the conversation, not just the worktree #149 / Composer / palette should include the CLI verbs, not only orchestration #472 `/rewind`), not stop.
  4. Tests: working + Esc → stopRun; idle + Esc → no stop; menu open + Esc → close menu only.

Round 23. Cluster with #473 (keyboard permissions).

Activity

  1. added
    enhancement
    plan:todo
    on Aug 18, 2026
  2. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 23 intel: Factory Droid v0.195.0 refined the interrupt UX: Escape asks for confirmation before interrupting a run, and remembers your choice. This is the middle path between bare Esc (too easy to kill a 20-minute run accidentally) and no Esc (trapped). For Solenta: Esc during a live turn shows a lightweight confirm ("stop this turn?"), with a "don't ask again" that is per-session or a settings toggle, and Ctrl+C stays the immediate-kill for users who mean it. Note Droid also suppresses permission/input prompts while disconnected (v0.176.0): queued prompts that can no longer reach the agent must not pile up.

  3. added
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Aug 18, 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