mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
`@/Desktop` returned nothing while `@Desktop` worked. The leading slash was always read literally, so the lookup went to the absolute `/Desktop` — which doesn't exist — and dead-ended instead of finding the folder one level down. The `@` has already announced "this is a path", so the slash people type next reads as a separator out of habit rather than a filesystem root. Take the absolute meaning only when it resolves: the parent directory has to exist, and a partially-typed segment has to match something in it. Otherwise drop the slash and resolve from the cwd. Real absolute paths are unaffected — `/usr`, `/etc/hos`, `/Users/...` all pass the existence probe and keep their current behaviour. The guard matters: stripping the slash unconditionally would let a repo-local `etc/` shadow the real `/etc`. |
||
|---|---|---|
| .. | ||
| __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 | ||