The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(gateway): drained follow-ups persist their prompt pins
kshitijk4poor509796a32851
diff --git a/gateway/run_turn.py b/gateway/run_turn.pyindex fce45bed818..0388b76e372 100644--- a/gateway/run_turn.py+++ b/gateway/run_turn.py@@ -3874,6 +3874,9 @@ class GatewayTurnMixin:next_channel_prompt, next_source = self._pinned_channel_inputs(next_session_key, pending_event.channel_prompt, next_source, internal=pending_event.internal,)+ if not pending_event.internal:+ # A drained human turn re-pins its channel inputs; make them durable like a first turn.+ await self._persist_prompt_pins(next_session_key, session_id)next_message_type = getattr(pending_event, "message_type", None)else:# Event-less interrupt/steer follow-ups continue the effective prompt