fix(skills): retry staging owner cleanup on Windows

This commit is contained in:
Jinwoo-H
2026-09-01 21:14:47 -04:00
parent 32187ba894
commit 79675b08e9
@@ -36,7 +36,8 @@ export class SkillUploadStagingOwnership {
}
async remove(): Promise<void> {
await rm(this.directory, { recursive: true, force: true })
// Windows can briefly retain a just-closed handle; keep cleanup bounded and retryable.
await rm(this.directory, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 })
}
private async cleanupAbandonedOwners(): Promise<void> {