Repository navigation
fix(app): show a file's whole diff when its accordion opens - #65703
Conversation
There was a problem hiding this comment.
I'd approve this. The revert is clean and works as described. I mounted a 200-line write story in headless Chromium and opened its accordion. On the base the diff is 421px with Show more; with this PR it is 4801px with no toggle (screenshots below). Nothing still refers to FileDiffFold, its styles or the longWrite scenario, and the imports the fold used are still used elsewhere. The file-tool and session-timeline component specs pass (14/14). bun run typecheck stops with Script not found "check" here, so I ran tsc -b in packages/session-ui instead, and it passes.
Public API: unchanged.
One trade-off to be aware of: when edits are set to expanded (editToolPartsExpanded → editToolDefaultOpen), file accordions open without the reader asking. Then a 300-line write is about 7,000px tall again, the case #65329 was written for. If that's intended, nothing needs to change.
Takes the three upstream commits that landed while this sync was being checked: event watches held like timers while automations are off (anomalyco#65699), a file's whole diff shown when its accordion opens (anomalyco#65703), and the v2.3.1 and v2.3.2 changelog entries with the version bump (anomalyco#65701). No conflicts.


Undoes #65329 (204af94).
FileDiffFold, its styles, its story and its component test are gone.[data-slot="accordion-trigger"]locators that feat(app): fold tall file diffs in the timeline #65329 put intimeline-geometry.spec.tsandsession-timeline.spec.ts. They do not depend on the fold.