Keep dismissed shell commands and restore them without a time limit

A dismissed run keeps its command, status, times and output within the
usual history bounds. chat_shell_runs lists dismissed runs apart
(chat_shell_dismissed_runs), chat_shell_run_output still reads them, and
the purge timer and startup purge are gone. Rows an older server purged
are listed with purged set and cannot be restored.
This commit is contained in:
2026-11-09 23:29:25 +00:00
parent 371d29224c
commit f2520a09b8
10 changed files with 204 additions and 186 deletions
+6
View File
@@ -114,6 +114,12 @@ type ChatShellRunRecord struct {
// carriage-return redraws applied): what Copy output copies and Send to
// agent shares. Only chat_shell_run_output carries it.
Text string `json:"text,omitempty"`
// Dismissed is set on a run the operator dismissed (chat_shell_dismiss.go)
// and DismissedAt is when, in epoch milliseconds. Purged is set when an
// older server deleted its command and output: only the tombstone is left.
Dismissed bool `json:"dismissed,omitempty"`
DismissedAt int64 `json:"dismissed_at,omitempty"`
Purged bool `json:"purged,omitempty"`
}
// ChatShellRunEventFrame is one live change to a run. A lifecycle frame sets