You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Treat failed run.json with error as valid session state
loadState used to treat any parsed error field as a corrupt file, so a valid failed run with an error string was unreadable. Parse is now a tagged result, resume-by-id of a truly unreadable file throws one recovery line, and diagnostics go to structured log instead of stderr.
// Missing run.json: treat as no session for this project.
856
+
}
857
+
if(runJsonPresent){
858
+
thrownewError(
859
+
`Session ${id} is unreadable. Use \`${COMMAND_NAME} resume\` to choose another.`,
860
+
);
861
+
}
843
862
thrownewError(
844
-
`No session ${id} for this project. Sessions are stored under ~/.corbits/projects/<project-key>/ (this checkout's git toplevel). Use \`corbits resume\` to choose one.`,
863
+
`No session ${id} for this project. Sessions are stored under ~/.corbits/projects/<project-key>/ (this checkout's git toplevel). Use \`${COMMAND_NAME} resume\` to choose one.`,
0 commit comments