Background workers now track a resumeSessionId separately from sessionId, allowing a respawned worker to resume the correct session even if internal state has been updated. The respawn flag list is also persisted and restored on crash recovery, ensuring workers re-launch with the correct CLI flags.
Evidence
New resumeSessionId field (search for "resumeSessionId") and flag persistence (search for "respawnFlags")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.