refactor(agent): drop the write-only agent-level codex watchdog timestamps

With a request-local watchdog state on every codex request, agent._codex_stream_last_event_ts / _last_progress_ts had no remaining reader; the state-None snapshot only runs for non-codex requests where no watchdog consults it.
This commit is contained in:
kshitijk4poor
2026-09-07 00:31:05 +05:30
committed by kshitij
parent 1ad8b5dd4a
commit 3ac671dbba
3 changed files with 3 additions and 14 deletions
-4
View File
@@ -889,10 +889,6 @@ def run_codex_stream(agent, api_kwargs: dict, client: Any = None, on_first_delta
watchdog_state.last_event_ts = now
if has_progress:
watchdog_state.last_progress_ts = now
else: # legacy callers without a request-local state (aux/streaming fallback)
agent._codex_stream_last_event_ts = now
if has_progress:
agent._codex_stream_last_progress_ts = now
agent._touch_activity("receiving stream response")
def _interrupt_or_superseded() -> bool: