fix: wait for AutoCAD command-queue readiness barrier

This commit is contained in:
codex
2026-08-04 07:28:32 +03:00
parent 1b4ff816ba
commit 98564b807f
3 changed files with 23 additions and 2 deletions
@@ -50,6 +50,12 @@ public sealed class EntryPoint : IExtensionApplication
[CommandMethod("PHP_REC_AUTOMATION_START", CommandFlags.Session)]
public void AutomationStartCommand() => FirstLimitedApplyAutomationBootstrap.Arm();
// Test-only command-queue barrier. It deliberately performs no Plant or
// drawing work; its CommandEnded event proves the activated document is
// ready before the coordinator calls the Plant APIs.
[CommandMethod("PHP_REC_AUTOMATION_READY")]
public void AutomationReadyCommand() { }
private static void RunDiagnostic(string commandName)
{
var operationId = Guid.NewGuid().ToString("N");