fix(coding-agent): defer catalog refresh until after TUI startup
This commit is contained in:
@@ -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(() => {});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user