Don't clobber NewTerminalArgs settings when initializing a tab #20810
All Vouch review confidence checks passed
Residual risk 0.02 = Change Risk (0.31) × (1 − Review Confidence (0.92)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 48 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.93 · 4 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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.233
Real PR Conversation Timeline
6 items
This test is sus. Could probably be part of an existing test?
Eh? Why does UpdateSettings override those launch args in the first place?
Two? nits? LGTM.
Mostly historical reasons I guess. There's been a bug on the backlog for ages for "hot reloading the settings can clobber CLI args". I wanted to scope this fix down to just fixing this bug rather than ((however big that fix ends up being))
I mean, maybe? I don't hate that it's an actually pretty specific test for the original regression.
It's more of a bigger issue that every "UI" test we write needs to add a 250ms wait at the end to make sure things worked.
we have like, insanely low test coverage for how our UI works so I'm kinda inclined to add more
lhecker
zadjii-msft
#20328 added a call to
Tab::UpdateSettingsin_InitializeTabso that the tab header would pick up the window'stabWidthMode(previously done inTab::Initializevia the global settings).HOWEVER,
UpdateSettingsalso pushes profile-only settings into every pane, overwriting settings that came fromNewTerminalArgs(e.g. CLI args like--suppressApplicationTitle,--colorScheme, etc).Instead, pass the window settings into
Tab::Initializeand only update the header width there, like it was before #20328.Closes #20749
Related to #20751