mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Three agent_tasks tests failed on Windows at remove_dir_all with os error 32. The headless session's AuthorizedWorkspace opens its roots as cap_std::fs::Dir handles, and the server task that owns it was still alive when the test deleted the folder: c.cancel() closes the client, but the spawned server drops the session asynchronously. Linux deletes directories with open handles, Windows doesn't. connect/connect_headless now return the server task, and shutdown() cancels the client and awaits the server, so the handles are gone before the folder is removed. Test-only change. Co-authored-by: Claude Opus 5.5 <[email protected]>