Skip to content

Fix parallel sessions killing each other via shared queue file#22

Merged
blipinsk merged 1 commit intomainfrom
fix-parallel-session-kill
Mar 26, 2026
Merged

Fix parallel sessions killing each other via shared queue file#22
blipinsk merged 1 commit intomainfrom
fix-parallel-session-kill

Conversation

@blipinsk
Copy link
Copy Markdown
Member

@blipinsk blipinsk commented Mar 26, 2026

Summary

  • queue.json was a single file per repo - when one mob wrote a queue action, the file watcher in every running spawnAgent saw it and SIGTERM'd all parallel sessions
  • Queue files are now per-mob at .codemob/queues/<mob-name>.json so each watcher only reacts to its own mob's queue

Test plan

  • All 61 existing tests pass
  • Run two mobs in parallel tabs, kill one session via slash command, verify the other stays alive

queue.json was a single file per repo. When one mob's slash command wrote
a queue action, the queue watcher in every running spawnAgent saw it and
SIGTERM'd their agent - killing all parallel sessions, not just the one
that triggered the action.

Queue files are now per-mob at .codemob/queues/<mob-name>.json so each
watcher only reacts to its own mob's queue.
@blipinsk blipinsk enabled auto-merge (squash) March 26, 2026 14:29
@blipinsk blipinsk merged commit 0121b41 into main Mar 26, 2026
1 check passed
@blipinsk blipinsk deleted the fix-parallel-session-kill branch March 26, 2026 14:29
@blipinsk blipinsk restored the fix-parallel-session-kill branch March 26, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant