protocol, grid: answer OSC 4 palette queries from the window's configured palette #165
No reviewers
Labels
No labels
Area/ci
Area/cli
Area/client
Area/client-core
Area/daemon
Area/deps
Area/docs
Area/grid
Area/manual
Area/nix
Area/protocol
Area/pty
Area/render
Area/shaping
Area/skills
Area/transport
Area/vt
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Performance
Kind/Security
Kind/Testing
perf-regression-accepted
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Blocked
Status
Need More Info
Status
Upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
felis-terminal/felis!165
Loading…
Reference in a new issue
No description provided.
Delete branch "theme/palette-report"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #159.
Why
OSC 4 ; n ; ?answered the program's own override or else the compiled-in xterm palette, while a window with[theme.palette]/[theme.palette.indexed]paints other colors, so a program that reads the palette to pick readable colors (Claude Code does) picked against colors nobody sees. An embedder driving felis-grid without a daemon asked for the same on the GitHub mirror.What
OSC 11 ; ?answered xterm white afterreset) and the PTY pixel winsize. It also dropped the program'sOSC 4/OSC 10/11/12overrides without arming their deltas, so a window kept painting colors no query answered. RIS now carries the host state across and shipsPaletteResetAll/ThemeColor Resetexactly when an override existed.set_palette_config_default/palette_config_default, a layer between the program's override and the compiled-in table;OSC 104and RIS fall back to it. Kept out of the upgrade dump (a restored session re-resolves it from its windows).SessionConfigureTheme.palette, sparseConfiguredPaletteEntrylist, skippable (an older peer degrades to today's behavior). Duplicate or >255 index refused at decode; felis-json v1 mirrors it.ConfigureTheme, minor-ledger row 2), vt-compliance, CHANGELOG.OSC 5 special colors are unchanged (no config key sets them).
Verification
just checkpasses; the first commit alone passesnextest -p felis-grid -p felis-daemon --all-features.