fix: auto re-exec command after CLI auto-update (fixes #780) (#830)

When a CLI auto-update triggers mid-command (e.g. `spawn claude sprite`),
the updated binary now automatically re-runs with the original arguments
instead of asking the user to manually re-run. Sets SPAWN_NO_UPDATE_CHECK=1
on re-exec to prevent infinite update loops. Falls back to the old "run
again" message when no arguments were provided (bare `spawn`).

Agent: ux-engineer

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
A 2026-02-12 23:54:49 -08:00 committed by GitHub
parent c7bbe8bc3b
commit 716da5d43b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 143 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.2.66",
"version": "0.2.67",
"type": "module",
"bin": {
"spawn": "cli.js"