Phase 4 stores /effort and /model overrides in
settings_overrides (sid, key, value) — keyed by session id.
Setting an override in Session A must never leak into Session B
(CC bugs #49166,
#27658, #20745: cross-session settings contamination). Flip the model to see the difference.
resolver model:
Session A sid=a1f3…b0
Session B sid=7c2e…9d
A parent session spawns worktree children. EnterWorktree inserts a
worktree_links row + writes .claude/state/children/<sid>.json (atomic tmp+rename).
ExitWorktree updates the row's result_status and emits worktree_done.
A child killed with kill -9 leaves an orphan file — reaped by the SessionStart sweep.
| child_sid | parent_sid | purpose | result_status |
|---|
.claude/state/children/