agentgui 1.0.420 → 1.0.421

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.420",
3
+ "version": "1.0.421",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -1833,8 +1833,7 @@ class AgentGUIClient {
1833
1833
  const { agents } = await window.wsClient.rpc('agent.ls');
1834
1834
  this.state.agents = agents;
1835
1835
 
1836
- const cliAgents = agents.filter(a => a.protocol === 'cli');
1837
- const displayAgents = cliAgents.length > 0 ? cliAgents : agents;
1836
+ const displayAgents = agents;
1838
1837
 
1839
1838
  if (this.ui.cliSelector) {
1840
1839
  if (displayAgents.length > 0) {
@@ -1985,11 +1984,11 @@ class AgentGUIClient {
1985
1984
  }
1986
1985
 
1987
1986
  _setCliSelectorToAgent(agentId) {
1988
- const allAgents = this.state.agents || [];
1989
- const agent = allAgents.find(a => a.id === agentId);
1990
- const cliId = (agent?.protocol === 'cli' || !agent) ? agentId : null;
1991
- if (cliId && this.ui.cliSelector) {
1992
- this.ui.cliSelector.value = cliId;
1987
+ if (this.ui.cliSelector) {
1988
+ this.ui.cliSelector.value = agentId;
1989
+ if (!this.ui.cliSelector.value) {
1990
+ this.ui.cliSelector.selectedIndex = 0;
1991
+ }
1993
1992
  }
1994
1993
  }
1995
1994