groove-dev 0.25.20 → 0.25.21
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/process.js +19 -2
- package/node_modules/@groove-dev/gui/dist/assets/{index-H_e3KvZp.js → index-B1FkEzF0.js} +1 -1
- package/node_modules/@groove-dev/gui/dist/index.html +1 -1
- package/node_modules/@groove-dev/gui/src/stores/groove.js +6 -2
- package/package.json +1 -1
- package/packages/daemon/src/process.js +19 -2
- package/packages/gui/dist/assets/{index-H_e3KvZp.js → index-B1FkEzF0.js} +1 -1
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/src/stores/groove.js +6 -2
|
@@ -197,13 +197,17 @@ export const useGrooveStore = create((set, get) => ({
|
|
|
197
197
|
case 'agent:exit': {
|
|
198
198
|
const agent = get().agents.find((a) => a.id === msg.agentId);
|
|
199
199
|
const name = agent?.name || msg.agentId;
|
|
200
|
-
// Exit 143 = SIGTERM (kill), exit 137 = SIGKILL — treat as intentional kill
|
|
201
200
|
const isKill = msg.status === 'killed' || msg.code === 143 || msg.code === 137;
|
|
202
201
|
const text = msg.status === 'completed' ? `${name} completed`
|
|
203
202
|
: isKill ? `${name} stopped`
|
|
204
203
|
: `${name} crashed (exit ${msg.code})`;
|
|
205
204
|
const type = msg.status === 'completed' ? 'success' : isKill ? 'info' : 'warning';
|
|
206
|
-
get().addToast(type, text);
|
|
205
|
+
get().addToast(type, text, msg.error ? msg.error.slice(0, 200) : undefined);
|
|
206
|
+
|
|
207
|
+
// Log crash error to agent chat so user can see what happened
|
|
208
|
+
if (msg.error && msg.agentId) {
|
|
209
|
+
get().addChatMessage(msg.agentId, 'system', `Crashed: ${msg.error}`);
|
|
210
|
+
}
|
|
207
211
|
// Check for recommended team when planner completes
|
|
208
212
|
if (agent?.role === 'planner' && msg.status === 'completed') {
|
|
209
213
|
setTimeout(() => get().checkRecommendedTeam(), 1000);
|