feat(web): choose the default diff file state - #11484
Conversation
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds a persisted user-facing setting that controls whether production diff and pull-request Code views open with files expanded or collapsed, wiring the choice through settings, contracts, and renderers. Because it changes product defaults, the change warrants human review. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe change adds a persisted ChangesDefault diff file state
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant SettingsPanels
participant ClientSettings
participant PullRequestCodeTab
participant DiffPanel
SettingsPanels->>ClientSettings: update diffFilesCollapsed
ClientSettings-->>PullRequestCodeTab: provide saved setting
ClientSettings-->>DiffPanel: provide saved setting
PullRequestCodeTab->>PullRequestCodeTab: apply setting when no fold override exists
DiffPanel->>DiffPanel: seed collapsed file state from setting
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The new default diff-file state is persisted and applied consistently to working-tree and pull-request diffs, with existing interaction behavior retained. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
## What's Changed * fix(mobile): render photo library picks to a bounded JPEG off the JS thread by @Nelglor in pingdotgg/t3code#11440 * fix(desktop): keep the native preview User-Agent so Turnstile passes by @akriaueno in pingdotgg/t3code#7110 * fix(chat): keep user input outside collapsed work by @maria-rcks in pingdotgg/t3code#11363 * fix(web): preserve preview focus on window return by @Lucenx9 in pingdotgg/t3code#11444 * fix(web): complete thread status icons and keep input threads prominent by @maria-rcks in pingdotgg/t3code#11461 * feat(web): tint image chips with their average color by @maria-rcks in pingdotgg/t3code#11468 * fix(web): move viewer controls outside media and restore arrow navigation by @maria-rcks in pingdotgg/t3code#11470 * fix(web): tighten sidebar search and footer spacing by @maria-rcks in pingdotgg/t3code#11466 * feat(web): subagent spawns render as an expandable work row by @maria-rcks in pingdotgg/t3code#11433 * fix(web): keep subagent rows visible under folded turns by @maria-rcks in pingdotgg/t3code#11474 * fix(usage): make unavailable account limits more visible by @dominic-r in pingdotgg/t3code#10601 * fix(desktop): bound backend shutdown wait during quit by @ishaanko in pingdotgg/t3code#7599 * feat(web): choose the default diff file state by @maria-rcks in pingdotgg/t3code#11484 * feat(composer): fold large pastes into text attachments by @chrisdeeming in pingdotgg/t3code#11442 * feat(web): expose each chat message as a heading for screen readers by @Leos-Khai in pingdotgg/t3code#11199 * fix(usage): respect provider account homes by @maria-rcks in pingdotgg/t3code#11485 ## New Contributors * @Nelglor made their first contribution in pingdotgg/t3code#11440 * @akriaueno made their first contribution in pingdotgg/t3code#7110 * @Leos-Khai made their first contribution in pingdotgg/t3code#11199 **Full Changelog**: pingdotgg/t3code@v0.0.41-nightly.20260912.1612...v0.0.41-nightly.20260913.1625 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.41-nightly.20260913.1625
Diff files always opened expanded. Settings → General now lets you choose Expanded or Collapsed as the default for the diff view and pull requests' Code tab on web and desktop. Expanded remains the default for existing settings; individual file toggles, expand/collapse all, and file-tree reveal keep working.
Verified against real working-tree changes and GitHub PR #11480 through the web client and server, including reopening, persistence across reloads, both choices, individual toggles, and file-tree reveal. Inspected settings in light/dark themes at 1280px and 800px. Blacksmith passed contracts/web/desktop typechecks, scoped lint, and existing settings, persistence, diff folding, file-tree, and viewer tests. Native desktop launch and mobile are unverified; mobile's separate diff viewer is outside this change.
The recordings below use animated GIFs for inline GitHub playback.
Model: gpt-6-astra. Harness: Codex.