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:
@@ -281,8 +281,11 @@ type Message struct {
|
||||
ChatShellRuns []ChatShellRunRecord `json:"chat_shell_runs,omitempty"`
|
||||
ChatShellRunEvent *ChatShellRunEventFrame `json:"chat_shell_run_event,omitempty"`
|
||||
// ChatShellDismissed lists dismissed run ids (chat_shell_dismiss's reply
|
||||
// and chat_shell_runs' tombstones; chat_shell_dismiss.go).
|
||||
ChatShellDismissed []string `json:"chat_shell_dismissed,omitempty"`
|
||||
// and chat_shell_runs' dismissed ids; chat_shell_dismiss.go), and
|
||||
// ChatShellDismissedRuns carries chat_shell_runs' dismissed runs, oldest
|
||||
// first, with their list output tail.
|
||||
ChatShellDismissed []string `json:"chat_shell_dismissed,omitempty"`
|
||||
ChatShellDismissedRuns []ChatShellRunRecord `json:"chat_shell_dismissed_runs,omitempty"`
|
||||
// Machine terminals (terminal.go): the request body, one terminal, the
|
||||
// machine's terminals and the pushed change.
|
||||
TerminalRequest *TerminalRequest `json:"terminal_request,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user