Interceptor LaunchTestProfile.sh: no Windows (Git Bash/MSYS) branch, test profile never launches

Abierto Apto para principiantes
#3,150 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
84/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bash, shell
Área
cli, tooling

Línea de trabajo

Lee skills/Interceptor/Tools/LaunchTestProfile.sh alrededor de la línea 113 y compara después las ramas existentes para Darwin y Linux con la reproducción documentada en Windows. Ejecuta la prueba aislada del issue con Git Bash o MSYS y comprueba después que finaliza correctamente con el binario del navegador configurado; se considera terminado cuando Windows inicia el perfil de prueba solicitado con los argumentos indicados.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Version

LifeOS 8.761.0 · attestation: unattested (could not extract v8.761.0: tar (child): Cannot connect to C: resolve failed

gzip: stdin: unexpected end of file
tar: Child returned status 128
tar: Error is not recoverable: exiting now)

What is broken

On Windows (Git Bash / MSYS2, which the Interceptor preflight scripts run under), LaunchTestProfile.sh only has Darwin and Linux branches in its uname -s case, so uname reporting MINGW64_NT-* falls through to "unsupported OS" and exits 1. EnsureTestProfile.sh then reports that it failed to launch the test profile and exits 5, so every browser intent fails its gate whenever the test window is not already open. This happens even though upstream Interceptor ships signed Windows installers (2.1.17) and the CLI, daemon and extension all work there.

Where (file:line)

skills/Interceptor/Tools/LaunchTestProfile.sh:113

Repro on a clean tree
1. On Windows 11 with Git Bash, install Interceptor 2.1.17 (`Interceptor-Browser-2.1.17-windows-x64.exe`) and set up preferences.env and the test profile per Setup.md.
2. Close the test-profile Chrome window.
3. Run `bash skills/Interceptor/Tools/EnsureTestProfile.sh`. It prints `LaunchTestProfile.sh failed to launch "Profile N"` and exits 5.
4. Isolated probe (no browser opened): `CLAUDE_CONFIG_DIR=no-such-config INTERCEPTOR_TEST_CHROME_PROFILE="Profile 9" INTERCEPTOR_TEST_BROWSER_BIN=true bash skills/Interceptor/Tools/LaunchTestProfile.sh` gives exit 1, `unsupported OS MINGW64_NT-10.0-26200`.
Negative control

Probe: CLAUDE_CONFIG_DIR=no-such-config INTERCEPTOR_TEST_CHROME_PROFILE="Profile 9" INTERCEPTOR_TEST_BROWSER_BIN=true bash skills/Interceptor/Tools/LaunchTestProfile.sh · exit 1 · captured 2026-12-03T01:53:12.021Z

Red looks like: unsupported OS MINGW64_NT

LaunchTestProfile.sh: unsupported OS MINGW64_NT-10.0-26200
Suggested fix

Add a MINGW*|MSYS*|CYGWIN* branch that calls chrome.exe directly (honoring INTERCEPTOR_TEST_BROWSER_BIN, defaulting to the standard Program Files path) with the same --profile-directory/--new-window args, backgrounded like the Darwin and Linux branches. Chrome's process singleton forwards the args to a running instance. Verified: the probe goes to exit 0, and with the test window closed, EnsureTestProfile.sh relaunched it and printed READY. Separately, Report.ts attest fails on Windows because tar reads C: as a remote host (it needs --force-local); that's not in this diff.

--- a/skills/Interceptor/Tools/LaunchTestProfile.sh
+++ b/skills/Interceptor/Tools/LaunchTestProfile.sh
@@ -110,6 +110,16 @@
             "$START_URL" >/dev/null 2>&1 &
         exit 0
         ;;
+    MINGW*|MSYS*|CYGWIN*)
+        # Windows under Git Bash / MSYS: chrome.exe forwards args to a running
+        # instance via its process singleton, same as the Darwin direct-binary path.
+        CHROME_BIN="${INTERCEPTOR_TEST_BROWSER_BIN:-/c/Program Files/Google/Chrome/Application/chrome.exe}"
+        "$CHROME_BIN" \
+            --profile-directory="$CHROME_PROFILE" \
+            --new-window ${WIN_ARGS[@]+"${WIN_ARGS[@]}"} \
+            "$START_URL" >/dev/null 2>&1 &
+        exit 0
+        ;;
     *)
         echo "LaunchTestProfile.sh: unsupported OS $(uname -s)" >&2
         exit 1
Verified after fix

Probe: CLAUDE_CONFIG_DIR=no-such-config INTERCEPTOR_TEST_CHROME_PROFILE="Profile 9" INTERCEPTOR_TEST_BROWSER_BIN=true bash skills/Interceptor/Tools/LaunchTestProfile.sh · exit 0 · captured 2026-12-03T01:53:12.676Z

(no output)
Environment
  • OS: Windows (x64)
  • Harness: claude-code
  • bun: not found · git: not found
  • Doctor broken: interceptor, imagemagick
Lenguaje dominante
TypeScript
Estrellas
20.7k
Forks
2.6k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de danielmiessler/LifeOS

Todos los issues de danielmiessler/LifeOS

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.