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 +1 -1
- package/static/js/client.js +9 -7
package/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
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
|
|