fix(hermes): keep router compatible during rollout
Some checks failed
Tests / Declarative: Post Actions failed: 2, passed: 204

This commit is contained in:
jenkins 2026-08-10 05:20:09 -03:00
parent f40a6f19bb
commit 86acf97e1b
2 changed files with 10 additions and 4 deletions

View File

@ -854,9 +854,16 @@ def register(ctx: Any) -> None:
ctx.register_hook(
"pre_internal_route", lambda **kwargs: _pre_internal_route(ctx, **kwargs)
)
# ConfigMaps can reconcile before the matching immutable image digest. The
# older image does not know this hook yet, so retain parent/internal routing
# during that short rollout window and enable child routing after image
# automation advances the pod.
try:
ctx.register_hook(
"pre_subagent_route", lambda **kwargs: _pre_subagent_route(ctx, **kwargs)
)
except ValueError:
pass
ctx.register_hook("post_llm_call", lambda **kwargs: _post_turn_route(ctx, **kwargs))
ctx.register_command(
"route",

View File

@ -4,4 +4,3 @@ description: Jetson-assisted provider, model, and reasoning-effort routing for A
provides_hooks:
- pre_turn_route
- pre_internal_route
- pre_subagent_route