Skip to content

Commit b62f5c6

Browse files
ouyyyyangclaude
andcommitted
run start-local-agent.ps1 in foreground for clearer failures
Running via cmd /c start.bat in the background hides ps1 errors. Invoke ps1 directly so any exception surfaces in the runner log. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f69c7d6 commit b62f5c6

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/windows-smoke.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,13 @@ jobs:
2626
shell: pwsh
2727
run: npm ci
2828

29-
- name: Start agent via start.bat
29+
- name: Start agent via start-local-agent.ps1 (foreground)
3030
shell: pwsh
3131
run: |
32-
$ErrorActionPreference = "Stop"
33-
Write-Host "Launching start.bat in background..."
34-
$proc = Start-Process `
35-
-FilePath "cmd.exe" `
36-
-ArgumentList "/c", "start.bat" `
37-
-WorkingDirectory "$env:GITHUB_WORKSPACE" `
38-
-WindowStyle Hidden `
39-
-PassThru
40-
Write-Host "start.bat launcher PID: $($proc.Id)"
32+
$ErrorActionPreference = "Continue"
33+
Write-Host "Running start-local-agent.ps1 in foreground to surface errors..."
34+
& "$env:GITHUB_WORKSPACE\scripts\dev\start-local-agent.ps1"
35+
Write-Host "start-local-agent.ps1 exit code: $LASTEXITCODE"
4136
4237
- name: Wait for agent to be ready
4338
shell: pwsh

0 commit comments

Comments
 (0)