fix: match active fixture document by stable name

This commit is contained in:
codex
2026-08-04 07:26:45 +03:00
parent 13578b7c9b
commit 1b4ff816ba
2 changed files with 3 additions and 2 deletions
@@ -199,7 +199,8 @@ internal sealed class FirstLimitedApplyAutomationCoordinator
// coordinator receives the returned Document. Confirm the current
// active document after assignment so that one missed event cannot
// strand the workflow waiting for another startup Idle.
if (ReferenceEquals(AcadApplication.DocumentManager.MdiActiveDocument, document))
var activeDocument = AcadApplication.DocumentManager.MdiActiveDocument;
if (activeDocument is not null && string.Equals(activeDocument.Name, document.Name, StringComparison.OrdinalIgnoreCase))
{
fixtureDocumentActivated = true;
transitions.Add("FixtureDocumentActiveAfterOpen");