Skip to main content

Module incidents

Module incidents 

Source
Expand description

The recoveries only the launcher sees, kept for the user (docs/specs/SPEC_RECOVERY_NOTICES_AND_TOASTS_2026_10_16.md §4.4, Phase C): the window process restarted after it stopped, with or without graphics acceleration; the background service restarted; and AgentMux giving up.

Written to the same file the host keeps (agentmux_common::incidents) before the replacement starts, so its first window lists the incident and shows its notice; after a give-up, the next start does. Each did line is something this path did.

Enums§

GaveUpOn
Which process a give-up was about.
SrvStop
Why srv stopped before the launcher started it again.

Constants§

AGENTS_KEPT 🔒
REOPENED 🔒
SAVED_FOR_NEXT_START 🔒

Statics§

PATH 🔒

Functions§

crash_give_up
The launcher stopped trying: what kept stopping, restarts times within window_secs.
exit_cause
Why a process exited, from its exit code: the Windows faults AgentMux sees in words, any other code as it is. None for a plain failure exit (1), which says nothing.
host_restarted
The window process stopped and the launcher started it again; with safe_mode, without graphics acceleration, because it stopped the same way twice in a row.
host_restarted_low_memory
The window process stopped because the computer ran out of memory, and the launcher started it again once memory was back, without graphics acceleration.
init
Start recording in data_dir, the folder the host records in too.
memory_give_up
The launcher stopped trying: the computer stayed out of memory.
record
Record incident (built by one of the functions below). Best-effort: a failure is logged, never raised, since the callers are recovery paths.
srv_restarted
srv stopped and the launcher started it again (then the window, which was connected to the old one).