Skip to main content

Module backend

Module backend 

Source
Expand description

In-process agent backend for the TUI.

Backend owns one tokio task that holds an [recursive::AgentRuntime]. The UI thread sends UserActions into the worker via action_tx and the worker pushes UiEvents back via event_rx.

Runtime construction and bash-mode dispatch live in sibling modules (runtime_builder, bash) to keep this file focused on event bridging.

Structs§

Backend
A handle to the agent worker task.

Functions§

map_agent_event
wait_for_cancel