agentgui 1.0.594 → 1.0.595

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/static/js/client.js +14 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.594",
3
+ "version": "1.0.595",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -491,17 +491,21 @@ class AgentGUIClient {
491
491
  this.showError('Please enter a message to steer');
492
492
  return;
493
493
  }
494
- try {
495
- const data = await window.wsClient.rpc('conv.steer', { id: this.state.currentConversation.id, content: message });
496
- console.log('Steer response:', data);
497
- if (this.ui.messageInput) {
498
- this.ui.messageInput.value = '';
499
- this.ui.messageInput.style.height = 'auto';
500
- }
501
- } catch (err) {
502
- console.error('Failed to steer:', err);
503
- this.showError('Failed to steer: ' + err.message);
494
+
495
+ // Capture message and clear UI immediately (no await)
496
+ const steerMsg = message;
497
+ if (this.ui.messageInput) {
498
+ this.ui.messageInput.value = '';
499
+ this.ui.messageInput.style.height = 'auto';
504
500
  }
501
+
502
+ // Fire RPC in background, don't await
503
+ window.wsClient.rpc('conv.steer', { id: this.state.currentConversation.id, content: steerMsg })
504
+ .then(data => console.log('Steer response:', data))
505
+ .catch(err => {
506
+ console.error('Failed to steer:', err);
507
+ this.showError('Failed to steer: ' + err.message);
508
+ });
505
509
  } else {
506
510
  const instructions = await window.UIDialog.prompt('Enter instructions to inject into the running agent:', '', 'Inject Instructions');
507
511
  if (!instructions) return;