agentgui 1.0.802 → 1.0.803
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/package.json +1 -1
- package/server.js +3 -0
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -247,6 +247,9 @@ async function getModelsForAgent(agentId) {
|
|
|
247
247
|
if (agent?.protocol === 'acp') {
|
|
248
248
|
await ensureRunning(agentId);
|
|
249
249
|
try { models = await queryACPModels(agentId); } catch (_) {}
|
|
250
|
+
} else if (agent?.protocol === 'cli-wrapper' && agent.acpId) {
|
|
251
|
+
await ensureRunning(agent.acpId);
|
|
252
|
+
try { models = await queryACPModels(agent.acpId); } catch (_) {}
|
|
250
253
|
}
|
|
251
254
|
}
|
|
252
255
|
modelCache.set(agentId, { models, timestamp: Date.now() });
|