Skip to content
Developer Preview

session/logFlushDegraded

Experimental

A run’s turn-end session-log flush on the host degraded or failed: pushed to the connections attached to the session’s view when the run’s terminal folded; outside the view stream, no viewCursor (ADR 78845 D1).

Type: SessionLogFlushDegradedParams

session/logFlushDegraded params (ADR 78845 D1, experimental): a run’s turn-end session-log flush on the host left records failed or waiting for retry, or failed itself. Outside the view stream, like session/eventLogDegraded: no viewCursor and no sourceRange. Either the counts (with an optional cause) or, exactly when the flush itself failed, only error.

Field Type Stability Presence Description
cause LogFlushDegradedCause Experimental optional The lost log the result reports, else its missing log. Absent when neither is reported or the flush failed.
error string Experimental optional The failed flush’s message, present exactly when the flush itself failed.
failed integer Experimental optional Records the flush could not write, summed over the session’s run, task and approval logs. Absent when the flush failed.
sessionId string Experimental required The owning session.
unflushed integer Experimental optional Records still waiting for a retry, summed the same way. Absent when the flush failed.
Source

schema/msp/experimental/msp.schema.json#/notifications/session~2FlogFlushDegraded

{
"description": "A run's turn-end session-log flush on the host degraded or failed: pushed to the connections attached to the session's view when the run's terminal folded; outside the view stream, no viewCursor (ADR 78845 D1).",
"params": {
"$ref": "#/$defs/SessionLogFlushDegradedParams"
},
"x-msp-descriptor": "session/logFlushDegraded",
"x-msp-stability": "experimental"
}