Skip to main content

spawn_session_execution

Function spawn_session_execution 

Source
pub fn spawn_session_execution(args: SessionExecutionArgs)
Expand description

Spawn a background agent execution task.

This function spawns a tokio task that:

  1. Executes the agent loop via agent.execute()
  2. Sends a terminal error event if the execution fails
  3. Finalizes the runner status
  4. Checks for concurrent session overrides (title/pin edits)
  5. Persists the session via storage
  6. Updates the in-memory session cache