Commit dc4fa55
committed
fix(cli): /status JSON emits null model and correct session_id in resume mode
Two bugs in --output-format json --resume /status:
1. 'model' field emitted 'restored-session' (a run-mode label) instead of
the actual model or null. Fixed: status_json_value now takes Option<&str>
for model; resume path passes None; live REPL path passes Some(model).
2. 'session_id' extracted parent dir name ('sessions') instead of the file
stem. Session files are session-<id>.jsonl directly under .claw/sessions/,
not in a subdirectory. Fixed: extract file_stem() instead of
parent().file_name().
159 CLI tests pass.1 parent 9cf4033 commit dc4fa55
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2741 | 2741 | | |
2742 | 2742 | | |
2743 | 2743 | | |
2744 | | - | |
| 2744 | + | |
2745 | 2745 | | |
2746 | 2746 | | |
2747 | 2747 | | |
| |||
5006 | 5006 | | |
5007 | 5007 | | |
5008 | 5008 | | |
5009 | | - | |
| 5009 | + | |
5010 | 5010 | | |
5011 | 5011 | | |
5012 | 5012 | | |
| |||
5017 | 5017 | | |
5018 | 5018 | | |
5019 | 5019 | | |
5020 | | - | |
| 5020 | + | |
5021 | 5021 | | |
5022 | 5022 | | |
5023 | 5023 | | |
| |||
5046 | 5046 | | |
5047 | 5047 | | |
5048 | 5048 | | |
5049 | | - | |
5050 | | - | |
5051 | | - | |
| 5049 | + | |
| 5050 | + | |
| 5051 | + | |
5052 | 5052 | | |
5053 | 5053 | | |
5054 | 5054 | | |
| |||
0 commit comments