From 76b4ba00f965f469be9052e68da1f3a9334917d2 Mon Sep 17 00:00:00 2001 From: jesse-ux Date: Tue, 13 Oct 2026 12:19:57 +0800 Subject: [PATCH] tools(agent-loop): make install-grok.ps1 parse on Windows PowerShell 5.1 $TaskName: in a double-quoted string is read as a drive-qualified variable, so the script died before -RunOnce. --- tools/agent-loop/install-grok.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/agent-loop/install-grok.ps1 b/tools/agent-loop/install-grok.ps1 index 53e98c99..6d502261 100644 --- a/tools/agent-loop/install-grok.ps1 +++ b/tools/agent-loop/install-grok.ps1 @@ -48,5 +48,5 @@ $settings = New-ScheduledTaskSettingsSet -MultipleInstances IgnoreNew -StartWhen -ExecutionTimeLimit (New-TimeSpan -Hours 2) -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries Register-ScheduledTask -TaskName $TaskName -Action $action -Trigger $trigger -Settings $settings ` -Description 'Jyotisha agent loop: Grok executes agent/todo issues' -Force | Out-Null -Write-Host "registered $TaskName: every $($cfg.tick_minutes) min while you are logged on" +Write-Host "registered ${TaskName}: every $($cfg.tick_minutes) min while you are logged on" Write-Host "pause: create $HOME\.config\jyotisha-agent\STOP log: $HOME\.jyotisha-agent\state\grok-tick.log"