fix: route stale AgentService.stateManager test refs through getStateManager (build fix for vscode-engineering#3678) #332091
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.43) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 359 lines diff across 4 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.352
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #332091"
general
weight: 0.35
dianatofficial
Build failure
The
Compiletask onmainfailed typecheckingsrc/tsconfig.jsonwith twoTS2339errors:All downstream test stages cascaded from this single compile break.
Root cause
A sealed Agent Host service graph refactor removed the public
AgentService.stateManagerescape hatch. Most call sites inagentService.test.tswere migrated to thegetStateManager(svc)helper (which delegates togetTestAgentStateManager), but two references at lines 6560 and 6633 were left pointing at the now-removedsvc.stateManagerproperty, breaking the typecheck.How the fix works
Both stale references are updated to use the existing
getStateManager(svc)helper already used throughout the same file. This routes through the composition-ownedAgentHostStateManager, restoring type correctness with no behavioral change to the tests. The helper returns the sameAgentHostStateManagerwhosegetSessionStatethese assertions already rely on.Rollback evaluation
@roblourensValidation
Static source inspection confirms
getStateManager(svc)returns anAgentHostStateManagerexposinggetSessionState, matching the surrounding usages in the same file. A fulltsgo-typecheckbuild was not run in this environment; the change is confined to replacing two removed-property accesses with the established helper.Risk
Minimal. Change is limited to two lines in a single test file, mirroring the pattern used elsewhere in the same suite. No production code is touched.
Recommended reviewer
Recommended owner:
@roblourensFixes microsoft/vscode-engineering#3678
<!-- gh-aw-agentic-workflow: build-fix, engine: copilot, model: claude-opus-4.8, id: 32552555924, workflow_id: build-fix, run: https://github.com/microsoft/vscode-engineering/actions/runs/32552555924 -->
<!-- gh-aw-workflow-id: build-fix -->
<!-- gh-aw-workflow-call-id: microsoft/vscode-engineering/build-fix -->