fn ensure_active_turn_scope(
state: &SessionState,
actual: &str,
) -> Result<(), CodexAppServerProtocolError>Expand description
See ensure_active_thread_scope — fails closed when no turn is active. Split out from ensure_active_scopes so a turn can be validated on its own when a request carries a turnId without a threadId (ReAgent P1, PR #3212 4th review).