feat(openclaw): add dynamic per-channel memory banks#290
Merged
nicoloboschi merged 1 commit intovectorize-io:mainfrom Feb 4, 2026
Merged
feat(openclaw): add dynamic per-channel memory banks#290nicoloboschi merged 1 commit intovectorize-io:mainfrom
nicoloboschi merged 1 commit intovectorize-io:mainfrom
Conversation
nicoloboschi
approved these changes
Feb 4, 2026
Collaborator
nicoloboschi
left a comment
There was a problem hiding this comment.
+1
@slayoffer can you rebase and resolve conflicts?
Add support for per-channel memory isolation in OpenClaw plugin.
Each channel (Slack, Telegram, Discord, etc.) gets its own memory bank,
preventing memory leakage between channels.
Changes:
- Add deriveBankId() to create channel-specific bank IDs
- Bank ID format: {messageProvider}-{channelId} (e.g., slack-C123)
- Add getClientForContext() for context-aware client access
- Update hook handlers to (event, ctx) signature
- Set bank mission on first use per dynamic bank
- Add dynamicBankId and bankIdPrefix config options
Configuration:
- dynamicBankId: true (default) enables per-channel isolation
- bankIdPrefix: optional prefix for namespacing (e.g., "prod")
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1c0739c to
476c27b
Compare
Contributor
Author
@nicoloboschi Hey! Done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add per-channel memory isolation for the OpenClaw plugin. Each communication channel (Slack, Telegram, Discord, etc.) gets its own memory bank, preventing memory leakage between channels.
Problem
All channels share a single
openclawbank, causing:Solution
{messageProvider}-{channelId}slack-C08ABC123,telegram-456789dynamicBankId(default: true) andbankIdPrefixConfiguration
{ "dynamicBankId": true, "bankIdPrefix": "prod" }Results in bank IDs like
prod-slack-C123Test plan
🤖 Generated with Claude Code