Commit 3c26611
fix(cli): give honest error for path-shaped status targets (AI-native-Systems-Research#182)
Before: `nous status /abs/path/.nous/missing-run` from any cwd printed
"Could not find .nous/ directory in any parent" — misleading because
the user gave a fully-qualified path. resolve_work_dir() silently
re-interpreted the unresolved path as a bare run-id and walked up from
cwd looking for .nous/, conflating three distinct failure modes under
one error.
Now: a target containing a path separator or absolute path that doesn't
resolve to a valid work-dir produces "Work directory not found: <p>",
naming the actual path. Bare run-id resolution (the existing ergonomic
of `nous status my-campaign` from inside a repo) is preserved.
Closes AI-native-Systems-Research#181
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6d4345e commit 3c26611
2 files changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
49 | 90 | | |
50 | 91 | | |
51 | 92 | | |
| |||
0 commit comments