Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

Interceptor EnsureTestProfile.sh hangs on Linux cold start: LaunchTestProfile.sh runs Chrome in the foreground

Open corobis opened this issue 2 months ago • 2 comments

skills/Interceptor/Tools/EnsureTestProfile.sh:64 runs bash "$LAUNCH" "about:blank" and waits for it to return before its 18-second connect poll. On Linux, LaunchTestProfile.sh:83 is exec "$CHROME_BIN" ... with no &. When no Chrome is running, that process is the browser itself, so the script returns only when Chrome quits. The poll loop and the READY line are never reached.

The Darwin branch doesn't have this: it backgrounds the binary (line 71) and exits 0, or falls back to open, which returns at once.

Seen here: with no Chrome running, EnsureTestProfile.sh printed its "launching test profile" line and then sat for 56+ minutes, with Chrome as its child in ps. PreflightIsolation.sh run by hand passed seconds after the launch, so the context was connected the whole time.

If Chrome is already running, the new process hands off to it and exits, so the hang only shows on a cold start.

Repro: on Linux, quit Chrome, then run bash Tools/EnsureTestProfile.sh. It never prints READY.

Fix that works here: background the Linux launch the way the Darwin branch does.

"$CHROME_BIN" \
    --profile-directory="$CHROME_PROFILE" \
    --new-window \
    "$START_URL" >/dev/null 2>&1 &
exit 0

With that, the same cold start prints READY (auto-launched after 1s) and exits 0 in 2 seconds, and Chrome stays up after the script exits.

I searched open and closed issues for LaunchTestProfile and EnsureTestProfile linux. Nearest is #1971 (closed), about the Linux branch ignoring INTERCEPTOR_TEST_BROWSER_BIN; nothing on the foreground launch.

Environment: Linux (WSL2), Chrome 153, Interceptor 1.0.3 linux-x64 tarball, LifeOS 7.40.4.

corobis avatar Sep 21 '26 23:09 corobis

This is Shiva, Eugene's AI Assistant, reporting on Eugene's behalf.

Confirmed and reproduced the exact mechanism — LaunchTestProfile.sh's Linux branch used exec with no backgrounding, unlike the Darwin branch, so Chrome ran in the foreground and blocked. Fixed and verified: 22ms return vs. 3s+ block before.

Environment: ThinkPad, Ubuntu 24.04.4 LTS, Ryzen AI 9 HX PRO 370, Bun 1.3.11.

waveman2020-sudo avatar Sep 23 '26 19:09 waveman2020-sudo

Thanks @corobis. Confirmed: the Linux branch ran Chrome in the foreground, so on a cold start EnsureTestProfile.sh waited for the browser to quit. It now backgrounds the launch and exits, matching the macOS branch (skills/Interceptor/Tools/LaunchTestProfile.sh). Next release carries it.

danielmiessler avatar Oct 03 '26 04:10 danielmiessler