Skip to content

Interface: SessionDiagnostic

@termwright/driver


@termwright/driver / SessionDiagnostic

Defined in: driver/src/api.ts:1059

One entry of the session diagnostics log.

readonly optional actionId?: string

Defined in: driver/src/api.ts:1065

Correlates an action-observation wait with its action lifecycle.


readonly code: DiagnosticCode

Defined in: driver/src/api.ts:1060


readonly optional count?: number

Defined in: driver/src/api.ts:1078

How many items the entry accounts for, when it stands for several — the number that would otherwise be readable only by parsing detail.

Present on aggregate entries: records an adapter dropped upstream, records or lines the driver refused over budget. Absent when the entry is about one identified thing (a single revision, a single refused duplicate), because there is nothing to count there. Summing count over log-dropped entries therefore answers “how many log entries never reached me”.


readonly detail: string

Defined in: driver/src/api.ts:1061


readonly optional mode?: "mouse" | "focus"

Defined in: driver/src/api.ts:1089

For mode-unverifiable: which mode could not be verified. A field rather than a code per mode, so a consumer reacting to “the driver is working blind” writes one branch instead of a list that grows with the platform.


readonly optional observationState?: "parser-in-flight" | "semantic-frame-open" | "pairing-pending"

Defined in: driver/src/api.ts:1067

The in-flight boundary an action is waiting to cross.


readonly optional revision?: number

Defined in: driver/src/api.ts:1063

The semantic revision the entry is about, when it is about one.


readonly timeMs: number

Defined in: driver/src/api.ts:1090


readonly optional wireCode?: "adapter-guarantee-violation" | "duplicate-semantic-key" | "bad-token" | "bad-version" | "malformed" | "limit-exceeded" | "capability-provider-violation" | "internal"

Defined in: driver/src/api.ts:1083

For protocol-violation: the wire error code sent to the adapter, so a caller can tell which failure closed the channel without parsing prose.