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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user