pub fn spawn_engine(config: EngineConfig, state: StateStore) -> EngineHandleExpand description
Spawn the engine in a background task (mirrors spawn_engine in the
old crates/tui/src/core/engine.rs). Returns the handle that TUI,
CLI exec, app-server, and tests all share — one Op-in / EventMsg-out
API.