clawwork-ai/ClawWork

[Bug] taskGateways Map in room-store never cleaned up

Open

#212 opened on 2026年3月31日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)TypeScript (63 forks)github user discovery
area/coregood first issuehelp wantedkind/bug

Repository metrics

Stars
 (519 stars)
PR merge metrics
 (PR metrics pending)

説明

Summary

packages/core/src/stores/room-store.ts — the module-scoped taskGateways Map grows indefinitely. When a room is created via initConductor(), a taskGateways.set(taskId, gatewayId) entry is added, but it is never removed when the room is stopped, archived, or deleted.

Expected behavior

Add cleanup logic in setRoomStatus() when status transitions to a terminal state (stopped, error), or provide an explicit removeRoom() action.

Files

  • packages/core/src/stores/room-store.tstaskGateways Map (line ~66)

Context

Introduced in PR #210.

コントリビューターガイド