How it is created
- Task pipeline creates a durable session (one per task) with a worktree.
- Interactive chat can create sessions for ad-hoc work.
- Some pipeline steps use short ephemeral turns (for example summary).
Session statuses
Idle sessions hibernate after a quiet period (default 3 hours,
GPR_AGENT_IDLE_SECONDS).
Reconnect grace
If the daemon loses the backend socket briefly, in-flight agent processes can survive for a grace window (default 120 seconds,GPR_SESSION_RECONNECT_GRACE_SECONDS) before being killed.
Permissions
Agents request permission over ACP (session/request_permission). The daemon auto-approves safe kinds by default and forwards mutating kinds to you. Details: Permissions.
Task linkage
Task-owned sessions carry the pipeline. Stopping a live run marks the taskinterrupted while keeping the checkpoint so you can continue later.