polydev-ai 1.8.19 → 1.8.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mcp/stdio-wrapper.js +3 -0
- package/package.json +1 -1
package/mcp/stdio-wrapper.js
CHANGED
|
@@ -1369,6 +1369,8 @@ class StdioMCPWrapper {
|
|
|
1369
1369
|
const cacheAge = Date.now() - this.modelPreferencesCacheTime;
|
|
1370
1370
|
if (cacheAge < this.MODEL_PREFERENCES_CACHE_TTL) {
|
|
1371
1371
|
console.error('[Stdio Wrapper] Using cached model preferences');
|
|
1372
|
+
// Also restore cached userProviderOrder when using cache
|
|
1373
|
+
// (userProviderOrder was set during the initial API fetch)
|
|
1372
1374
|
return this.userModelPreferences;
|
|
1373
1375
|
}
|
|
1374
1376
|
}
|
|
@@ -1402,6 +1404,7 @@ class StdioMCPWrapper {
|
|
|
1402
1404
|
|
|
1403
1405
|
// Cache provider order from user's dashboard (respects display_order)
|
|
1404
1406
|
// This determines which CLIs/APIs to use first
|
|
1407
|
+
// IMPORTANT: This is cached alongside modelPreferences and restored when cache is used
|
|
1405
1408
|
this.userProviderOrder = result.providerOrder || ['claude_code', 'codex_cli', 'gemini_cli'];
|
|
1406
1409
|
|
|
1407
1410
|
console.error('[Stdio Wrapper] Model preferences loaded:', JSON.stringify(result.modelPreferences));
|
package/package.json
CHANGED