Repository navigation
Show turn edit diffs inline in native chat - #27758
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The inline diff controls have no identified interaction conflict, and no actionable merge-blocking issue remains after normal checks. Pre-merge checks |
|
|
The changed-file summary showed file names and totals, but readers had to jump back to earlier edit cards to see the changes. This PR lets each file expand its recorded patches in place, keeps file-name navigation to the original edit, and removes the redundant totals explanation. The full review kept that design and fixed one performance defect: opening one file also parsed unrelated edits in the same message. Commit Two adversarial review rounds, an independent architecture challenge, and final readiness with a dedicated performance review found no remaining meaningful code issue. Deferred: action-tooltip polish on the Show/Hide diff button. Final reviewed and pushed head:
Remote Electron QA passed on M4Air at the final head, using the Electron skill and Playwright through Chrome DevTools Protocol with every app window hidden and unfocused. The final rendered test passed in 5.1 seconds. It verified two-file totals, two recorded patches for one file in order, isolation between files, added and removed text, line numbers 42/84/7, long-path truncation and full title, keyboard disclosure, hide/reopen, and file-name navigation to the newest original edit. Settled screenshots were checked for readable patch rows and clipping; the temporary test fixture was removed and the QA app exited. The rendered test used mocked recorded session history and tab inventory through the real app interface. Live provider sessions were not exercised. Windows and Linux interactive QA and large-history frame-time or retained-memory profiling were not completed. Two Windows QA worktrees remain preserved because safe cleanup preconditions could not be established. Collapsed file summary: Both recorded patches for the selected file: Second file expanded independently: File-name navigation to the original edit: Review, fixes, CI, and M4Air rendered QA are complete. No merge was performed. |




ELI5
The changed-file summary added in #27631 shows totals and file names, but it does not show the edits there. Clicking a file jumps back to its earlier edit card. The summary also includes the sentence “Totals from recorded edits in this turn,” which adds no useful information. Now each file has a disclosure that shows its recorded patch directly beneath the summary.
What Changed
Why
The summary already knows which recorded edits produced its totals. Keeping references to those edits lets it reuse the existing diff card and parser instead of introducing a second viewer or parsing every patch while the transcript renders.
Linked Issue
Maintainer follow-up to #27631; no separate issue.
Visual Proof
Headless browser preview of the actual rollup component with a representative patch:
Testing
bun check; CI uses the repository's newer Bun setup. The other 24orca-ci-checksgates passed.Review
Ready for review.
Agent skill upstream boundary
Notes
This changes renderer presentation only. It adds no platform-specific paths, shortcuts, remote calls, or persisted fields. Detailed patch work remains lazy until a reader opens a file.
Checklist