fix(windows): add windowless agent-libw for scheduled sync
agent-lib.exe is a console program, so Windows opens a terminal window on every scheduled run. Ship agent-libw.exe, the same program built with -H=windowsgui, in the Windows zip for use in the task action. Start the PowerShell toast without a window, since agent-libw has no console to inherit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5e7d693699
commit
e41ffa6a14
5 files changed
+32
-1
No files matched your search
+10
-1
@@ -27,7 +27,8 @@ the external areas).
|
||||
|
||||
- Source of truth: GitHub releases of `m3tam3re/agent-lib`.
|
||||
- Artifacts: `agent-lib_{windows_amd64,linux_amd64,linux_arm64,darwin_amd64,darwin_arm64}`
|
||||
plus `checksums.txt` (tar.gz archives; windows is a zip).
|
||||
plus `checksums.txt` (tar.gz archives; windows is a zip containing
|
||||
`agent-lib.exe` and the windowless `agent-libw.exe`).
|
||||
- Fleet pins an exact release tag (installer-pin pattern already used for
|
||||
other tools). **No self-update exists in the binary** — binary updates are
|
||||
exclusively fleet rollouts. Content updates are pulled by the binary itself.
|
||||
@@ -68,6 +69,12 @@ Local state (manifest, cached bare repo, sync log) lives per-user:
|
||||
against the user's profile.
|
||||
2. Windows toast notifications require an interactive user session. A task
|
||||
running as SYSTEM produces no visible toasts.
|
||||
- On Windows, the task action must run `agent-libw.exe sync`, not
|
||||
`agent-lib.exe sync`. `agent-lib.exe` is a console program, so Windows opens
|
||||
a terminal window for it on every run. `agent-libw.exe` is the same program
|
||||
without a console. It prints nothing, so check the task's last run result
|
||||
(`0` = success, `1` = failed), and run `agent-lib.exe sync` by hand to see
|
||||
the error.
|
||||
- Suggested cadence: every 1–4 hours plus/except at logon. Sync is idempotent
|
||||
and cheap when unchanged.
|
||||
- Optional companion: a drift check running `agent-lib status --json`
|
||||
@@ -132,6 +139,8 @@ Local state (manifest, cached bare repo, sync log) lives per-user:
|
||||
admins; token present.
|
||||
- [ ] Scheduled task runs as the logged-in user; toast appears when a
|
||||
modified item is skipped (manual visual check on a Windows client).
|
||||
- [ ] Windows task action uses `agent-libw.exe`; no terminal window appears
|
||||
when the task runs.
|
||||
- [ ] `agent-lib status` exits 0 on a clean machine, non-zero after editing a
|
||||
deployed file (self-test).
|
||||
- [ ] Drift monitoring consumes `status --json` → `problematic_drift`.
|
||||
Reference in new issue
Block a user