Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.269 ·

Background shell command detach() is now async and waits on a handoff callback

Detaching a background shell command can now wait for a handoff step to finish first

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaBash Toolwhat it touches
KindInternal Changesin v2.1.269,
Under the hood

Detaching a background shell command can now wait for a handoff step to finish first

What

The internal function that detaches a background shell command (lets it keep running independently of Claude Code) is now asynchronous. If a handoff callback was supplied for that command and the process hasn't already exited, detaching now waits for that callback to finish before handing back the process ID.

Why

This ensures any cleanup or handoff work tied to a background command completes before Claude Code considers the process fully detached, avoiding a race where the detach finishes before the handoff step is done.

See this entry in the whole of v2.1.269 →

Feedback