Skip to content

Fix/matrix accountid routing#1

Merged
BadTurki merged 2 commits into
mainfrom
fix/matrix-accountid-routing
Feb 22, 2026
Merged

Fix/matrix accountid routing#1
BadTurki merged 2 commits into
mainfrom
fix/matrix-accountid-routing

Conversation

@BadTurki

Copy link
Copy Markdown
Owner

What this fixes

Fixes an issue where Matrix channels with multiple accounts would incorrectly use the default/first authenticated account when sending images instead of the account bound to the agent.

Changes

  • Thread accountId through Matrix message actions and tool handlers
  • Add currentAccountId to ChannelThreadingToolContext for outbound routing
  • Plumb x-openclaw-message-to header as currentChannelId in gateway HTTP handler
  • Add fallback to toolContext.currentAccountId in message-action-runner

Testing

Tested with Matrix channel using 2 accounts (default + muse) with separate agent bindings. Messages and images now route through the correct account.

BadTurki and others added 2 commits February 21, 2026 22:06
- Thread accountId through Matrix message actions and tool handlers
- Add currentAccountId to ChannelThreadingToolContext for outbound routing
- Plumb x-openclaw-message-to header as currentChannelId in gateway HTTP handler
- Add fallback to toolContext.currentAccountId in message-action-runner

Fixes an issue where Matrix channels with multiple accounts would
incorrectly use the default/first authenticated account when sending
images instead of the account bound to the agent.
@BadTurki BadTurki merged commit 4977888 into main Feb 22, 2026
@BadTurki BadTurki deleted the fix/matrix-accountid-routing branch February 23, 2026 05:48
@BadTurki BadTurki restored the fix/matrix-accountid-routing branch February 23, 2026 05:53
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