codemaxxing 1.1.0 → 1.1.1
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/dist/ui/input-router.js +5 -0
- package/package.json +1 -1
package/dist/ui/input-router.js
CHANGED
|
@@ -415,6 +415,11 @@ function handleModelPicker(_inputChar, key, ctx) {
|
|
|
415
415
|
ctx.addMsg("info", `✅ Switched to: ${selected.name}`);
|
|
416
416
|
ctx.refreshConnectionBanner();
|
|
417
417
|
}
|
|
418
|
+
else if (selected && !ctx.agent) {
|
|
419
|
+
// First-time: trigger reconnect which will create the agent
|
|
420
|
+
ctx.addMsg("info", `Initializing with ${selected.name}...`);
|
|
421
|
+
ctx.connectToProvider?.(false);
|
|
422
|
+
}
|
|
418
423
|
ctx.setModelPickerGroups(null);
|
|
419
424
|
ctx.setProviderPicker(null);
|
|
420
425
|
ctx.setSelectedProvider(null);
|