Summary
SuggestionStore.FindDuplicate writes a fuzzy duplicate diagnostic to Console.Error. In parallel test runs, another test can temporarily replace and dispose Console.Error, causing TryAddAndSubmit_FuzzyDuplicate_ReturnsMatchedHashAndScore to fail with ObjectDisposedException: Cannot write to a closed TextWriter on Windows net9.0 CI.
Observed
PR #2675 failed build (windows-latest, net9.0) with:
CodeIndex.Tests.SuggestionStoreTests.TryAddAndSubmit_FuzzyDuplicate_ReturnsMatchedHashAndScore
System.ObjectDisposedException: Cannot write to a closed TextWriter.
at CodeIndex.Cli.SuggestionStore.FindDuplicate(...)
Expected
Fuzzy duplicate diagnostics should be best-effort and should not fail suggestion deduplication when stderr is unavailable or temporarily replaced.
Summary
SuggestionStore.FindDuplicatewrites a fuzzy duplicate diagnostic toConsole.Error. In parallel test runs, another test can temporarily replace and disposeConsole.Error, causingTryAddAndSubmit_FuzzyDuplicate_ReturnsMatchedHashAndScoreto fail withObjectDisposedException: Cannot write to a closed TextWriteron Windows net9.0 CI.Observed
PR #2675 failed
build (windows-latest, net9.0)with:Expected
Fuzzy duplicate diagnostics should be best-effort and should not fail suggestion deduplication when stderr is unavailable or temporarily replaced.