Skip to main content

muse_code_sdk/msp/view/
item_background_terminal_completion.rs

1// @generated from the MSP stable schema and protocol sources; do not edit by hand.
2
3use serde::Deserialize;
4use serde::Serialize;
5
6/// `backgroundTerminalCompletion`: the five facts the Finished cell renders.
7/// The fold reads them from the inbox terminal record and the backgrounded call
8/// it names; every member is required (empty output serializes as `""`, never
9/// absent).
10#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
11#[serde(rename_all = "camelCase")]
12#[non_exhaustive]
13pub struct BackgroundTerminalCompletion {
14    /// The backgrounded call's call id: the live/history correlation key behind
15    /// the skip-when-minted rule.
16    pub tool_call_id: String,
17    /// The title text gate-off shows for the backgrounded command.
18    pub command: String,
19    /// One of `completed`, `failed`, `cancelled`, `timedOut`, `rejected`.
20    pub terminal_status: String,
21    /// The completion text; empty when the terminal carries none.
22    pub output: String,
23    /// True when `output` is a prefix of the terminal text.
24    pub output_truncated: bool,
25}