1653
*/
1654
async getSessionMessages(session: URI): Promise<readonly Turn[]> {
1655
>
// Don't trigger a cold SDK download just to reconstruct a transcript
claudeAgent.ts
1656
>
// during restore (the renderer subscribes to the last-active session
1657
>
// on startup). Mirrors `listSessions` / `getSessionMetadata`: when the
1658
>
// SDK isn't local yet, defer with an empty transcript. The download
1659
>
// fires (with host-level progress) once the user sends the first
1660
>
// message, after which the transcript re-hydrates on the next restore.
1661
>
if (!(await this._sdkService.canLoadWithoutDownload())) {
1662
this._logService.info('[Claude] SDK not downloaded yet; deferring session messages until a session triggers the download');
1663
return [];