Command: powershell -NoProfile -ExecutionPolicy Bypass -Command "$ErrorActionPreference='Stop';$root='C:\Users\ash\Documents\Codex\2026-08-26\LaptopBridge-DEV';$driveRoot='G:\My Drive\ChatGPT Bridge Data\dev-bridge';$lines=@('$ErrorActionPreference = \"Stop\"','$root = Split-Path -Parent $MyInvocation.MyCommand.Path','$env:CHATGPT_BRIDGE_DRIVE_ROOT = \"G:\My Drive\ChatGPT Bridge Data\dev-bridge\"','$existing = Get-NetTCPConnection -LocalPort 8766 -State Listen -ErrorAction SilentlyContinue','if ($existing) { Write-Output \"DEV_BRIDGE_ALREADY_RUNNING\"; exit 0 }','$python = (Get-Command python.exe -ErrorAction Stop).Source','$data = Join-Path $root \"bridge-data\"','New-Item -ItemType Directory -Force -Path $data | Out-Null','Start-Process -FilePath $python -ArgumentList \"bridge.py\" -WorkingDirectory $root -WindowStyle Hidden -RedirectStandardOutput (Join-Path $data \"dev-bridge.stdout.log\") -RedirectStandardError (Join-Path $data \"dev-bridge.stderr.log\")','Write-Output \"DEV_BRIDGE_START_REQUESTED\"');Set-Content -LiteralPath (Join-Path $root 'start-dev-bridge.ps1') -Value $lines -Encoding UTF8;& (Join-Path $root 'start-dev-bridge.ps1');Start-Sleep -Seconds 3;$resp=Invoke-WebRequest -UseBasicParsing -Uri 'http://127.0.0.1:8766/health' -TimeoutSec 5;[pscustomobject]@{ok=($resp.StatusCode -eq 200);port=8766;health=$resp.Content.Trim();revision=((Select-String -Path (Join-Path $root 'bridge.py') -Pattern '^REVISION').Line);drive_lane=((Select-String -Path (Join-Path $root 'bridge.py') -Pattern '^DRIVE_LANE_REVISION').Line);production_8765=[bool](Get-NetTCPConnection -LocalPort 8765 -State Listen -ErrorAction SilentlyContinue);dev_8766=[bool](Get-NetTCPConnection -LocalPort 8766 -State Listen -ErrorAction SilentlyContinue);config_exists=(Test-Path (Join-Path $root 'config.json'))}|ConvertTo-Json -Compress"
Directory: projects
Status: FAILED
Exit code: 1
Cancel Job Rerun Command Refresh
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
---DEV_BRIDGE_START_REQUESTED
Invoke-WebRequest : Unable to connect to the remote server
At line:1 char:1109
+ ... nds 3;$resp=Invoke-WebRequest -UseBasicParsing -Uri 'http://127.0.0.1 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand