Skip to main content

handle_reactive_history_search

Function handle_reactive_history_search 

Source
pub(super) async fn handle_reactive_history_search(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Query<HistorySearchQuery>,
) -> Response
Expand description

GET /agentmux/reactive/history/search — search an agent’s own past conversations (SPEC_AGENT_HISTORY_SEARCH_2026_09_17.md).

Distinct from /reactive/transcript, which returns the tail of the LIVE session only. This reads sessions already persisted on disk, including sessions that ended — which is the point: an agent’s memory of what it did is bounded by its context window while its actual actions are not, so after a compaction or session reset it will answer questions about its own past confidently and wrongly, with nothing marking the boundary.