[Feature Request] Add /diff panel exclusions, default base mode setting, and document composerSidebarBackground token

Status Open
Reported on v2.1.270
Maintainer reply None cached
Activity 0 comments · opened Sep 14, 2026

Bug Description
[FEATURE] /diff panel: path exclusions, a global default base mode, and a documented background token

  1. Exclude paths from the panel. Runtime-state files in dotfiles repos (e.g. .claude.json.*, shell history, lockfiles like flake.lock) dominate the panel. The only current way to hide them is a Read(...) rule in permissions.deny, which also blocks Claude from reading them. linguist-generated in .gitattributes isn't honoured, and the built-in noise filter doesn't catch flake.lock. Please add a settings key, e.g. diffPanel.exclude: ["**/.claude.json.*", "**/flake.lock"].
  2. Global default base mode. Ctrl+X B is saved per project, so every new folder starts on session. Please add a settings key, e.g. diffPanel.defaultBaseMode: "uncommitted".
  3. Pre-session untracked files don't appear in the default view, which isn't obvious. A note in the panel would help.
  4. Document the panel background as a theme token. The panel paints its own background from composerSidebarBackground (rgb(38, 38, 38) in the dark theme). That looks like a grey box on terminals with a darker background. Overriding it in a custom theme (~/.claude/themes/*.json) works, but it's missing from the color token reference in the terminal-config docs, so it could change without notice. Please list it with the other fullscreen tokens.

Workarounds in use: Read(...) deny rules for exclusions, and a custom theme overriding composerSidebarBackground. Both rely on undocumented behaviour.

Related: #86944, #94121

Environment Info

  • Platform: darwin
  • Terminal: fullscreen TUI (tmux in Ghostty)
  • Version: 2.1.270
  • Feedback ID: 27044a4d-4a90-4e80-9b55-85838438260c

Errors

[]

View original on GitHub ↗