hydrate_turns
def hydrate_turns(
cfg, turns
):Restore whole results and prompts from confined details files. A missing or unreadable file leaves clipped text.
Restore whole results and prompts from confined details files. A missing or unreadable file leaves clipped text.
A session’s title from its first request: the first sentence of request_body, in at most n characters.
request_text without the harness’s blocks, or a <user-request> tag a prompt cut short kept.
The person’s request, without the notebook or screen context composed around it.
Yield (session_id, item) for each item of rows whose row is key(item), with legacy ids inferred and rows with invalid timestamps skipped.
Yield (start, end, row) for each complete object row from offset.
A history index skips rows whose timestamps are not numeric.