Roo-Code/webview-ui/src/components
Roo Code 0ac5f16f87
Some checks failed
Preview roocode.com / check-secrets (push) Has been cancelled
Preview roocode.com / preview (push) Has been cancelled
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
2026-04-19 19:51:58 +00:00
..
chat feat: add autoExpandDiffs setting to auto-expand diffs in chat messages 2026-04-19 19:51:58 +00:00
cloud Fix spelling/grammar and casing inconsistencies (#11485) 2026-02-24 14:22:22 -07:00
common Fix spelling/grammar and casing inconsistencies (#11485) 2026-02-24 14:22:22 -07:00
history feat(web): add blog section with initial posts (#11127) 2026-02-16 20:37:54 -05:00
marketplace feat: remove Roomote Control from extension (#11271) 2026-02-19 16:33:39 -08:00
mcp refactor: replace fetch_instructions with skill tool and built-in skills (#11084) 2026-01-29 12:47:36 -07:00
modes Add back post-revert bug fixes and features (Step 2) (#11463) 2026-02-13 18:40:28 -05:00
settings feat: add autoExpandDiffs setting to auto-expand diffs in chat messages 2026-04-19 19:51:58 +00:00
ui Fix/minimax context window and models (#12069) 2026-04-08 08:44:36 -06:00
welcome Reapply Batch 1: 22 clean non-AI-SDK cherry-picks (#11473) 2026-02-14 13:47:12 -07:00
worktrees fix: use --force by default when deleting worktrees (#10986) 2026-01-26 23:10:23 -05:00
ErrorBoundary.tsx Remove duplicated assignment (#6355) 2025-07-29 10:54:44 -04:00