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

オープン 初心者向け
#3,150 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bash, shell
領域
cli, tooling

調査の方向性

skills/Interceptor/Tools/LaunchTestProfile.sh の113行目付近を読み、既存のDarwinおよびLinuxの分岐と、文書化されたWindowsでの再現手順を比較します。Git BashまたはMSYSでissueにある分離されたプローブを実行し、設定済みのブラウザバイナリを使って正常に終了することを確認します。Windowsが指定された引数で要求されたテストプロファイルを起動できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
TypeScript
スター
20.7k
フォーク
2.6k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

danielmiessler/LifeOS のほかの issue

danielmiessler/LifeOS の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。