516
// upstream and would otherwise overwrite their source.
517
if (!ctx.isResume) {
519
>
await this._metadataStore.write(this._storageUri, {
520
>
customizationDirectory: this.workingDirectory,
521
>
model: this._provisionalModel,
522
>
permissionMode,
523
>
transport: ctx.transport.kind,
524
>
});
525
>
} catch (err) {
526
this._logService.error(`[Claude] Failed to persist customization directory; aborting materialize`, err);
527
throw err;
528
}
530
531
// Final pre-commit abort gate. The first gate above caught aborts