Skip to content

fix: widen ReconnectState test window to fix CI failure#321

Merged
PureWeen merged 1 commit intomainfrom
fix/service-not-initialized-reconnect-20260309
Mar 9, 2026
Merged

fix: widen ReconnectState test window to fix CI failure#321
PureWeen merged 1 commit intomainfrom
fix/service-not-initialized-reconnect-20260309

Conversation

@PureWeen
Copy link
Copy Markdown
Owner

@PureWeen PureWeen commented Mar 9, 2026

CI Failure

ReconnectState_ShouldCarryIsMultiAgentSession fails in CI (run) with:

Assert.Contains() Failure: Sub-string not found
String:    "newState.HasUsedToolsThisTurn = state.Has"···
Not found: "newState.IsMultiAgentSession = state.IsMu"···

Root Cause

This source-scanning test checks that IsMultiAgentSession is carried forward near HasUsedToolsThisTurn in the reconnect block of SendPromptAsync. The test uses a 200-char search window, but the SuccessfulToolCountThisTurn carry-forward line (added in a later PR between the two) pushed IsMultiAgentSession beyond that window.

The production code is correct — IsMultiAgentSession IS properly carried forward at line 2471.

Fix

Widened the search window from 200 → 400 chars to accommodate intermediate carry-forward lines.

All 2279 tests pass.

…uccessfulToolCountThisTurn

The ReconnectState_ShouldCarryIsMultiAgentSession test scans CopilotService.cs
source to verify IsMultiAgentSession is carried forward near HasUsedToolsThisTurn
in the reconnect block. The 200-char search window was too narrow after
SuccessfulToolCountThisTurn was added between them, causing CI failure.

Widened to 400 chars.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@PureWeen PureWeen merged commit d826342 into main Mar 9, 2026
@PureWeen PureWeen deleted the fix/service-not-initialized-reconnect-20260309 branch March 9, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant