(
sessionPath: string,
options?: { historyCompactions?: number | undefined },
)
| 78 | } |
| 79 | |
| 80 | export async function loadThreadSnapshot( |
| 81 | sessionPath: string, |
| 82 | options?: { historyCompactions?: number | undefined }, |
| 83 | ): Promise<LoadedThreadSnapshot> { |
| 84 | const snapshot = await invokeRuntimeHost('loadThreadSnapshot', { |
| 85 | sessionPath, |
| 86 | historyCompactions: options?.historyCompactions, |
| 87 | }) |
| 88 | |
| 89 | return { |
| 90 | ...snapshot, |
| 91 | thread: attachThreadDiffPreferences(snapshot.thread), |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | export async function loadThread( |
| 96 | sessionPath: string, |
no test coverage detected