Skip to content

feat(matrix): add draft streaming (edit-in-place partial replies) - #56387

Merged
gumadeiras merged 9 commits into
openclaw:mainfrom
jrusz:feat/matrix-draft-streaming
Mar 29, 2026
Merged

gumadeiras merged 9 commits into
openclaw:mainfrom
jrusz:feat/matrix-draft-streaming

Conversation

@jrusz

@jrusz jrusz commented Mar 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a streaming: "partial" config option for the Matrix plugin that edits a single message in place as the model generates text, matching Telegram's streaming UX. When active, block streaming is automatically disabled.

  • Problem: Matrix replies arrive as separate messages (one per block), causing notification spam and poor UX compared to Telegram/Slack streaming
  • Why it matters: Users on Matrix see fragmented replies and hit rate limits from rapid message sends
  • What changed: New draft stream state machine, edit-in-place via m.replace, handler wiring with error recovery and reply target handling
  • What did NOT change: Non-streaming Matrix behavior, other channels, message chunking logic

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor required for the fix
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

Root Cause / Regression History (if applicable)

N/A — new feature.

Regression Test Plan (if applicable)

N/A — new feature. Coverage:

  • Coverage level:
    • Unit test
    • Seam / integration test
    • End-to-end test
    • Existing coverage already sufficient
  • 10 unit tests for createMatrixDraftStream
  • 5 handler-level integration tests for streaming behavior
  • All 42 existing handler tests continue to pass

Implementation

Split into 4 commits:

  1. Config schema prep — Add streaming field to MatrixConfig type and MatrixConfigSchema so the field survives config validation. Regenerate baselines.

  2. editMessageMatrix — New send helper using Matrix m.replace relation (MSC2676), thread-aware for Synapse compatibility.

  3. createMatrixDraftStream — Coalescing state machine built on the shared createDraftStreamLoop from openclaw/plugin-sdk/channel-lifecycle with 1000ms throttle (matching Telegram/Slack). Stops on send/edit failure. Supports preserveReplyId for replyToMode: "all".

  4. Handler wiring — onPartialReply feeds incremental text to the draft stream using materializedTextLength offset to isolate per-block text. deliver callback finalizes via edit (text-only) or falls back to deliverMatrixReplies (media/failure). Additional hardening:

    • finally block stops draft stream on handler exit (prevents timer leaks on model timeout/error)
    • onAssistantMessageStart resets text offsets so post-tool blocks stream correctly
    • payload.replyToId mismatch detection: falls through to deliverMatrixReplies when the payload wants a different reply target (Matrix edits can't change reply relations)
    • Mismatch check skipped when replyToMode: "off" (replies stripped anyway) or threadTarget is set (thread relations take precedence)
    • Compaction notices bypass draft path
    • Post-final delivery does not reset stream (prevents ghost messages)

Configuration

{
  "channels": {
    "matrix": {
      "streaming": "partial"  // or true, "off", false (default: "off")
    }
  }
}

Per-account configuration is also supported under channels.matrix.accounts.<id>.streaming.

User-visible / Behavior Changes

  • New streaming config field for Matrix channel (default: off, no change for existing users)
  • When enabled, model responses are edited in place as they generate instead of delivered as separate messages

Diagram (if applicable)

Before (streaming off):
[model generates] -> [block 1 message] -> [block 2 message] -> [final message]

After (streaming: "partial"):
[model generates] -> [create draft] -> [edit draft] -> [edit draft] -> [finalize draft]

Security Impact (required)

  • New permissions/capabilities? No
  • Secrets/tokens handling changed? No
  • New/changed network calls? Yes — editMessageMatrix sends m.replace events to the Matrix homeserver (same auth as existing sends)
  • Command/tool execution surface changed? No
  • Data access scope changed? No

Repro + Verification

Environment

  • OS: Arch Linux
  • Runtime: Node 22 / Bun
  • Model: Ollama glm-5:cloud (125K context)
  • Integration: Matrix (self-hosted Synapse on Tailscale)
  • Config: streaming: "partial", allowPrivateNetwork: true

Steps

  1. Set channels.matrix.streaming to "partial" in config
  2. Send a message to the bot in a Matrix room
  3. Observe the response being edited in place as it generates

Expected

  • Single message appears and updates progressively until final text

Actual

  • Confirmed working on live deployment

Evidence

  • Failing test/log before + passing after
  • Trace/log snippets (draft-stream log lines on live server)
  • Screenshot/recording
  • Perf numbers

Human Verification (required)

  • Verified: live deployment on self-hosted Synapse with Ollama backend, single and multi-block responses
  • Edge cases checked: edit failure fallback, compaction notices, post-tool message boundaries
  • Not verified: encrypted rooms (no encryption configured on test server), replyToMode "all" (rarely used with Matrix)

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

Compatibility / Migration

  • Backward compatible? Yes (feature is off by default)
  • Config/env changes? New optional streaming field
  • Migration needed? No

Risks and Mitigations

  • Risk: Rate limiting from rapid edits on busy homeservers
    • Mitigation: 1000ms throttle matches Synapse default rate limits; stream stops on any API error

🤖 Generated with Claude Code

@openclaw-barnacle openclaw-barnacle Bot added channel: matrix Channel integration: matrix size: L labels Mar 28, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b36fc7b66

ℹ️ 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".

@greptile-apps

greptile-apps Bot commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds edit-in-place streaming (streaming: \"partial\") for the Matrix plugin, mirroring the Telegram/Slack progressive-typing UX. A new createMatrixDraftStream coalesces incremental model tokens via a shared createDraftStreamLoop (1 s throttle) and edits the same Matrix event in place using m.replace (MSC2676). The handler wires onPartialReply into the stream, disables block streaming when active, and finalises each block through a deliver callback that handles text-only, media, and fallback paths correctly. Multi-block responses are supported by tracking materializedTextLength and resetting the stream between blocks.

Key findings from the review:

  • formatted_body fallback missing * prefix (send.ts): MSC2676 requires the outer event's formatted_body to carry the * prefix (just like body) so that HTML-capable clients which don't yet support edits display the visual edit indicator correctly. Currently only body is prefixed.

  • Redundant final edit in deliver (handler.ts): draftStream.stop() flushes any pending draft text to Matrix; immediately after, deliver unconditionally calls editMessageMatrix again with payload.text. When the final token of a block was already flushed by stop(), this sends two consecutive edits with identical content — unnecessary API pressure that could interact poorly with Synapse's rate limiter (the PR itself marks rate-limit review as still open).

  • Architecture and state-machine logic for the draft stream, per-block reset, materializedTextLength bookkeeping, and error-recovery paths are all sound. Test coverage for the new stream is thorough.

Confidence Score: 5/5

Safe to merge; both remaining findings are non-blocking style/efficiency improvements.

All findings are P2. The missing formatted_body prefix affects only clients that don't support MSC2676 edits (a minority), and the redundant final edit is a benign extra API call rather than a functional defect. Core streaming logic, error recovery, multi-block handling, and test coverage are solid.

extensions/matrix/src/matrix/send.ts (formatted_body prefix) and extensions/matrix/src/matrix/monitor/handler.ts (redundant final edit) are worth revisiting before the rate-limit behavior review is completed.

Important Files Changed

Filename Overview
extensions/matrix/src/matrix/send.ts Adds editMessageMatrix implementing MSC2676 m.replace edits. The body fallback correctly carries the * prefix but formatted_body does not, which is a minor spec compliance gap for legacy clients.
extensions/matrix/src/matrix/draft-stream.ts New coalescing state machine for edit-in-place streaming. Throttle, no-op dedup, error recovery, and reset-for-next-block logic are all sound. Unit test coverage is thorough.
extensions/matrix/src/matrix/monitor/handler.ts Wires draft stream into the reply dispatcher. The materializedTextLength tracking and per-block reset logic are correct, but the deliver callback makes a redundant final edit after stop() already flushed the latest draft text, risking rate limit double-spend.
extensions/matrix/src/matrix/monitor/index.ts Resolves streaming config from account settings and passes it to the handler. Normalises true → partial and false/off → off correctly.
extensions/matrix/src/types.ts Adds streaming field to MatrixConfig with a clear JSDoc comment and boolean compat mapping. No issues.
extensions/matrix/src/matrix/draft-stream.test.ts Ten focused unit tests covering send, edit, coalescing, throttle, stop, reset, and error paths. Good fake-timer usage for throttle assertions.
extensions/matrix/src/matrix/monitor/handler.test.ts Adds streaming: off to an existing test fixture to satisfy the updated handler params type. No functional changes.
extensions/matrix/src/matrix/monitor/handler.test-helpers.ts Adds streaming to the test harness options and wires it through with a sensible off default. Clean addition.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: extensions/matrix/src/matrix/send.ts
Line: 300-305

Comment:
**`formatted_body` missing `* ` fallback prefix**

Per [MSC2676](https://github.com/matrix-org/matrix-spec-proposals/blob/main/proposals/2676-message-editing.md), the _outer_ event (the fallback seen by clients that don't understand `m.replace`) should prefix **both** `body` and `formatted_body` with `* `. Right now `body` is correctly set to `* ${convertedText}`, but the `formatted_body` from the spread of `newContent` is left as the rendered HTML without any prefix, so HTML-capable legacy clients will display the raw HTML without the visual edit indicator.

```suggestion
      const content: Record<string, unknown> = {
        ...newContent,
        body: `* ${convertedText}`,
        ...(newContent.formatted_body
          ? { formatted_body: `* ${newContent.formatted_body}` }
          : {}),
        "m.new_content": newContent,
        "m.relates_to": replaceRelation,
      };
```

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/matrix/src/matrix/monitor/handler.ts
Line: 937-946

Comment:
**Redundant final edit may double-consume rate limit budget**

`draftStream.stop()` (line 937) calls `loop.flush()` which drains any pending text and sends/edits the message. Immediately after, `editMessageMatrix` is called again with `payload.text`. If `payload.text` equals the text that was just flushed (which is the common case when `onPartialReply` has already received the final token), this results in two consecutive edits with identical content.

Synapse's default rate limit is effectively 1 edit per second. With the PR still marking rate-limit review as outstanding, this redundant call can push the stream over budget — especially at the end of a block that was actively throttled (the flush fires the queued edit AND the explicit final edit land close together).

If the intent is to guarantee the clean final version is sent (in case streaming text differs from `deliver`'s post-processed text), consider skipping the explicit edit when the texts match:

```typescript
const finalText = payload.text;
// stop() already flushes the last draft text; only re-edit if
// the final payload text differs from what was streamed.
if (draftEventId && finalText && !hasMedia && finalText !== draftStream.lastSentText()) {
  await editMessageMatrix(roomId, draftEventId, finalText, { ... });
}
```

(Alternatively, expose a `lastSentText` accessor from `MatrixDraftStream` and skip the edit when they match.)

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "feat(matrix): add draft streaming (edit-..." | Re-trigger Greptile

Comment thread extensions/matrix/src/matrix/send.ts Resolved
@jrusz
jrusz force-pushed the feat/matrix-draft-streaming branch 2 times, most recently from f3c18c5 to 14db266 Compare March 28, 2026 13:24

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 14db266744

ℹ️ 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".

@jrusz
jrusz force-pushed the feat/matrix-draft-streaming branch from 14db266 to e259d0b Compare March 28, 2026 13:37

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e259d0bf1d

ℹ️ 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".

@jrusz
jrusz force-pushed the feat/matrix-draft-streaming branch from e259d0b to 07ba45d Compare March 28, 2026 13:49

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 07ba45d0d7

ℹ️ 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".

@jrusz
jrusz force-pushed the feat/matrix-draft-streaming branch from 07ba45d to 1e81553 Compare March 28, 2026 14:03

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1e815531dc

ℹ️ 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".

@jrusz
jrusz force-pushed the feat/matrix-draft-streaming branch from 1e81553 to d98497b Compare March 28, 2026 14:47

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d98497b33a

ℹ️ 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".

@jrusz
jrusz force-pushed the feat/matrix-draft-streaming branch from d98497b to a577d34 Compare March 28, 2026 15:15

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a577d3435a

ℹ️ 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".

@jrusz
jrusz force-pushed the feat/matrix-draft-streaming branch 2 times, most recently from b5d7a05 to 687a429 Compare March 28, 2026 15:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b5d7a05754

ℹ️ 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".

Comment thread extensions/matrix/src/types.ts Resolved
@jrusz
jrusz force-pushed the feat/matrix-draft-streaming branch from 687a429 to c1b3c38 Compare March 28, 2026 16:56
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Mar 28, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c1b3c38764

ℹ️ 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".

@jrusz
jrusz force-pushed the feat/matrix-draft-streaming branch from c1b3c38 to df10ca2 Compare March 28, 2026 17:27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: df10ca2137

ℹ️ 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".

@jrusz
jrusz force-pushed the feat/matrix-draft-streaming branch from df10ca2 to c15a7d2 Compare March 28, 2026 18:03

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c15a7d2ddd

ℹ️ 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".

@jrusz
jrusz force-pushed the feat/matrix-draft-streaming branch from c15a7d2 to fa8a8a8 Compare March 28, 2026 18:10

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fa8a8a872f

ℹ️ 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".

jrusz and others added 8 commits March 29, 2026 01:42
New function that edits an existing Matrix event using MSC2676
m.replace relations. Supports thread-aware edits and HTML
formatting via buildTextContent. No callers yet.

Co-Authored-By: Claude claude-opus-4-6 <[email protected]>
Signed-off-by: Jakub Rusz <[email protected]>
Introduce createMatrixDraftStream — a throttled state machine that
manages edit-in-place streaming for Matrix. Uses the shared
createDraftStreamLoop from plugin-sdk with a 1000ms throttle.
Handles send/edit failures gracefully by stopping the stream and
letting the deliver callback fall through to normal delivery.

Includes preserveReplyId option for replyToMode "all" so reset()
restores the original replyToId instead of clearing it.

10 unit tests covering create, throttle, dedup, flush, stop, reset,
error handling, and preserveReplyId behavior.

Co-Authored-By: Claude claude-opus-4-6 <[email protected]>
Signed-off-by: Jakub Rusz <[email protected]>
Integrate createMatrixDraftStream into the Matrix message handler
when streaming: "partial" is configured.

- Resolve streaming config in monitor/index.ts
- Wire onPartialReply to feed accumulated text into draft stream,
  using materializedTextLength offset to isolate per-block text
- Wire onAssistantMessageStart to reset offsets on message boundaries
  so post-tool blocks stream correctly
- Final delivery: edit draft with final text, fall back to
  deliverMatrixReplies on edit failure
- Disable block streaming when draft streaming is active (draft
  streaming replaces it with edit-in-place updates)
- Only reset draft stream on block delivery, not final (prevents
  ghost messages from late async callbacks)
- Add finally block to stop draft stream on handler exit (prevents
  timer leaks on model timeout/error)
- Honor payload.replyToId: detect mismatch with draft's reply target
  and fall through to deliverMatrixReplies (Matrix edits cannot
  change reply relations); skip check when replyToMode is "off"
- Apply mismatch guard to both text-only and media branches

5 handler-level integration tests covering edit failure fallback,
post-final behavior, message boundary reset, compaction notice
bypass, and cleanup on handler error.

Co-Authored-By: Claude claude-opus-4-6 <[email protected]>
Signed-off-by: Jakub Rusz <[email protected]>
@gumadeiras
gumadeiras force-pushed the feat/matrix-draft-streaming branch from 62413db to 53e566b Compare March 29, 2026 05:42
@gumadeiras
gumadeiras merged commit 7e7e45c into openclaw:main Mar 29, 2026
8 checks passed
@gumadeiras

Copy link
Copy Markdown
Member

Merged via squash.

Thanks @jrusz!

Alix-007 pushed a commit to Alix-007/openclaw that referenced this pull request Mar 30, 2026
…enclaw#56387)

Merged via squash.

Prepared head SHA: 53e566b
Co-authored-by: jrusz <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
alexjiang1 pushed a commit to alexjiang1/openclaw that referenced this pull request Mar 31, 2026
…enclaw#56387)

Merged via squash.

Prepared head SHA: 53e566b
Co-authored-by: jrusz <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
gumadeiras pushed a commit to teconomix/openclaw that referenced this pull request Mar 31, 2026
- Append 🧵<threadRootId> to session key when a Matrix thread root
  is present, giving each thread its own isolated session (mirrors
  Mattermost replyToMode=all behavior)
- Add dm.threadReplies config option to override threadReplies for DMs
  independently of group rooms
- Update handler tests to expect thread-scoped session keys
- Add route.test.ts coverage for thread session key isolation

Streaming support was already merged upstream in PR openclaw#56387.
pgondhi987 pushed a commit to pgondhi987/openclaw that referenced this pull request Mar 31, 2026
…enclaw#56387)

Merged via squash.

Prepared head SHA: 53e566b
Co-authored-by: jrusz <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
…enclaw#56387)

Merged via squash.

Prepared head SHA: 53e566b
Co-authored-by: jrusz <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
Tardisyuan pushed a commit to Tardisyuan/openclaw that referenced this pull request Apr 30, 2026
…enclaw#56387)

Merged via squash.

Prepared head SHA: 53e566b
Co-authored-by: jrusz <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
…enclaw#56387)

Merged via squash.

Prepared head SHA: 53e566b
Co-authored-by: jrusz <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
…enclaw#56387)

Merged via squash.

Prepared head SHA: 53e566b
Co-authored-by: jrusz <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
Nachx639 pushed a commit to Nachx639/clawdbot that referenced this pull request Jun 17, 2026
…enclaw#56387)

Merged via squash.

Prepared head SHA: 53e566b
Co-authored-by: jrusz <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
vixco pushed a commit to vixco/openclaw that referenced this pull request Aug 16, 2026
…enclaw#56387)

Merged via squash.

Prepared head SHA: 53e566b
Co-authored-by: jrusz <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
globalcaos pushed a commit to globalcaos/tinkerclaw that referenced this pull request Sep 29, 2026
…enclaw#56387)

Merged via squash.

Prepared head SHA: 53e566b
Co-authored-by: jrusz <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
…enclaw#56387)

Merged via squash.

Prepared head SHA: 53e566b
Co-authored-by: jrusz <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: matrix Channel integration: matrix docs Improvements or additions to documentation size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants