v0.19.9
Fixes
- Plan Mode leak into subagents — approving a plan (via ExitPlanMode) now clears the SDK's real internal plan-mode flag, not just the UI state. Previously, subagents spawned after plan approval would keep getting a phantom "plan mode is active" restriction regenerated on every turn, since they read the same underlying session flag the parent never actually cleared.
- Worktree paths not canonicalized —
enter_worktreenow resolves the created worktree path withfs.realpathSync(). On macOS,os.tmpdir()-based paths resolve through a/var→/private/varsymlink; Bash tolerated the symlinked form but Edit/Write's sandbox check needed the canonical path, causing "Bash works, Edit/Write don't" failures in fresh worktree sessions. - Regenerated 3 screenshot baselines whose relative-time text had drifted against the real clock (text-only, no product change).
Full diff: v0.19.8...v0.19.9