fix(windows): add windowless agent-libw for scheduled sync #1

Merged
m3tam3re merged 1 commits from fix/windows-windowless-sync into master 2026-10-31 14:43:04 +01:00
Owner

Problem

agent-lib.exe is a console program, so Windows opens a terminal window on every scheduled agent-lib sync run.

Fix

  • Ship agent-libw.exe in the Windows zip: the same program built with -H=windowsgui, so it opens no window and prints nothing. agent-lib.exe stays the terminal entry point.
  • Start the PowerShell toast without a window, since agent-libw has no console to inherit.
  • Document the required task action change in docs/fleet-handoff.md and the README troubleshooting table.

Rollout

After the release, the scheduled task must run agent-libw.exe sync. Tasks still pointing at agent-lib.exe keep showing the window.

Testing

  • CGO_ENABLED=0 go test ./... passes.
  • GoReleaser snapshot builds; the Windows zip contains both executables, with PE subsystem 3 (console) for agent-lib.exe and 2 (GUI) for agent-libw.exe.
  • Not yet tested on real Windows: no window during a task run, and the toast still appears when an item is skipped.

🤖 Generated with Claude Code

## Problem `agent-lib.exe` is a console program, so Windows opens a terminal window on every scheduled `agent-lib sync` run. ## Fix - Ship `agent-libw.exe` in the Windows zip: the same program built with `-H=windowsgui`, so it opens no window and prints nothing. `agent-lib.exe` stays the terminal entry point. - Start the PowerShell toast without a window, since `agent-libw` has no console to inherit. - Document the required task action change in `docs/fleet-handoff.md` and the README troubleshooting table. ## Rollout After the release, the scheduled task must run `agent-libw.exe sync`. Tasks still pointing at `agent-lib.exe` keep showing the window. ## Testing - `CGO_ENABLED=0 go test ./...` passes. - GoReleaser snapshot builds; the Windows zip contains both executables, with PE subsystem 3 (console) for `agent-lib.exe` and 2 (GUI) for `agent-libw.exe`. - Not yet tested on real Windows: no window during a task run, and the toast still appears when an item is skipped. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
m3tam3re added 1 commit 2026-10-31 14:39:38 +01:00
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>
m3tam3re merged commit 0b91a8a2a7 into master 2026-10-31 14:43:04 +01:00
m3tam3re deleted branch fix/windows-windowless-sync 2026-10-31 14:43:04 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: m3tam3re/agent-lib#1