openclaw/extensions/matrix/src
peter eaebed0e38
fix(matrix): only use 2-member DM fallback when dm refresh fails
Issue #54772 reports that two separate 2-person Matrix rooms with the same participants can both get routed as DMs. The regression comes from treating strict 2-member membership as a general fallback even when the DM cache is available and says the room is not a DM.

Move the catch from refreshDmCache() into isDirectMessage(). When the refresh succeeds, keep the existing client.dms.isDm(roomId) && isStrictDirectMembership(...) gate so non-DM 2-person rooms stay grouped. Only when the refresh fails do we fall back to the exact 2-member heuristic and keep the warning log.
2026-03-27 19:07:42 -04:00
..
matrix fix(matrix): only use 2-member DM fallback when dm refresh fails 2026-03-27 19:07:42 -04:00
account-selection.ts refactor: share account id selection helpers 2026-03-22 19:45:59 +00:00
actions.account-propagation.test.ts fix(matrix): preserve send aliases and voice intent 2026-03-22 20:35:40 -07:00
actions.test.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
actions.ts fix(matrix): preserve send aliases and voice intent 2026-03-22 20:35:40 -07:00
auth-precedence.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
channel.account-paths.test.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
channel.directory.test.ts refactor(test): dedupe shared test helpers 2026-03-21 23:07:51 +00:00
channel.resolve.test.ts refactor(test): dedupe setup wizard helpers 2026-03-22 00:16:31 +00:00
channel.runtime.ts Matrix: fix typecheck and boundary drift 2026-03-19 08:03:56 -04:00
channel.setup.test.ts test: dedupe matrix setup seams 2026-03-26 17:04:23 +00:00
channel.ts refactor: share directory config listers 2026-03-26 23:20:26 +00:00
cli.test.ts refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
cli.ts Matrix: guard private-network homeserver access 2026-03-19 23:24:50 -04:00
config-schema.test.ts
config-schema.ts fix: repair latest-main ci gate 2026-03-27 17:57:23 +00:00
directory-live.test.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
directory-live.ts Matrix: guard private-network homeserver access 2026-03-19 23:24:50 -04:00
env-vars.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
group-mentions.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
onboarding.resolve.test.ts refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
onboarding.test-harness.ts refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
onboarding.test.ts refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
onboarding.ts Matrix: guard private-network homeserver access 2026-03-19 23:24:50 -04:00
outbound.test.ts Outbound: preserve routed audioAsVoice delivery 2026-03-21 15:14:37 -07:00
outbound.ts Outbound: preserve routed audioAsVoice delivery 2026-03-21 15:14:37 -07:00
plugin-entry.runtime.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
profile-update.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
registry-backed.contract.test.ts refactor: move extension-owned tests to extensions 2026-03-27 21:37:09 +00:00
resolve-targets.test.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
resolve-targets.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
runtime-api.ts fix(ci): repair extension and discord test gates 2026-03-27 19:26:25 +00:00
runtime.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
session-binding.contract.test.ts refactor: move extension-owned tests to extensions 2026-03-27 21:37:09 +00:00
session-route.ts Matrix: move outbound session routing behind plugin boundary 2026-03-18 04:09:48 +00:00
setup-bootstrap.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
setup-config.ts Matrix: guard private-network homeserver access 2026-03-19 23:24:50 -04:00
setup-core.test.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
setup-core.ts Matrix: guard private-network homeserver access 2026-03-19 23:24:50 -04:00
setup-surface.ts fix(ci): repair main type and boundary regressions 2026-03-19 08:00:33 -07:00
storage-paths.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
test-mocks.ts
test-runtime.ts refactor(test): dedupe shared test helpers 2026-03-21 23:07:51 +00:00
tool-actions.runtime.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
tool-actions.test.ts fix(matrix): preserve send aliases and voice intent 2026-03-22 20:35:40 -07:00
tool-actions.ts fix(matrix): preserve send aliases and voice intent 2026-03-22 20:35:40 -07:00
types.ts Matrix: add allowBots bot-to-bot policy 2026-03-19 23:24:50 -04:00