From 97a852c9f334d05adaa3d8d30798b7b78acd3efc Mon Sep 17 00:00:00 2001 From: Simone Date: Fri, 8 May 2026 23:59:51 +0200 Subject: [PATCH] fix: use Start-Transcript -Append to allow nested transcript in VS Code session --- scripts/Invoke-CIJob.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Invoke-CIJob.ps1 b/scripts/Invoke-CIJob.ps1 index 05b6022..ce66e8e 100644 --- a/scripts/Invoke-CIJob.ps1 +++ b/scripts/Invoke-CIJob.ps1 @@ -166,7 +166,9 @@ try { $jobLogDir = Join-Path $LogDir $JobId if (-not (Test-Path $jobLogDir)) { New-Item -ItemType Directory -Path $jobLogDir -Force | Out-Null } $transcriptPath = Join-Path $jobLogDir 'invoke-ci.log' - Start-Transcript -Path $transcriptPath -Force -ErrorAction Stop + # -Append allows starting a new transcript even when VS Code (or another host) + # has already opened a transcript on this PowerShell session. + Start-Transcript -Path $transcriptPath -Append -Force -ErrorAction Stop $transcriptStarted = $true } catch {