agentgui 1.0.566 → 1.0.567
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 +16 -3
package/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -730,11 +730,13 @@ class AgentGUIClient {
|
|
|
730
730
|
return;
|
|
731
731
|
}
|
|
732
732
|
|
|
733
|
-
// Show stop, steer, and inject buttons when streaming starts for current conversation
|
|
733
|
+
// Show stop, steer, queue, and inject buttons when streaming starts for current conversation
|
|
734
734
|
if (this.ui.stopButton) this.ui.stopButton.classList.add('visible');
|
|
735
735
|
if (this.ui.injectButton) this.ui.injectButton.classList.add('visible');
|
|
736
736
|
if (this.ui.steerButton) this.ui.steerButton.classList.add('visible');
|
|
737
|
+
if (this.ui.queueButton) this.ui.queueButton.classList.add('visible');
|
|
737
738
|
if (this.ui.sendButton) this.ui.sendButton.style.display = 'none';
|
|
739
|
+
this.ensurePromptAreaAlwaysEnabled();
|
|
738
740
|
|
|
739
741
|
this.state.streamingConversations.set(data.conversationId, true);
|
|
740
742
|
this.state.currentSession = {
|
|
@@ -865,7 +867,7 @@ class AgentGUIClient {
|
|
|
865
867
|
// Show queue/steer UI when streaming starts (for busy prompt)
|
|
866
868
|
this.fetchAndRenderQueue(data.conversationId);
|
|
867
869
|
|
|
868
|
-
|
|
870
|
+
// IMMUTABLE: Prompt area remains enabled - user can queue/steer messages
|
|
869
871
|
this.emit('streaming:start', data);
|
|
870
872
|
}
|
|
871
873
|
|
|
@@ -2668,7 +2670,9 @@ class AgentGUIClient {
|
|
|
2668
2670
|
}
|
|
2669
2671
|
const element = this.renderer.renderBlock(chunk.block, chunk);
|
|
2670
2672
|
if (!element) return;
|
|
2673
|
+
// Ensure CSS classes are always applied for styling consistency
|
|
2671
2674
|
element.classList.add('block-loaded');
|
|
2675
|
+
element.classList.add(`block-type-${chunk.block.type}`);
|
|
2672
2676
|
blockFrag.appendChild(element);
|
|
2673
2677
|
});
|
|
2674
2678
|
|
|
@@ -2747,7 +2751,7 @@ class AgentGUIClient {
|
|
|
2747
2751
|
|
|
2748
2752
|
this.chunkPollState.lastFetchTimestamp = lastChunkTime;
|
|
2749
2753
|
this.startChunkPolling(conversationId);
|
|
2750
|
-
|
|
2754
|
+
// IMMUTABLE: Prompt remains enabled - syncPromptState will set correct state
|
|
2751
2755
|
this.syncPromptState(conversationId);
|
|
2752
2756
|
} else {
|
|
2753
2757
|
this.syncPromptState(conversationId);
|
|
@@ -3061,6 +3065,15 @@ class AgentGUIClient {
|
|
|
3061
3065
|
if (injectBtn) injectBtn.disabled = false;
|
|
3062
3066
|
}
|
|
3063
3067
|
|
|
3068
|
+
/**
|
|
3069
|
+
* Ensure prompt area is always enabled and shows queue/steer when agent streaming
|
|
3070
|
+
*/
|
|
3071
|
+
ensurePromptAreaAlwaysEnabled() {
|
|
3072
|
+
if (this.ui.messageInput) {
|
|
3073
|
+
this.ui.messageInput.disabled = false;
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3064
3077
|
/**
|
|
3065
3078
|
* Cleanup resources
|
|
3066
3079
|
*/
|