Files
t3code/apps
Theo BrowneandClaude Fable 5 6f07f6853b fix: address review findings on turn diff attribution
- resolveDiffSectionPath scanned line-by-line and returned the `--- a/`
  source path before ever seeing `+++ b/`, so rename sections resolved to
  the pre-image path and could be mis-filtered (macroscope, bugbot). Now
  resolves the post-image path in a full pass with the source as fallback,
  plus a rename filtering test.
- `commit --amend` of a pre-turn commit preserved the old author date, so
  amended agent content was misattributed to history and hidden — the one
  invariant violation both bots flagged. Commits authored before the turn
  but committed during it are now disambiguated by patch-id: an identical
  patch elsewhere in the repo (branches/remotes/reflog — reflog catches
  pre-rebase originals) means replayed pre-existing content (demote);
  otherwise it's an amend (show). Integration test included.
- Per-commit diff-tree now passes --root so agent-authored root commits on
  orphan branches contribute their paths (macroscope).
- includeGitChanges is scoped to the diff panel selection key so revealing
  git changes on one turn no longer leaks into other turns/threads
  (macroscope).
- Git-only turns render a compact card with just the "Updated via git" row
  instead of a "0 changed files" header with dead controls (macroscope).

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-23 13:44:17 -07:00
..