Keep provider diagnostics useful when discovery is slow (#1724)

This commit is contained in:
Mohamed Boudra
2026-06-25 19:30:19 +08:00
committed by GitHub
parent c00121273b
commit 2cf041c4d8
10 changed files with 782 additions and 107 deletions
+7 -7
View File
@@ -3656,8 +3656,8 @@ export class DaemonClient {
cwd: options?.cwd,
},
responseType: "list_provider_models_response",
// Provider SDK cold starts (especially model discovery) can exceed 30s.
timeout: 45000,
// Provider SDK cold starts (especially model discovery) can exceed 60s.
timeout: 90000,
});
}
@@ -3673,7 +3673,7 @@ export class DaemonClient {
cwd: options?.cwd,
},
responseType: "list_provider_modes_response",
timeout: 45000,
timeout: 90000,
});
}
@@ -3688,7 +3688,7 @@ export class DaemonClient {
draftConfig,
},
responseType: "list_provider_features_response",
timeout: 45000,
timeout: 90000,
});
}
@@ -3701,7 +3701,7 @@ export class DaemonClient {
type: "list_available_providers_request",
},
responseType: "list_available_providers_response",
timeout: 30000,
timeout: 60000,
});
}
@@ -3809,7 +3809,7 @@ export class DaemonClient {
providers: options?.providers,
},
responseType: "refresh_providers_snapshot_response",
timeout: 60000,
timeout: 120000,
});
}
@@ -3824,7 +3824,7 @@ export class DaemonClient {
provider,
},
responseType: "provider_diagnostic_response",
timeout: 30000,
timeout: 180000,
});
}