fix(windows): start and persist host agent after install#954
Merged
Lightheartdevs merged 1 commit intomainfrom Apr 13, 2026
Merged
fix(windows): start and persist host agent after install#954Lightheartdevs merged 1 commit intomainfrom
Lightheartdevs merged 1 commit intomainfrom
Conversation
The Windows installer never ported the host agent setup from Linux Phase 07. After install, the dashboard showed "Host agent is offline" and extension management was broken. - Add agent constants to constants.ps1 (port, PID file, log, health URL, task name) - Start agent in 07-devtools.ps1 with reinstall handling and scheduled task registration for login persistence - Add Invoke-Agent function to dream.ps1 with status/start/stop/restart/logs - Integrate agent into dream.ps1 start/stop/status commands - Prepend Docker bin to PATH in agent launch to handle fresh Docker installs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sensitive Files DetectedTrigger: Security-sensitive files detected: dream-server/installers/ Files flagged: Extra human review is recommended for this PR. Claude Code Review | Sensitive File Detection | ~$1.50 |
Lightheartdevs
added a commit
that referenced
this pull request
Apr 18, 2026
…ery --max-time Three small bug fixes from PR #985 audit: 1. Windows: WHISPER_PORT was hardcoded to 9000. If a user sets a different port in .env (port conflict resolution), the pre-download block probed the wrong port and failed silently. Now resolves dynamically like Linux/macOS. 2. Windows: Get-Content can choke on legacy BOM-prefixed .env files (written by old Set-Content -Encoding UTF8 in pre-PR-#954 installs). Switch to [System.IO.File]::ReadAllText with UTF8NoBom, and defensively strip any leading BOM byte regardless. 3. Linux: Phase 12's STT_RECOVERY_CMD string omitted --max-time 3600, so users running the printed recovery curl could hang indefinitely. macOS and Windows already had --max-time; Linux now matches.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.\dream.ps1 agent start/stop/restart/status/logs)Changes
installers/windows/lib/constants.ps1installers/windows/phases/07-devtools.ps1DreamServerHostAgentWindows Scheduled Task for login persistencedocker.exeon fresh installsinstallers/windows/dream.ps1Invoke-Agentfunction withstatus|start|stop|restart|logssubcommands (mirrors Linuxcmd_agent())agentcommand into dispatch switchInvoke-Statusoutputdream.ps1 start(all services)dream.ps1 stop(all services)Test plan
.\dream.ps1 agent status— reports running/not responding.\dream.ps1 agent start— starts agent, health check passes.\dream.ps1 agent stop— stops agent, cleans PID file.\dream.ps1 agent restart— stop + start cycle.\dream.ps1 status— shows Host Agent line in status output.\dream.ps1 agent logs— tails log fileNote
The Windows
python3.exeApp Execution Alias (Microsoft Store redirect) can crash the agent if it spawnspython3internally. Users who encounter this should disable the alias in Settings → Apps → Advanced app settings → App execution aliases. This is a pre-existing agent issue, not introduced by this PR.🤖 Generated with Claude Code