Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,18 @@ export default function App({
}
const busySessionIds = busySessionIdsRef.current;

/** Probe the active session's harness for its live model catalog whenever
* the active harness changes. Catalogs load lazily (probing spawns a CLI
* process) and the boot refresh runs before restored sessions land, so a
* fresh session would otherwise show only the built-in fallback model
* until the picker happened to be opened. Idempotent: refreshHarnessCatalogs
* dedupes via hasLiveCatalog and its inflight map. */
const activeHarness = active?.harness;
useEffect(() => {
if (!activeHarness || !isLiveHarness(activeHarness)) return;
void refreshHarnessCatalogs([activeHarness]);
}, [activeHarness]);

const usageProviders = useMemo(() => {
if (active?.harness === "claude" || active?.harness === "codex") {
return [active.harness];
Expand Down
Loading