pub fn spawn_session_execution(args: SessionExecutionArgs)Expand description
Spawn a background agent execution task.
This function spawns a tokio task that:
- Executes the agent loop via
agent.execute() - Sends a terminal error event if the execution fails
- Finalizes the runner status
- Persists the session via merge-save (preserves concurrent UI title/pin edits)
- Updates the in-memory session cache