agentgui 1.0.420 → 1.0.422

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.422",
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) {
@@ -1952,6 +1951,9 @@ class AgentGUIClient {
1952
1951
  this._agentLocked = false;
1953
1952
  if (this.ui.cliSelector) {
1954
1953
  this.ui.cliSelector.disabled = false;
1954
+ if (this.ui.cliSelector.options.length > 0) {
1955
+ this.ui.cliSelector.style.display = 'inline-block';
1956
+ }
1955
1957
  }
1956
1958
  if (this.ui.agentSelector) {
1957
1959
  this.ui.agentSelector.disabled = false;
@@ -1985,11 +1987,11 @@ class AgentGUIClient {
1985
1987
  }
1986
1988
 
1987
1989
  _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;
1990
+ if (this.ui.cliSelector) {
1991
+ this.ui.cliSelector.value = agentId;
1992
+ if (!this.ui.cliSelector.value) {
1993
+ this.ui.cliSelector.selectedIndex = 0;
1994
+ }
1993
1995
  }
1994
1996
  }
1995
1997