recordCommandFinished

fun recordCommandFinished(lineId: Long, exitCode: Int?)

Records command completion.

A non-zero exitCode becomes a failed command range only when a matching command-start marker was observed. Omitted or malformed exit status remains null at the protocol layer and is stored as unknown.

Parameters

lineId

stable render line identity where command completion was observed.

exitCode

shell-reported exit code, or null if omitted/malformed.