clawwork-ai/ClawWork

[Bug] System error messages missing sessionKey in ensemble mode

Open

#214 aperta il 31 mar 2026

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)TypeScript (63 fork)github user discovery
area/coregood first issuehelp wantedkind/bug

Metriche repository

Star
 (519 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Summary

packages/core/src/services/gateway-dispatcher.ts — when error messages are added via store.addMessage(taskId, 'system', errMsg), no sessionKey is included. In ensemble mode with multiple concurrent sessions, this makes it impossible to correlate errors to specific conductor/performer sessions.

Meanwhile, user and assistant messages already include sessionKey.

Expected behavior

Pass sessionKey to addMessage() for system messages generated during session event handling, or add it as metadata after creation.

Files

  • packages/core/src/services/gateway-dispatcher.ts — error handling in handleChatEvent() and handleAgentLifecycleStream()
  • packages/core/src/stores/message-store.tsaddMessage() signature may need an optional sessionKey param

Context

Introduced in PR #210.

Guida contributor