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.
@@ -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);