Skip to main content

Module agent_spawn

Module agent_spawn 

Source
Expand description

Core agent execution spawning logic.

Provides spawn_session_execution which handles the full lifecycle of a background agent run: spawn task → execute → finalize runner → persist session.

Structs§

SessionExecutionArgs
Arguments for spawning a background agent execution.

Functions§

log_base_system_prompt_snapshot
Log a snapshot of the base system prompt for debugging.
preserve_concurrent_session_overrides
Preserve concurrent session overrides (title/pin) made via external edits while the agent loop was running.
spawn_session_execution
Spawn a background agent execution task.
terminal_error_event_for_result
Map an execution result to a terminal error event.