494
}));
495
if (this._transportMode === 'native') {
496
>
// Only native bootstraps its model list here. Proxy mode fetches
claudeAgent.ts
497
>
// models from CAPI, which needs the GitHub token — so its first
498
>
// refresh is triggered by `authenticate()` once that token arrives
499
>
// (a refresh now would just hit the no-token early-return). Native
500
>
// needs no GitHub auth and nothing else triggers a refresh, so we
501
>
// kick off the initial enumeration ourselves. (Transport *flips*
502
>
// after construction are covered by the `onDidRootConfigChange`
503
>
// subscription above.) `queueMicrotask` runs it off the ctor stack.
504
>
queueMicrotask(() => { void this._startModelRefresh(); });
505
>
}
506
}
507