replace_run(
self,
message_ids: Sequence[str],
replacement: MessageData
) -> int| Name | Type | Description |
|---|---|---|
message_ids* | Sequence[str] | |
replacement* | MessageData |
Replace a contiguous run of rows with one row, in place.
Folds finished tool rows into one TOOL_GROUP row without a reload.
The search starts at the tail, where live runs are.
The visible range keeps the same rows mounted. A run that crosses a window edge puts the replacement outside the window, because the caller cannot mount half of one row. When every row in the run has a measured height, the replacement takes their sum, so the transcript spacers do not move.
IDs of the run, in store order.
Row to store in place of the run.