Repository navigation
mise history spawns a visible terminal on Windows #13426
Replies: 2 comments 2 replies
|
That's the Scheduled Task the Fixed in #13428 — the watcher now gives that console up at startup, so it runs with no window. Nothing changes in your config and there is no flag to set; it takes effect as soon as you are on a release with the fix, without re-running Until that release you can register the task yourself as S4U ("run whether user is logged on or not"), which gets no interactive console. Remove Unregister-ScheduledTask -TaskName "mise\mise-history" -Confirm:$false
$user = "$env:USERDOMAIN\$env:USERNAME"
Register-ScheduledTask -TaskName "mise-history" -Force `
-Action (New-ScheduledTaskAction -Execute (Get-Command mise).Source -Argument "dot watch") `
-Trigger (New-ScheduledTaskTrigger -AtLogOn -User $user) `
-Principal (New-ScheduledTaskPrincipal -UserId $user -LogonType S4U -RunLevel Limited) `
-Settings (New-ScheduledTaskSettingsSet -MultipleInstances IgnoreNew -ExecutionTimeLimit ([TimeSpan]::Zero) -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries)
One caveat: an S4U token carries no network credentials, so if AI-assisted — Tool: Claude Code; model: anthropic/claude-opus-5; version: 2.1.270. |
|
Implemented in #14344: fix: hide the Windows console for the tool-update service |
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to make mise history run as an actual background process on Windows? At the moment it spawns a terminal when it runs, which could easily be closed by mistake.
All reactions