Files
hermes-agent/agent
ahrazzle afa0ddeaab fix(agent): tag background-review fork turns in logs and pin supersede interrupt scoping
Fork turns (background review, side questions) reuse the parent's session_id
and, when unrouted, the model, so their `conversation turn:` and `Turn ended:`
lines are indistinguishable from live turns. In #118693 this made the fork's
own superseded exit read as a killed foreground stream.

- build_cache_parity_fork stamps _turn_origin on fork agents
- _log_turn_exit and the conversation-turn line append origin=<write_origin>
  for fork turns only; live turns are byte-identical
- new invariant test: cancel_background_review_for_live_turn flags only the
  fork (parent instance flags and thread bit untouched) via the real
  InterruptControlMixin path
- new regression test: fork turn-exit lines carry origin=background_review
  (red on base)

Related to #118693

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
2026-09-23 15:00:46 -05:00
..
…
…