Cline v0.1.66: Window Management Primitives

Cline adds window state persistence, multi-window registry, and factory primitives for desktop window management. Part 1 of a 3-part refactor.

Cline v0.1.66: Window Management Primitives

TL;DR

  • New window state persistence layer — bounds, paths, and display affinity saved across sessions
  • Centralized multi-window registry with focus tracking and batch operations
  • Window factory handles screen transitions and security checks
  • Part 1 of 3-part refactor from PR #372

New

  • Window state persistence — Per-window bounds, last viewed path, and display affinity saved to userData on close, restored on launch
  • Multi-window registry — Centralized tracking of all BrowserWindow instances with focus tracking, lifecycle events, and batch operations (loadUrlInAllWindows, saveAllStates)
  • Window factory — Creates BrowserWindows from persisted state or defaults, handles disconnected screen transitions, enforces security via will-navigate origin checks
  • Native fallback UI — disconnected.html provides runtime crash recovery without external dependencies
  • Minimal preload bridge — preload.ts sets up IPC channels with security boundaries intact

This is part 1 of a 3-way split from the original PR #372. Upcoming: runtime-orchestrator (372b), then main wiring (372c).

Source: Cline