The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(state): make the pytest-launcher match platform-independent
joaomarcosc0684e42233b
diff --git a/hermes_state.py b/hermes_state.pyindex 88cf79299f2..8ad73354d41 100644--- a/hermes_state.py+++ b/hermes_state.py@@ -495,7 +495,11 @@ def _process_looks_like_pytest(proc: Any) -> bool:return Falsefor arg in cmdline:try:- name = os.path.basename(str(arg).strip('"').strip("'")).lower()+ token = str(arg).strip('"').strip("'")+ # Split on both separators on every host: os.path.basename is+ # POSIX-only under Linux and would leave a Windows-style path+ # intact, making the matcher's answer depend on the platform.+ name = token.replace("\\", "/").rsplit("/", 1)[-1].lower()except Exception:continueif name in _PYTEST_LAUNCHER_NAMES: