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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user