From f46bed6740d23462525071e3c132ceded9a3b510 Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 23 Oct 2026 17:08:10 -0400 Subject: [PATCH] refactor(hooks): name the soft turn-limit warning after the soft limit --- strix/core/hooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strix/core/hooks.py b/strix/core/hooks.py index ace96b9fe..458246689 100644 --- a/strix/core/hooks.py +++ b/strix/core/hooks.py @@ -220,7 +220,7 @@ class ReportUsageHooks(RunHooks[dict[str, Any]]): context.context[LLM_TURN_KEY] = int(context.context.get(LLM_TURN_KEY, 0)) + 1 try: self._maybe_warn_turns(context, input_items) - self._maybe_warn_turn_limit(context, input_items) + self._maybe_warn_soft_turn_limit(context, input_items) self._maybe_warn_budget(context, input_items) except Exception: logger.exception("budget/turn warning injection failed") @@ -284,7 +284,7 @@ class ReportUsageHooks(RunHooks[dict[str, Any]]): ) input_items.append({"role": "user", "content": content}) - def _maybe_warn_turn_limit( + def _maybe_warn_soft_turn_limit( self, context: RunContextWrapper[dict[str, Any]], input_items: list[TResponseInputItem],