Center collapsed context usage with custom chat backgrounds #334192
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.46) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 247 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.330
Real PR Conversation Timeline
1 comments
"Review active on #334192"
general
weight: 0.35
ktsoator
Fixes #334114
Summary
When a custom chat background is enabled in the Agents Window, the context-usage widget is rendered on an opaque compact surface. The percentage label collapses to zero width when idle, but the widget keeps its flex gap, shifting the usage ring to the left within the control.
This change:
The fix is scoped to the Agents Window session view with an active chat background. The latest
mainalready centers icon-only picker actions through #334128, so that now-redundant part of the original PR was removed while resolving conflicts.Screenshots
Before
<img width="618" height="120" alt="Misaligned context usage ring before the fix" src="https://github.com/user-attachments/assets/92a4fde2-94d5-444f-be83-5c12d393fc40" />
After
<img width="998" height="356" alt="Centered context usage ring after the fix" src="https://github.com/user-attachments/assets/c5bf1741-140c-497b-91ef-a850174ba32a" />
Verification
npm run transpile-client./scripts/test.sh --grep "keeps background-image composer controls opaque with centered context usage"- 1 passing./scripts/test.sh --run vs/sessions/contrib/chat/test/browser/chatView.test --grep "Sessions - Chat View"- 55 passingnpm run stylelint -- src/vs/sessions/contrib/chat/browser/media/chatView.cssnpm run eslint -- src/vs/sessions/contrib/chat/test/browser/chatView.test.tsManually verified in a narrow Agents Window with a chat background enabled: