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
- Checks for concurrent session overrides (title/pin edits)
- Persists the session via storage
- Updates the in-memory session cache