Skip to content

fix(im): scope channel session mappings by agent#2298

Merged
btc69m979y-dotcom merged 1 commit into
release/2026.7.8from
feat/im-agent-scoped-session-mapping
Jul 8, 2026
Merged

fix(im): scope channel session mappings by agent#2298
btc69m979y-dotcom merged 1 commit into
release/2026.7.8from
feat/im-agent-scoped-session-mapping

Conversation

@btc69m979y-dotcom

Copy link
Copy Markdown
Collaborator

Summary

  • scope IM session mappings by (im_conversation_id, platform, agent_id) while preserving legacy lookups
  • prefer exact openclaw_session_key mapping before agent-scoped conversation lookup
  • keep scheduled-task IM conversation dedupe from collapsing the same peer across different agents
  • document the fix with sanitized real session key examples under specs/bugfixes

Verification

  • npm test -- openclawChannelSessionSync imStore scheduledTask/helpers
  • npx eslint --ext ts,tsx --report-unused-disable-directives --max-warnings 0 src/main/im/imStore.ts src/main/libs/openclawChannelSessionSync.ts src/main/ipcHandlers/scheduledTask/helpers.ts src/main/libs/openclawChannelSessionSync.test.ts src/main/im/imStore.test.ts src/main/ipcHandlers/scheduledTask/helpers.test.ts
  • npm run compile:electron
  • npm test

@btc69m979y-dotcom btc69m979y-dotcom merged commit 3f1d744 into release/2026.7.8 Jul 8, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant