Refresh terminal colours on system theme/palette changes #63701
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 156 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.303
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #63701"
general
weight: 0.35
adienes
As helpfully flagged by @vtjnash in https://github.com/JuliaLang/julia/pull/59958#issuecomment-5843183385, quite a few terminals (Kitty, Ghostty, VTE, tmux, and others) now support sending events when the system's colour theme/terminal palette changes.
Based on https://github.com/contour-terminal/contour/blob/master/docs/vt-extensions/color-palette-update-notifications.md, I've got Opus 5.5 to add this in to the DA1/DCS sequence reading that we've added recently.
Along the way, I also ran into #63591 which makes me thing at this point it's worth centralising the three changes we make to the terminal state when going into/out of input mode:
So,
{enable,disable}_bracketed_pasteare now no longer used (but there are a handful of packages in the ecosystem that do, so I've left them in to be removed later), and the new helper functions{enter,leave}_input_modehandle all three state toggles.The
\e[?handler previously assumed every private CSI sequence was a DA1 reply and read until ac, which would swallow typed input after a notification. It now reads to the sequence's final byte and dispatches on it, discarding unrecognised or truncated sequences.