Skip to content

Hide the deploy launcher console window on Windows#88

Open
rjckkkkk wants to merge 1 commit into
developfrom
fix/windows-hide-deploy-launcher-window
Open

Hide the deploy launcher console window on Windows#88
rjckkkkk wants to merge 1 commit into
developfrom
fix/windows-hide-deploy-launcher-window

Conversation

@rjckkkkk

Copy link
Copy Markdown
Collaborator

Problem

On Windows the native runtime launches engines via schtasks /it, which runs the launcher .bat in a visible cmd.exe console on the interactive desktop. That cmd is the engine's parent, so the C:\WINDOWS\SYSTEM32\cmd window pops up and stays open for the whole life of the deployment on every deploy.

Fix

Wrap the .bat in a one-line VBS launcher run via wscript with window style 0 (WScript.Shell.Run cmd, 0, False) → the console is hidden. Engine still runs in Session 1 (GPU access intact); PID discovery unchanged.

Verified (AMD Strix Halo Win11 rig)

aima run reaches ready; llama-server.exe runs with parent cmd.exe (now hidden), serving on its port; launcher .bat/.vbs cleaned up after PID discovery.

🤖 Generated with Claude Code

The native runtime launches engines via `schtasks /it`, which runs the launcher
.bat in a visible cmd.exe console on the interactive desktop (Session 1). Because
that cmd is the engine process's parent, the console stayed open for the whole
life of the deployment — users saw a "C:\WINDOWS\SYSTEM32\cmd" window pop up and
linger on every deploy.

Wrap the .bat in a tiny VBS launcher and run it via wscript with window style 0
(WScript.Shell.Run cmd, 0, False) so the cmd console is hidden. The engine still
runs in Session 1 (GPU access intact); PID discovery by port/name is unchanged.
Verified: llama-server runs (parent cmd.exe, hidden), deploy reaches ready,
launcher .bat/.vbs are cleaned up.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
rjckkkkk added a commit that referenced this pull request Jun 12, 2026
)

New version-stamped build aima-windows-amd64-v0.5-dev-amd-strix-halo-20260612.exe
(source commit fa35aa4) on top of the HIP-engine build. Adds, vs the 20260610 exe:

  #87 native deploy readiness uses the real runtime name (no false "not ready")
  #88 deploy launcher hidden (no cmd.exe console popup) via VBS launcher
  #89 Qwen2.5-VL-3B-Instruct catalog knowledge (vlm + aliases + verified perf)
  #90 zero-config vision: llama.cpp --mmproj auto-wired for VL gguf models
  #91 openclaw sync preflight-probes :6188 and warns loudly when unreachable

serve.bat now points at the 20260612 exe; older builds kept for rollback.
README build table + fixes list + OpenClaw data-plane guidance updated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant