openclaw/extensions/matrix/src
justinhuangcode 1298bd4e1b fix(matrix): skip reasoning-only messages in reply delivery
When `includeReasoning` is active (or `reasoningLevel` falls back to the
model default), the agent emits reasoning blocks as separate reply
payloads prefixed with "Reasoning:\n".  Matrix has no dedicated reasoning
lane, so these internal thinking traces leak into the chat as regular
user-visible messages.

Filter out pure-reasoning payloads (those starting with "Reasoning:\n" or
a `<thinking>` tag) before delivery so internal reasoning never reaches
the Matrix room.

Fixes #24411

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 04:36:27 +00:00
..
matrix fix(matrix): skip reasoning-only messages in reply delivery 2026-02-24 04:36:27 +00:00
actions.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
channel.directory.test.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
channel.ts refactor(channels): reuse runtime group policy helpers 2026-02-22 12:44:23 +01:00
config-schema.ts feat: per-channel responsePrefix override (#9001) 2026-02-04 16:16:34 -05:00
directory-live.test.ts test(matrix): cover directory context and group exact-match resolution 2026-02-18 16:22:20 +00:00
directory-live.ts refactor(matrix): dedupe directory/target match helpers 2026-02-18 16:22:20 +00:00
group-mentions.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
onboarding.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
outbound.ts feat(matrix): Add multi-account support to Matrix channel 2026-02-13 20:39:58 +01:00
resolve-targets.test.ts test(matrix): cover directory context and group exact-match resolution 2026-02-18 16:22:20 +00:00
resolve-targets.ts refactor(matrix): dedupe directory/target match helpers 2026-02-18 16:22:20 +00:00
runtime.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
tool-actions.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
types.ts feat(matrix): Add multi-account support to Matrix channel 2026-02-13 20:39:58 +01:00