Skip to content

fix(sessions): return direct-agent replies to their active session - #115756

Merged
steipete merged 1 commit into
mainfrom
codex/fix-session-send-dm-scope
Jul 29, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-session-send-dm-scope

Conversation

@steipete-oai

Copy link
Copy Markdown
Contributor

Closes #107399
Related: #107469

What Problem This Solves

Fixes an issue where users delegating a task from a legacy direct-message session would receive the delegated agent's completion in an unmonitored session instead of their active conversation.

Why This Change Was Made

Canonicalize only the reply address for structurally valid, unthreaded direct-message and DM session keys when the established route safely resolves to the agent's main session. Preserve the exact authenticated requester identity for visibility, ownership, sandbox, synchronous self-send, and session creation; conservatively preserve account-, peer-, team-, role-, binding-, owner-, and thread-isolated routes.

User Impact

Delegated cross-agent replies return to the user's active direct conversation, while isolated, foreign-agent, threaded, and group conversations remain separated.

Evidence

Thanks to @ChengKe771 for identifying the issue and proposing #107469. The final maintainer-owned implementation preserves the original contribution through its Co-authored-by commit trailer while additionally protecting structural DM routing, authenticated requester identity, and private binding scopes.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime agents Agent runtime and tooling size: L maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete
steipete merged commit 81171d0 into main Jul 29, 2026
190 of 197 checks passed
@steipete
steipete deleted the codex/fix-session-send-dm-scope branch July 29, 2026 08:48
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 29, 2026
…ft-ingestion

* origin/main:
  fix(feishu): reject unsupported initial document content (#115697)
  feat(media): probe duration and dimensions for playback metadata (#115728)
  fix(sandbox): scope runtimes by workspace (#115766)
  fix(ui): guide users through missing or broken AI setup (#115716)
  fix(sessions): return direct-agent replies to their active session (#115756)
  fix(zalo): stop provider startup after gateway shutdown (#115763)
  fix(agents): bound completed background process retention (#115760)
  fix(plugins): bound hook execution and retire stale registrations (#115695)
  fix(ui): collapse custodian startup error gap (#115720)
  fix(gateway): reload edited hook transforms (#107875)
  refactor: centralize channel streaming config hints (#115739)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
…ft-ingestion

* origin/main:
  fix(feishu): reject unsupported initial document content (openclaw#115697)
  feat(media): probe duration and dimensions for playback metadata (openclaw#115728)
  fix(sandbox): scope runtimes by workspace (openclaw#115766)
  fix(ui): guide users through missing or broken AI setup (openclaw#115716)
  fix(sessions): return direct-agent replies to their active session (openclaw#115756)
  fix(zalo): stop provider startup after gateway shutdown (openclaw#115763)
  fix(agents): bound completed background process retention (openclaw#115760)
  fix(plugins): bound hook execution and retire stale registrations (openclaw#115695)
  fix(ui): collapse custodian startup error gap (openclaw#115720)
  fix(gateway): reload edited hook transforms (openclaw#107875)
  refactor: centralize channel streaming config hints (openclaw#115739)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime maintainer Maintainer-authored PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: sessions_send sourceSessionKey ignores dmScope — stale key causes permanent inter-agent communication failure

2 participants