mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-27 17:58:07 +00:00
A linked worktree at <repo>-<suffix> that has been deleted leaves its sessions with a dangling cwd: the git probe fails and no git_repo_root was persisted, so the path-only heuristic promoted each one to its own standalone project. Every abandoned worktree added another phantom entry to the sidebar, and they accumulate indefinitely. Recover the parent by trimming one -<segment> at a time off the basename and returning the first sibling that resolves. A deleted worktree has no checkout to return to, so its sessions land in the parent's trunk lane rather than a lane keyed by the dead path. Live worktrees are unaffected — they resolve through the git probe and keep their own lane. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _stdin_recovery.py | ||
| compute_host.py | ||
| entry.py | ||
| event_publisher.py | ||
| git_probe.py | ||
| host_supervisor.py | ||
| loop_noise.py | ||
| project_tree.py | ||
| render.py | ||
| server.py | ||
| slash_worker.py | ||
| synthetic_turn.py | ||
| transport.py | ||
| turn_marker.py | ||
| ws.py | ||