Repository navigation
Backlog
Labels
Description
Parent
What to build
An upgrade or uninstall works on Windows while a hook is running.
- The Windows arm of
hook_copies::replacemoves the current copy aside to<name>.old-<n>.exe(a running.execan be renamed, not replaced) and puts the new one at the stable path, one binary at a time as the Unix arm does. Each start deletes.old-*copies, leaving any still running.installis no longer stopped by a running hook. - Uninstall's Windows arm removes what it can, moves a running copy aside, and names what is left to delete once its session ends, instead of stopping with "could not remove".
Acceptance criteria
- Windows-job tests with a running copy: replace succeeds and the new copy is at the stable path; a start deletes a stopped
.old-*and keeps a running one; uninstall finishes and names the leftover. - Each Windows-only test row is shown red (an assertion failure), then green, on Windows runs of this ticket's own pushed
issue-*branch, x64 and arm64; Daniel approves the push when auto mode stops it (Spec: Windows Phase 1 — Claude Code recorded on native Windows, x64 and arm64 #936 breakdown, Q41; the rule is indocs/agents/issue-tracker.mdonce 01 lands). Both run links are in the PR. -
npm run checkandnpm run check:windowspass.
Reading
- Spec: Windows Phase 1 — Claude Code recorded on native Windows, x64 and arm64 #936: the spec. Its Implementation Decisions and Testing Decisions settle the design; its "Made without Daniel" points to the grilling's decisions (Q10–Q41).
- Spec: Windows Phase 1 — Claude Code recorded on native Windows, x64 and arm64 #936, "Replacing a running hook" and "Refusals" (Uninstall).
docs/studio/research/windows.md: the platform facts (D1–D10) and CI spike results this phase rests on. "CI spike results": rename of a running exe.
Touches
- Files:
server/src/hook_copies.rs,server/src/install.rs,server/tests/hook_copies.rs,server/tests/install.rs - Session: auto mode
- Route: strong · effort high — concurrency with running processes, and an untested edge case: Defender's scan of fresh
.exes on the runner
Activity