You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add autoExpandDiffs setting to auto-expand diffs in chat messages
Adds a new boolean setting "autoExpandDiffs" (default: false) under
Settings > UI. When enabled, file edit diffs in chat messages are
automatically expanded instead of requiring a click on the collapsed
filename bar.
The CodeAccordion component already enforces a 300px max height with
scrollbar, so auto-expanded diffs will not overwhelm the chat view.
Changes:
- packages/types: add autoExpandDiffs to GlobalSettings schema and ExtensionState
- webview-ui context: add default and hydration for autoExpandDiffs
- ChatView: add useEffect that auto-expands diff tool messages when setting is on
- UISettings: add checkbox toggle for the new setting
- SettingsView: wire the new setting through cached state
- i18n: add English translation strings
- Tests: update test fixtures for change-detection, unsaved-changes, UISettings
Closes#10955
0 commit comments