Commit febe56f
fix(cli): scope doctor session/db discovery to HOME/XDG overrides
Pi recent-session discovery and the OpenCode db probe resolved through
bare homedir(), which ignores a runtime HOME override. A doctor run in
a sandboxed environment (like the doctor tests) escaped to the real
~/.pi/agent/sessions and surfaced the machine's historian debug dumps,
adding a nondeterministic WARN to otherwise-isolated runs.
Co-authored-by: Alfonso [Magic Context] <288211368+alfonso-magic-context@users.noreply.github.com>1 parent 89757c4 commit febe56f
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
442 | 445 | | |
443 | 446 | | |
444 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
| |||
0 commit comments