groove-dev 0.26.8 → 0.26.9
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/node_modules/@groove-dev/daemon/src/agent-loop.js +10 -7
- package/node_modules/@groove-dev/gui/dist/assets/{index-PPbrScja.js → index-CfD162Lt.js} +22 -22
- package/node_modules/@groove-dev/gui/dist/index.html +1 -1
- package/node_modules/@groove-dev/gui/src/stores/groove.js +12 -8
- package/package.json +1 -1
- package/packages/daemon/src/agent-loop.js +10 -7
- package/packages/gui/dist/assets/{index-PPbrScja.js → index-CfD162Lt.js} +22 -22
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/src/stores/groove.js +12 -8
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
7
7
|
<title>Groove GUI</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CfD162Lt.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/vendor-C0HXlhrU.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/reactflow-BQPfi37R.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/codemirror-BBL3i_JW.js">
|
|
@@ -157,11 +157,13 @@ export const useGrooveStore = create((set, get) => ({
|
|
|
157
157
|
set({ agents });
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
// Text responses → chat bubbles
|
|
161
|
-
//
|
|
162
|
-
//
|
|
163
|
-
|
|
164
|
-
|
|
160
|
+
// Text responses → chat bubbles
|
|
161
|
+
// Skip pure token-level stream chunks (subtype='stream') — too granular
|
|
162
|
+
// Show: subtype='assistant' (Claude Code), subtype='text' (agent loop), type='result',
|
|
163
|
+
// and plain activity events with string data (Gemini/Codex/Ollama CLI)
|
|
164
|
+
const isTokenStream = data.subtype === 'stream';
|
|
165
|
+
const showAsChat = chatText && chatText.trim() && !isTokenStream && (
|
|
166
|
+
data.subtype === 'assistant' || data.subtype === 'text' || data.type === 'result' ||
|
|
165
167
|
(data.type === 'activity' && typeof data.data === 'string')
|
|
166
168
|
);
|
|
167
169
|
if (showAsChat) {
|
|
@@ -171,9 +173,11 @@ export const useGrooveStore = create((set, get) => ({
|
|
|
171
173
|
const last = arr[arr.length - 1];
|
|
172
174
|
const isRecent = last && last.from === 'agent' && (Date.now() - last.timestamp) < 8000;
|
|
173
175
|
|
|
174
|
-
if (isRecent
|
|
175
|
-
//
|
|
176
|
-
|
|
176
|
+
if (isRecent) {
|
|
177
|
+
// Append to the last agent message (streaming from any provider)
|
|
178
|
+
// Claude Code blocks use \n\n separator; plain text uses space
|
|
179
|
+
const sep = data.subtype === 'assistant' ? '\n\n' : ' ';
|
|
180
|
+
arr[arr.length - 1] = { ...last, text: last.text + sep + chatText.trim(), timestamp: Date.now() };
|
|
177
181
|
} else {
|
|
178
182
|
// New message bubble
|
|
179
183
|
arr.push({ from: 'agent', text: chatText.trim(), timestamp: Date.now() });
|