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.
- package/package.json +1 -1
- package/static/js/client.js +14 -10
package/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -491,17 +491,21 @@ class AgentGUIClient {
|
|
|
491
491
|
this.showError('Please enter a message to steer');
|
|
492
492
|
return;
|
|
493
493
|
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
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;
|