docs/design/web-shell-truncated-session-diff-replay.md
Saved edit results truncate large old/new file bodies. The unified fileDiff
often remains complete, but replay drops the whole result, so Web Shell can
list the edited file without showing its diff.
When the saved unified patch was not truncated, replay only its bounded
fileName and fileDiff metadata. Do not replay the truncated old/new bodies
as complete documents. Web Shell keeps that patch as a file-diff-only change
and renders it with the existing unified diff view. Summary line counts come
from the same displayed patches.
If the patch itself was truncated, preserve the current unavailable state. Do not fall back to the current Git worktree because it may no longer match the historical turn.
No diff available.