spawn/packages/cli/src
A d1d51fb06d
fix(security): guarantee temp file cleanup in performAutoUpdate (#3307)
Restructure temp file write-execute-cleanup in performAutoUpdate so
cleanup is unconditionally reached after tryCatch captures any exec
error. Previously, the Windows and Unix paths each had separate
tryCatch+cleanup+rethrow sequences that could diverge under future
edits. Now a single tryCatch wraps the platform-branching exec, with
cleanup always running before any error is re-thrown.

Fixes #3306

Agent: security-auditor

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 12:48:12 +07:00
..
__tests__ feat(telemetry): funnel + lifecycle events for onboarding drop-off (#3305) 2026-04-15 11:35:53 +07:00
aws fix(security): shell-quote package names in cloud-init scripts (#3220) 2026-04-07 15:35:44 +07:00
commands feat(telemetry): funnel + lifecycle events for onboarding drop-off (#3305) 2026-04-15 11:35:53 +07:00
daytona fix(security): replace eval-style interpolation with env var in allowOpenClawPreviewOrigin (#3217) 2026-04-06 23:09:45 -07:00
digitalocean fix(security): shell-quote package names in cloud-init scripts (#3220) 2026-04-07 15:35:44 +07:00
gcp fix(security): shell-quote package names in cloud-init scripts (#3220) 2026-04-07 15:35:44 +07:00
hetzner fix(security): shell-quote package names in cloud-init scripts (#3220) 2026-04-07 15:35:44 +07:00
local fix: resolve 4 production TypeScript type errors (#3266) 2026-04-11 17:16:47 +07:00
shared feat(telemetry): funnel + lifecycle events for onboarding drop-off (#3305) 2026-04-15 11:35:53 +07:00
sprite fix(security): expand $HOME before path validation in downloadFile (#3080) 2026-03-30 19:56:05 +00:00
flags.ts fix(cli): add --flat to KNOWN_FLAGS so spawn list --flat works (#3137) 2026-04-01 16:33:45 +07:00
guidance-data.ts refactor: remove dead exports only used within their own files (#2431) 2026-03-10 08:51:15 -04:00
history.ts feat: recursive spawn (--beta recursive) (#2978) 2026-03-25 10:42:09 -07:00
index.ts feat: --beta skills — pre-install MCP servers and skills on VMs (#3258) 2026-04-10 09:02:16 -07:00
manifest.ts fix: always fetch manifest from GitHub, 3s timeout for bad wifi (#3272) 2026-04-12 07:54:40 +07:00
picker.ts refactor: remove dead exported types from picker.ts and spawn-config.ts (#2553) 2026-03-12 21:43:05 -04:00
security.ts fix(test): check sensitive paths before lstat to fix macOS permission error (#3157) 2026-04-03 10:12:20 +07:00
unicode-detect.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
update-check.ts fix(security): guarantee temp file cleanup in performAutoUpdate (#3307) 2026-04-15 12:48:12 +07:00