fix(coding-agent): defer catalog refresh until after TUI startup

This commit is contained in:
Armin Ronacher
2026-07-21 18:25:38 +02:00
parent a82289637b
commit b142504125
3 changed files with 20 additions and 5 deletions
+2 -1
View File
@@ -808,7 +808,8 @@ export async function main(args: string[], options?: MainOptions) {
process.exit(1);
}
if (!offlineMode && (appMode === "interactive" || appMode === "rpc")) {
// RPC refreshes catalogs here in the background; interactive mode starts its refresh after TUI initialization.
if (!offlineMode && appMode === "rpc") {
void modelRuntime.refresh().catch(() => {});
}