mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-07 14:37:55 +00:00
_terminate_owned_chrome() walked Path("/proc") unconditionally, so on macOS
and Windows iterdir() raised FileNotFoundError out of private-browser session
shutdown. src/tools/cookbook.py already guards the same kind of scan with
os.path.isdir("/proc").
The sweep only reclaims Chrome trees that agent-browser reparented, so it is
an optimisation rather than a correctness requirement: degrade to a no-op
rather than failing the whole shutdown path.
_PROC_ROOT is a module attribute so both branches are testable on either kind
of host. The procfs-present path had no coverage at all before this.
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| admin_tools.py | ||
| bg_job_tools.py | ||
| coding_tools.py | ||
| document_tools.py | ||
| filesystem_tools.py | ||
| interaction_tools.py | ||
| media_tools.py | ||
| model_interaction_tools.py | ||
| ocr_engine.py | ||
| session_tools.py | ||
| subprocess_tools.py | ||
| web_tools.py | ||