Patch headers have no -z form, so core.quotepath=false keeps chunksByFile matching non-ASCII names, and --no-ext-diff keeps a user's external diff tool out of the batched spawn. Snapshot.diff now diffs first and filters ignored paths from the result instead of listing changed files twice, and returns early for an empty explicit selection.
A turn is the assistant steps that follow a user message up to the next user message, so a steer is its own turn. That is fully derivable from session_message, so the session_turn projection, its migration, the turn list route, and the Session.Turn contract go away. session.diff takes messageID (default: newest user message) plus an optional to for contiguous ranges, resolves the range's Location from location-switched messages, and only compares against the working copy while the Session is actively executing. Shared missingMessage and failedSnapshot handler helpers replace the inlined mappings.
Git.tree.diff ran name-status, numstat, and a patch per changed file. Run each once over the tree pair, split the patch with VcsPatch.chunksByFile, cap patch output at MAX_TOTAL_PATCH_BYTES with empty patches past the cap, and let Snapshot.diff filter ignored paths from the result instead of passing every changed path as a pathspec.
Replace the vcs.diff?mode=turn source and TUI picker with session routes: GET /api/session/:id/turn lists turns (one busy period each, projected into a new session_turn table because durable event persistence is opt-in) and GET /api/session/:id/diff diffs a contiguous turn range from its first recorded start snapshot to its last recorded end snapshot.
Add a Last turn option to the /diff source chooser when the viewer opens from a session. It requests mode=turn with the session ID, skips base resolution, and falls back to branch when a remembered or configured turn source is used outside a session. Accept turn in diffs.source.
Extend vcs.diff with mode=turn, which diffs the files changed by a session's last turn from the per-step snapshots: the first step's start tree against the last step's end tree, or the working copy while that step still runs. Vcs.Mode stays the VCS backend contract; the wider Vcs.DiffSource is route-only and the server dispatches turn to Session.turnDiff instead of the VCS provider.