Skip to content

background mid-flight: detach a running turn/job to background (Ctrl-B semantics) #217

Closed

Description

@ajianaz

Summary

From the koma comparison (2026-10-06): koma lets you press Ctrl+B to detach a foreground bash — or a BLOCKING SUB-AGENT — without killing it; the turn unblocks and the agent is nudged when the job finishes. Tole validated state: job_start starts background work upfront, and cancellation detaches by ABORTING — but there is no mid-flight "keep it running, stop waiting" for the interactive path.

Why

Chat-first UX: the user wants to keep typing while a long turn continues; missions may spawn a slow child they don't want to block on. The building blocks exist (jobs machinery, cancel token, durable turns) — this composes them into a detach primitive.

Design sketch

  • tole detach (or Ctrl-B in a future TUI): the in-flight tool call is moved under job management where possible (bash-like commands → job); pure provider waits resolve at the next checkpoint and the turn settles resumable-with-work-continuing.
  • The detached work's completion nudges the session (uteke mailbox or job_poll pattern) so a later resume picks the result up.
  • Destructive semantics unchanged; every detach is a durable entry (audit).

Acceptance

  • Detach path for run/chat long calls; result nudge on completion; docs + CHANGELOG same-PR

Activity

  1. added
    enhancement
    on Oct 6, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions