groove-dev 0.26.7 → 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.
@@ -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-PPbrScja.js"></script>
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 (stream: append to recent agent message)
161
- // Claude Code: subtype='assistant' or type='result' with structured data
162
- // Gemini/Codex/Ollama/Local: type='activity' with plain string data (no subtype)
163
- const showAsChat = chatText && chatText.trim() && (
164
- data.subtype === 'assistant' || data.type === 'result' ||
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 && data.subtype === 'assistant') {
175
- // Stream: append to the last agent message
176
- arr[arr.length - 1] = { ...last, text: last.text + '\n\n' + chatText.trim(), timestamp: Date.now() };
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() });