fix(matrix): pass agentId to buildMentionRegexes for agent-level mention patterns#51272
Conversation
Greptile SummaryThis PR fixes a bug where the Matrix plugin ignored agent-level Key changes:
Confidence Score: 4/5
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 25786bbb05
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| const { route: _route, configuredBinding: _configuredBinding } = resolveMatrixInboundRoute({ | ||
| cfg, | ||
| accountId, | ||
| roomId, | ||
| senderId, |
There was a problem hiding this comment.
Delay bound-route lookup until after the mention gate
In rooms that still require mentions, moving resolveMatrixInboundRoute() here changes more than pattern selection: that helper touches any matched runtime binding (extensions/matrix/src/matrix/monitor/route.ts:49-59), and Matrix bindings use lastActivityAt for idle expiry (extensions/matrix/src/matrix/thread-bindings.ts:497-557). The result is that unmentioned room chatter, unauthorized control commands, or other messages that are immediately dropped below now refresh a focused/bound thread anyway, so ACP/session bindings can stay alive indefinitely even though no message was actually routed to the agent.
Useful? React with 👍 / 👎.
…ion patterns (openclaw#51272) * fix(matrix): pass agentId to buildMentionRegexes for agent-level mention patterns * fix(matrix): resolve conflicts from main branch * Retrigger CI --------- Co-authored-by: Dinakar Sarbada <dinakars777@users.noreply.github.com>
…ion patterns (openclaw#51272) * fix(matrix): pass agentId to buildMentionRegexes for agent-level mention patterns * fix(matrix): resolve conflicts from main branch * Retrigger CI --------- Co-authored-by: Dinakar Sarbada <dinakars777@users.noreply.github.com>
…ion patterns (openclaw#51272) * fix(matrix): pass agentId to buildMentionRegexes for agent-level mention patterns * fix(matrix): resolve conflicts from main branch * Retrigger CI --------- Co-authored-by: Dinakar Sarbada <dinakars777@users.noreply.github.com>
…ion patterns (openclaw#51272) * fix(matrix): pass agentId to buildMentionRegexes for agent-level mention patterns * fix(matrix): resolve conflicts from main branch * Retrigger CI --------- Co-authored-by: Dinakar Sarbada <dinakars777@users.noreply.github.com>
…ion patterns (openclaw#51272) * fix(matrix): pass agentId to buildMentionRegexes for agent-level mention patterns * fix(matrix): resolve conflicts from main branch * Retrigger CI --------- Co-authored-by: Dinakar Sarbada <dinakars777@users.noreply.github.com>
…ion patterns (openclaw#51272) * fix(matrix): pass agentId to buildMentionRegexes for agent-level mention patterns * fix(matrix): resolve conflicts from main branch * Retrigger CI --------- Co-authored-by: Dinakar Sarbada <dinakars777@users.noreply.github.com>
…ion patterns (openclaw#51272) * fix(matrix): pass agentId to buildMentionRegexes for agent-level mention patterns * fix(matrix): resolve conflicts from main branch * Retrigger CI --------- Co-authored-by: Dinakar Sarbada <dinakars777@users.noreply.github.com>
Summary
mentionPatternsconfigurationagentIdbefore building mention regexesIssue
Fixes #51082
Testing