recordCommandStart

fun recordCommandStart(lineId: Long, includeLine: Boolean, commandText: String? = null, workingDirectoryUri: String? = null)

Records command execution start.

If no prompt record is active, an orphan command record is created so the lifecycle remains represented without inventing a prompt marker.

Parameters

lineId

stable render line identity where command output begins.

includeLine

whether lineId itself belongs to command output.

commandText

bounded command text captured between prompt end and command start, or null when unknown.

workingDirectoryUri

current-working-directory URI to snapshot for this command, or null when unknown.