#11001: ACP: make --reset-session asynchronous and track pending resets; add PowerShell wrapper for scheduled tasks
docs
gateway
stale
size: M
Cluster:
Session Management Improvements
This is the fix for issue #10693 and #10933.
Optimize ACP --reset-session to be asynchronous to minimize latency for clients like Zed.
- Implement pendingReset tracking in the session store.
- Add PowerShell wrapper for hidden execution of scheduled tasks on Windows.
- Updated documentation, changelog, and unit tests.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
- Makes ACP `--reset-session` non-blocking by starting the gateway reset in the background and deferring the await until the first `prompt()`.
- Adds `pendingReset` tracking to the in-memory ACP session store/types so prompt sending can wait for completion.
- Updates docs/changelog and extends unit tests for session reset behavior.
- Updates Windows scheduled-task installation to generate a `.ps1` wrapper (hidden `Start-Process`) and point the task at PowerShell instead of the `.cmd` directly.
<h3>Confidence Score: 3/5</h3>
- This PR is close to mergeable but has a couple of runtime failure modes that should be fixed first.
- Main risks are (1) a failed async session reset can permanently break prompting for that session due to an unhandled rejected pendingReset promise, and (2) the Windows scheduled task command includes a PowerShell flag that can cause task launch failures depending on the installed PowerShell/Windows variant.
- src/acp/translator.ts, src/daemon/schtasks.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#14018: fix: auto-remind AI to check workspace context files on session reset
by WalterSumbon · 2026-02-11
71.4%
#6653: fix: persist archived session entry on /new or /reset
by leicao-me · 2026-02-01
71.3%
#12615: Add configurable resetPrompt option to config, customizing prompt a...
by htahboub · 2026-02-09
70.5%
#14358: fix: preserve session overrides (verbose, model) across /new or /rese…
by WyattSanders · 2026-02-12
70.5%
#5496: Fix: Windows path separators stripped in Gateway scheduled task
by giuliozelante · 2026-01-31
70.3%
#11613: fix: clear stale model metadata on /new and /reset
by mcaxtr · 2026-02-08
69.6%
#10836: feat(session_status): include ISO-8601 and Unix timestamps for sche...
by jeanlucthumm · 2026-02-07
69.3%
#5950: Improvement/windows shell enhancement
by zzjj7000 · 2026-02-01
69.1%
#8919: Pr/memory flush improvements
by shortbus · 2026-02-04
68.6%
#19504: fix(gateway): avoid stale running status from Windows Scheduled Task
by Fologan · 2026-02-17
68.6%