Skip to content

Commit f22f009

Browse files
Trecekclaude
andcommitted
fix(review): reset gate_infrastructure_ready on post-handler failure paths
When enable_components or _redisable_subsets fails after _open_kitchen_handler succeeds, gate_infrastructure_ready must be reset to False so the next open_kitchen call re-runs the handler instead of silently skipping it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 542c26e commit f22f009

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/autoskillit/server/tools/tools_kitchen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ async def open_kitchen(
554554
logger.warning(
555555
"open_kitchen_failure", stage="enable_components", exc_info=True
556556
)
557+
_get_ctx().gate_infrastructure_ready = False
557558
return _kitchen_failure_envelope(exc, stage="enable_components")
558559

559560
try:
@@ -566,6 +567,7 @@ async def open_kitchen(
566567
)
567568
except Exception as exc:
568569
logger.warning("open_kitchen_failure", stage="redisable_subsets", exc_info=True)
570+
_get_ctx().gate_infrastructure_ready = False
569571
return _kitchen_failure_envelope(exc, stage="redisable_subsets")
570572

571573
_is_deferred_recall = (

0 commit comments

Comments
 (0)