Skip to main content
The operating system can suspend or kill the process. Bind React Native’s app state so the runtime stops starting work while the app is not active.
bindNativeAppState calls runtime.setSuspended when the state is not "active". Suspension is not deletion. The SQLite file remains.

After the process is killed

On the next launch, open the same database, register the same agent name and version, and resume the run id. See Crash recovery. close() is for an orderly shutdown. A kill does not call it. The next open reclaims ownership when the previous owner is gone.

What stays on the device

The execution record, tool results, and model transcript used for replay stay in the local database. Enabling telemetry does not move that record to Cloud, and it does not backfill runs that already had events when a destination was first authorized.