Skip to content

BackgroundTerminalCompletion

backgroundTerminalCompletion: the facts the Finished cell renders (ADR 50041 D3/D4, plus the optional exit code from D28 and the optional reason from D29). The fold reads them from the inbox terminal record and the backgrounded call it names; every member is required (empty output serializes as "", never absent) except exit_code and reason, each absent when the terminal carries none.

  • command
  • exitCode
  • output
  • outputTruncated
  • reason
  • terminalStatus
  • toolCallId
Source

schema/msp/experimental/msp.schema.json#/types/BackgroundTerminalCompletion

{
"description": "`backgroundTerminalCompletion`: the facts the Finished cell\nrenders (ADR 50041 D3/D4, plus the optional exit code from D28 and\nthe optional reason from D29).\nThe fold reads them from the inbox terminal record and the\nbackgrounded call it names; every member is required (empty\noutput serializes as `\"\"`, never absent) except `exit_code` and\n`reason`, each absent when the terminal carries none.",
"properties": {
"command": {
"description": "The title text gate-off shows for the backgrounded command.",
"type": "string"
},
"exitCode": {
"description": "The process exit code from the terminal record's `exit_code: `\nline (ADR 50041 D28); absent when the terminal carries none.\n`i32`, the gate-off frozen-header twin's width\n(`BackgroundTerminalTailTerminal.exit_code`). Old clients\nignore the unknown member.",
"type": "integer"
},
"output": {
"description": "The completion text; empty when the terminal carries none.",
"type": "string"
},
"outputTruncated": {
"description": "True when `output` is a prefix of the terminal text.",
"type": "boolean"
},
"reason": {
"description": "The terminal's reason from the terminal record's `reason: `\nline, trimmed like gate-off's parse (ADR 50041 D29); absent when\nthe terminal carries none or an empty one. Old clients ignore\nthe unknown member.",
"type": "string"
},
"terminalStatus": {
"description": "One of `completed`, `failed`, `cancelled`, `timedOut`,\n`rejected`.",
"type": "string"
},
"toolCallId": {
"description": "The backgrounded call's call id: the live/history correlation\nkey behind the skip-when-minted rule (ADR 50041 D6).",
"type": "string"
}
},
"required": [
"command",
"output",
"outputTruncated",
"terminalStatus",
"toolCallId"
],
"type": "object"
}