Skip to content

fix(cron): set replyToId for per-job session key distinction#58

Merged
alexey-pelykh merged 1 commit intomainfrom
fix/cron-session-key-reply-to-id
Feb 27, 2026
Merged

fix(cron): set replyToId for per-job session key distinction#58
alexey-pelykh merged 1 commit intomainfrom
fix/cron-session-key-reply-to-id

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Sets replyToId: cron:${job.id}`` on cron ChannelMessage so each cron job produces a distinct `REMOTECLAW_SESSION_KEY` (e.g., `telegram:system:cron:daily-review` instead of `telegram:system:_`)
  • Adds unit test verifying different cron jobs produce distinct session keys via buildSessionKey()
  • Updates existing test to assert replyToId is set correctly

Closes #57

Test plan

  • pnpm build passes
  • run.channel-bridge.test.ts — all 10 tests pass (8 existing + 1 updated + 1 new)
  • Pre-existing failures in other cron test files confirmed unrelated (same failures on main)

🤖 Generated with Claude Code

… key distinction (#57)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) February 27, 2026 07:25
@alexey-pelykh alexey-pelykh merged commit 2461b98 into main Feb 27, 2026
2 checks passed
@alexey-pelykh alexey-pelykh deleted the fix/cron-session-key-reply-to-id branch February 27, 2026 07:35
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.

Fix cron session key collision: set replyToId to job ID for per-job session key distinction

1 participant