Skip to main content

ensure_active_thread_scope

Function ensure_active_thread_scope 

Source
fn ensure_active_thread_scope(
    state: &SessionState,
    actual: &str,
) -> Result<(), CodexAppServerProtocolError>
Expand description

Unlike ensure_thread_scope, fails closed when no thread is active — a server request claiming a threadId must be scoped to a real, active thread, not merely “no conflicting thread claimed yet” the way an incoming notification establishing state is allowed to be.