Commit 5cfba8b
fix(claude): treat a failed --resume result as resume_failed (fixes yolo startup)
Reproduced by running the CLI directly: yolo respawn with --resume of a session
the gateway didn't persist makes claude emit a result frame
{subtype:error_during_execution, errors:["No conversation found …"]} and exit —
which onResult surfaced as a scary "error_during_execution" card, reading as a
"session startup failure".
Now onResult inspects the result's errors/result text: a "No conversation found"
failure emits resume_failed (so the store restarts fresh, preserving the desktop
transcript) instead of an error card. Adds ResultFrame.errors.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent da40ae5 commit 5cfba8b
3 files changed
Lines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
874 | 894 | | |
875 | 895 | | |
876 | 896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
804 | | - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
805 | 814 | | |
806 | 815 | | |
807 | 816 | | |
| |||
0 commit comments