NousResearch/hermes-agent

Guard os.getcwd() when working directory is deleted

Cluster 33367 · environments. Data as of

Nothing open on GitHub. Fix attempted, not merged.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 2 issues already closed.
Fix event
No fix has been merged to main. 2 PRs closed without merging; see the attempts below.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.
Still open
Nothing open on GitHub.

These issues and fixes address a FileNotFoundError raised in _get_env_config when the process's current working directory no longer exists. Proposed fixes add a fallback (such as the home directory) when os.getcwd() fails.

Open issues0

No open issues.

Open PRs0

No open pull requests.

2 PRs closed without merging

From the close comments: done elsewhere 1 · superseded by another PR 1

  • #33377 fix(terminal): guard os.getcwd() against deleted CWD in _get_env_config · done elsewhere → ad69d3e
  • #33407 fix(tools): guard os.getcwd() in _get_env_config against missing CWD · superseded by another PR → #33377
Closed issues · 2
  • Closed#33367[Bug]: terminal_tool cleanup thread raises recurring FileNotFoundError in _get_env_config
  • Closed#41686terminal_tool.py: _get_env_config() crashes with FileNotFoundError when worker CWD is missing
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.39: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
environments
Closed issues
2
Attempts
2 PRs closed without merging

For your agent

The same facts, typed.