Cline Runtime Orchestrator: Attach & Owned Mode Management

Cline adds runtime orchestrator with attach/owned mode lifecycle management, health probing, and crash detection. Control runtime startup, restart, and shutdown via new connect/restart/shutdown API.

Cline Runtime Orchestrator: Attach & Owned Mode Management

TL;DR

  • Runtime lifecycle management with attach mode (external runtime) and owned mode (spawned child process)
  • Health probing with configurable intervals and crash detection in attach mode
  • New API: connect(), restart(), shutdown(), getUrl() for runtime control

New

  • Attach mode — Connect to an already-running runtime at 127.0.0.1:3484 with configurable health probe intervals and failure thresholds
  • Transient-failure reset window — Automatically recovers from temporary hiccups without triggering a full crash event
  • Owned mode — Spawn and manage the runtime as a child process via RuntimeChildManager, delegating lifecycle to the child manager's crash detection
  • Runtime API — connect() boots or attaches, restart() gracefully reconnects, shutdown() stops owned runtime, getUrl() returns current URL or null
  • Crash detection — Emits 'crashed' event when runtime becomes unreachable in attach mode or via child manager in owned mode

Dependencies

  • Depends on PR #372a (window primitives)
  • Next: PR #372c (protocol handling + main wiring)

Update via: git pull origin backup/yagni-pre/6b

Source: Cline