fix(gates): select a character in connected graphical runs

This commit is contained in:
Erik 2026-08-22 13:24:39 +02:00
parent 7a5f96ede5
commit 0b6c6557a8
4 changed files with 107 additions and 2 deletions

View file

@ -287,6 +287,7 @@ function Invoke-Session(
try {
$client = Start-Process -FilePath $exe -WorkingDirectory $Repository `
-ArgumentList @('--session-config', ('"' + $sessionConfigPath + '"')) `
-RedirectStandardOutput $stdout -RedirectStandardError $stderr -PassThru
Wait-ForPattern $client $stdout '[UI-PROBE] UI probe script complete' $SessionTimeoutSeconds
@ -558,6 +559,9 @@ $renderPackGate = New-ConnectedRenderPackGateState `
-Root $root `
-Preset $RenderPackPreset `
-SettingOverrides $RenderPackSettingOverrides
$sessionConfigPath = New-ConnectedGraphicalSessionConfig `
-State $renderPackGate `
-Account $Account
try {
if (@(Get-Process -Name AcDream.App -ErrorAction SilentlyContinue).Count -gt 0) {
throw 'an AcDream.App client is already running; close it gracefully before the gate'
@ -683,7 +687,13 @@ try {
foreach ($warning in $warnings) { Write-Output "WARNING=$warning" }
}
finally {
Restore-ConnectedRenderPackGateEnvironment $renderPackGate
try {
Remove-ConnectedGraphicalSessionConfig `
-State $renderPackGate -Path $sessionConfigPath
}
finally {
Restore-ConnectedRenderPackGateEnvironment $renderPackGate
}
}
if ($failures.Count -gt 0) { exit 1 }