pub struct StatusMessage {
pub session_id: String,
pub status: Option<StatusMessageStatus>,
pub uuid: Option<String>,
pub permission_mode: Option<InitPermissionMode>,
pub compact_result: Option<String>,
pub compact_error: Option<String>,
pub compact_output_chars: Option<u64>,
pub resume_held_for_plan: Option<bool>,
}Expand description
Status system message - sent during operations like context compaction
Fields§
§session_id: StringSession identifier
status: Option<StatusMessageStatus>Current status (e.g., compacting) or null when complete
uuid: Option<String>Unique identifier for this message
permission_mode: Option<InitPermissionMode>Current permission mode when changed mid-session.
compact_result: Option<String>§compact_error: Option<String>§compact_output_chars: Option<u64>On the compacting statuses of an automatic compaction (absent on a
typed /compact): characters of the summary streamed so far (text
and tool-input deltas, not thinking). Returns to 0 at each new attempt
and stays 0 while a background summary is awaited. A rising count
shows progress; it is not a share of the final length. Absent from
CLIs before 2.1.295. Marked @internal upstream.
resume_held_for_plan: Option<bool>Present, and true, once at start-up when
CLAUDE_CODE_RESUME_INTERRUPTED_TURN asked for the interrupted turn
to be re-run and this process did not re-run it: the turn ran in plan
mode and the process came back in another mode, where the re-run
could carry out a plan nobody approved. Marked @internal upstream
(CLI 2.1.319+).