DashboardcliRace-safe upgrade filesystem operations…

Race-safe upgrade filesystem operations and root-cause preservation

Category: preference
Confidence: 1.00
ID: 01a08aa4-4560-7d0f-9fda-a1704024e560
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 0EEj6bAT8M4qaXeOe
Created: 2026-09-08 23:14:03
Updated: 2026-09-10 09:26:56

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 11h ago

Content

Treat upgrade filesystem operations as race-sensitive. Never use the same source and destination path; keep patch intermediates in memory and remove temporary artifacts after failure. Install error handlers before writes, honor backpressure, flush and close resources, and preserve the first operation error over cleanup failures. Verify the emitted binary is a visible, regular, non-empty file at cumulative delays 0/100/300/700/1500/3100 ms, then throw UpgradeError("execution_failed"). Use the required Windows EPERM/EBUSY fallback because rename is not reliably atomic with open destinations.

Move to: