v1.2.2-rc1 (test) — fix Windows schtasks /tr 261-char limit
Pre-release
⚠️ Test / pre-release for customer validation. Not the latest stable release. Code: branchfix/windows-schtasks-261in tfy-local-ai-setup-source.
Fix
Windows: schtasks /create failed with Value for '/tr' option cannot be more than 261 character(s).
The device-login command (self path + control-plane URL + two temp-file paths + redirects) exceeded the schtasks /tr 261-character limit — introduced in v1.2.1 when stderr began being redirected to a log file. The command is now written to a small .cmd wrapper and the scheduled task runs the wrapper, keeping /tr short (~85 chars) regardless of path/URL length.
This affected all first-time logins on machines with typical user/temp path lengths on v1.2.1, with or without --debug/--log-file.
Includes everything from v1.2.1 (Windows browser-open fix via cmd /c start, live-streamed device-login output, --debug/--log-file, configure-only-installed-tools).
Test command (elevated PowerShell)
.\tfy-local-ai-setup-windows-amd64.exe --debug `
--url="https://<control-plane>" --tenant="<tenant>" `
--gateway="https://<control-plane>/api/llm" `
--log-file="$env:TEMP\tfy-mdm.log"