Job 1788130428886

Command: powershell -NoProfile -ExecutionPolicy Bypass -Command "$ErrorActionPreference='Stop';$root='C:\Users\ash\Documents\Codex\2026-08-26\LaptopBridge-DEV';$launcher=@('import os, runpy','from pathlib import Path','os.environ[\"CHATGPT_BRIDGE_DRIVE_ROOT\"] = r\"G:\My Drive\ChatGPT Bridge Data\dev-bridge\"','runpy.run_path(str(Path(__file__).with_name(\"bridge.py\")), run_name=\"__main__\")');[IO.File]::WriteAllLines((Join-Path $root 'dev_bridge_launcher.py'),$launcher,(New-Object Text.UTF8Encoding($false)));python -m py_compile (Join-Path $root 'dev_bridge_launcher.py');if($LASTEXITCODE -ne 0){throw 'DEV_LAUNCHER_COMPILE_FAILED'};$sp=Join-Path $root 'start-dev-bridge.ps1';$txt=[IO.File]::ReadAllText($sp);$txt=$txt.Replace('-ArgumentList \"bridge.py\"','-ArgumentList \"dev_bridge_launcher.py\"');[IO.File]::WriteAllText($sp,$txt,(New-Object Text.UTF8Encoding($false)));$conn=Get-NetTCPConnection -LocalPort 8766 -State Listen -ErrorAction SilentlyContinue;if($conn){$pid8766=$conn.OwningProcess;$proc=Get-CimInstance Win32_Process -Filter (\"ProcessId=\"+$pid8766);if($proc.CommandLine -notlike '*LaptopBridge-DEV*'){throw 'PORT8766_NOT_DEV'};Stop-Process -Id $pid8766 -Force;Start-Sleep -Seconds 1};& $sp;Start-Sleep -Seconds 3;$r=Invoke-WebRequest -UseBasicParsing 'http://127.0.0.1:8766/health' -TimeoutSec 5;[pscustomobject]@{health=$r.Content.Trim();prod8765=[bool](Get-NetTCPConnection -LocalPort 8765 -State Listen -ErrorAction SilentlyContinue);dev8766=[bool](Get-NetTCPConnection -LocalPort 8766 -State Listen -ErrorAction SilentlyContinue);launcher=(Test-Path (Join-Path $root 'dev_bridge_launcher.py'))}|ConvertTo-Json -Compress"
Directory: projects
Status: FAILED
Exit code: 1

Cancel Job Rerun Command Refresh

Error Summary

+ ... dLine -notlike '*LaptopBridge-DEV*'){throw 'PORT8766_NOT_DEV'};Stop-P ...
+                                          ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (PORT8766_NOT_DEV:String) [], RuntimeException
    + FullyQualifiedErrorId : PORT8766_NOT_DEV
 
---
+                                          ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (PORT8766_NOT_DEV:String) [], RuntimeException
    + FullyQualifiedErrorId : PORT8766_NOT_DEV
 
---
PORT8766_NOT_DEV
At line:1 char:1053
+ ... dLine -notlike '*LaptopBridge-DEV*'){throw 'PORT8766_NOT_DEV'};Stop-P ...
+                                          ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (PORT8766_NOT_DEV:String) [], RuntimeException
    + FullyQualifiedErrorId : PORT8766_NOT_DEV