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
Copy file name to clipboardExpand all lines: docs/PRODUCT.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,11 @@ checkout, including completed ones. Type to filter by name. Plain
81
81
`corbits` always starts a fresh conversation; `corbits resume <session-id>`
82
82
is the direct, explicit resume path.
83
83
84
+
A session that ended in `failed` (including one that recorded an `error`
85
+
string in `run.json`) is a failed session, not a corrupt one — it still
86
+
appears in the picker. Passing a corrupt session id prints one short
87
+
recovery line instead of dumping the file path and parse details.
88
+
84
89
## Safety Model
85
90
86
91
-**Tiered permission gate** — Read-only tools (`read_file`, `search_files`, `grep`, `list_dir`) run freely. Every consequential tool (`write_file`, `edit_file`, `run_shell`, …) is gated. The operator can Allow Once or Allow Always (scoped to a file, a directory, or a command shape); "Allow Always" choices persist per working directory so repeat actions don't interrupt flow.
@@ -129,7 +134,9 @@ The exact turn thresholds are model-family-dependent (tighter for models with ob
129
134
130
135
**What the user sees:**`Ctrl+C` mid-run, network error, or crash. The last state is persisted.
131
136
132
-
**Recovery:**`corbits resume` reloads `RunState` and continues.
137
+
**Recovery:**`corbits resume` reloads `RunState` and continues. Failed
138
+
sessions remain failed (still listed); a corrupt id gets a short recovery
`Session ${id} is unreadable. Use \`${COMMAND_NAME} resume\` to choose another.`,
859
+
);
860
+
}
861
+
if(loaded.kind==="missing"){
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