feat(watchdog): auto-start watchdogs minimized at login (#11) - #12
Merged
Conversation
Add create-startup-shortcuts.ps1 to install/remove minimized Startup-folder shortcuts for both watchdogs. Runs at logon in the interactive session, non-elevated (fires on auto-login, no stored credentials needed, and avoids the elevated-orphan-worker issue from /RL HIGHEST tasks). Set stable console titles (llama-chat-watchdog, llama-embed-supervisor) so the daily restart scripts find each window reliably; titles are chosen so the chat restart no longer accidentally matches the embed watchdog window. Relaunch minimized in restart-watchdog.ps1 / restart-watchdog-embed.ps1 so the windows stay minimized after the midnight restart. Minimized (not hidden) preserves the window handle/title that the WM_CLOSE shutdown cascade targets. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
Auto-start the chat and embed watchdogs, minimized to the taskbar, at login — without breaking the daily graceful restart.
Closes #11.
Changes
create-startup-shortcuts.ps1(new) — installs/removes minimized Startup-folder shortcuts for both watchdogs. Runs at logon in the interactive session, non-elevated (fires on the machine''s password-less auto-login, needs no stored credentials, and avoids the elevated-orphan-worker issue seen with/RL HIGHESTtasks). Supports-Removeto uninstall.watchdog.ps1/watchdog-embed.ps1— set stable console titles (llama-chat-watchdog,llama-embed-supervisor) so the restart scripts find each window reliably. Titles are chosen so the chat restart (*watchdog*) no longer accidentally matches the embed watchdog window.restart-watchdog.ps1/restart-watchdog-embed.ps1— relaunch minimized so windows stay minimized after the midnight restart.Why minimized, not hidden
The daily restart finds each watchdog console window by title and sends
WM_CLOSEto cascade a cleanllama-servershutdown. A hidden window has no handle to target, so the watchdogs run minimized (handle/title preserved) rather than fully hidden.Testing
WindowStyle=7(minimized).:8001and:8003/healthboth return200, with 2xllama-server+ 2xpythonrunning.#8; branched frommain.🤖 Generated with Claude Code