The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(gateway): tighten marker self-match predicate
Teknium90fd8231e252
diff --git a/gateway/status.py b/gateway/status.pyindex 4f20ff8ef4e..d45349e5b6a 100644--- a/gateway/status.py+++ b/gateway/status.py@@ -1254,9 +1254,7 @@ def _pid_marker_names_self(target_pid: int, target_start_time: Any) -> bool:if target_pid != os.getpid():return Falseour_start_time = _get_process_start_time(target_pid)- if target_start_time is None or our_start_time is None:- return True- return target_start_time == our_start_time+ return None in (target_start_time, our_start_time) or target_start_time == our_start_timedef _consume_pid_marker_for_self(path: Path, *, ttl_s: int) -> bool: