Skip to content

[BACKPORT] fix(slack): allow group DMs to be opened from the message tool - #133199

Merged
sjf-oa merged 2 commits into
sjf_openclaw_2026-07-31from
sjf/backport-132928-5
Aug 30, 2026
Merged

sjf-oa merged 2 commits into
sjf_openclaw_2026-07-31from
sjf/backport-132928-5

Conversation

@sjf-oa

@sjf-oa sjf-oa commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The current OpenClaw release branch does not include the merged Slack message-tool support for opening or reusing one-to-one and group direct-message conversations.

Why This Change Was Made

Backport the merged conversation-open action onto the active release line so the release can expose the same validated Slack workflow as main without bringing unrelated main-branch changes.

User Impact

Users on this release line can ask the Slack message tool to open or reuse a DM or group DM for explicit member IDs, then send to the returned canonical target. Existing message gates, workspace scoping, and read or inbound policies remain unchanged.

Evidence

  • Applies merged source PR fix(slack): allow group DMs to be opened from the message tool #132928 from final main commit a66dfa7742444d1d00b7b1f0f06680342fc7cdba.
  • Applied as one release-branch commit.
  • Resolved release-line divergence by exporting the new action through the release runtime facade and preserving the release branch's existing workspace-auth admission behavior.
  • git diff --check passes.
  • oxfmt --check passes for all 16 changed files.
  • The docs inventory command completes successfully.
  • Focused Vitest validation passes: 32 infra tests and 123 Slack tests across five test files (155 total).

Backport-Of: #132928
Release-Target: sjf_openclaw_2026-07-31

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: slack Channel integration: slack size: M maintainer Maintainer-authored PR labels Aug 30, 2026
@sjf-oa sjf-oa added the backport Backport of an already-reviewed change to a release branch label Aug 30, 2026 — with ChatGPT Codex Connector
@sjf-oa
sjf-oa marked this pull request as ready for review August 30, 2026 08:45
@sjf-oa
sjf-oa force-pushed the sjf/backport-132928-5 branch from 872e429 to f19aa03 Compare August 30, 2026 08:47
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 5:05 AM ET / 09:05 UTC.

ClawSweeper review

What this changes

This backport adds Slack message-tool support for opening or reusing one-to-one and group direct-message conversations, then returning a scoped target for the existing send action.

Merge readiness

⚠️ Ready for maintainer review - 5 items remain

Keep open. This is a necessary release-branch backport: current main has the merged upstream implementation, while the latest release tag lacks it; the prior SDK-baseline blocker is resolved, but release inclusion and exact-head CI remain maintainer work.

Priority: P1
Reviewed head: b52252cfb7317a5209655819b0af50f4020cd18e
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The backport is a coherent upstream-equivalent change with focused boundary coverage and the prior baseline issue corrected; release selection and exact-head CI are still pending.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a MEMBER-authored release backport, so the ordinary external-contributor proof gate does not apply. The branch includes adapter-level WebClient request coverage, but the supplied context contains no real Slack workspace trace.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a MEMBER-authored release backport, so the ordinary external-contributor proof gate does not apply. The branch includes adapter-level WebClient request coverage, but the supplied context contains no real Slack workspace trace.
Evidence reviewed 6 items Current-main implementation: Current main exposes the same openConversation runtime case, preserving workspace admission before invoking the Slack action.
Release gap: The latest release tag does not contain the conversation-open helper, so this behavior is on main but not in the shipped release baseline targeted by this PR.
Introduced action path: The backport commit adds strict recipient validation, invokes Slack conversations.open, and returns a canonical channel target; the dispatcher exposes it as a targetless action with no conversation-read authority.
Findings None None.
Security None None.

How this fits together

The Slack channel plugin maps agent message-tool actions to the configured Slack account’s Web API. This action validates member IDs, opens a scoped conversation through the write identity, and returns a target that the existing send path can use.

flowchart LR
  A[Agent message tool] --> B[Slack action dispatcher]
  B --> C[Recipient and workspace validation]
  C --> D[Configured Slack write identity]
  D --> E[Slack conversation API]
  E --> F[Scoped conversation target]
  F --> G[Existing send action]
Loading

Decision needed

Question Recommendation
Should this optional Slack conversation-open backport be included in the sjf_openclaw_2026-07-31 release line? Include after release verification: Select the backport for this release line after reviewing the security-fast failure and obtaining completed relevant exact-head CI.

Why: Backports are optional release-scope decisions, and the protected maintainer label requires explicit maintainer handling even though the upstream implementation is already merged on main.

Before merge

  • Resolve merge risk (P1) - This adds a public shared message action to a release line, so the release owner must explicitly confirm it belongs in the selected optional-backport scope.
  • Resolve merge risk (P1) - The exact-head check set is incomplete and security-fast is failing; inspect that failure and wait for the remaining relevant checks before merging.
  • Resolve merge risk (P1) - The reviewer could not independently inspect the pinned Slack SDK source or a live Slack response because the dependency was not installed and network resolution failed; this is a maintainer-facing verification limit, not missing contributor proof.
  • Complete next step (P2) - The protected maintainer label and optional-release-backport choice require release-owner judgment; there is no concrete repair to dispatch while CI is incomplete.
Agent review details

Security

None.

PR surface

Source +118, Tests +293, Docs +12, Generated 0. Total +423 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 10 118 0 +118
Tests 5 293 0 +293
Docs 1 14 2 +12
Config 0 0 0 0
Generated 1 3 3 0
Other 0 0 0 0
Total 17 428 5 +423

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Confirm release inclusion and CI (recommended)
    Treat the action as an intentional additive release-line API change only after the release owner confirms scope and the exact-head security and CI state is resolved.
  2. Defer the backport
    Do not merge it into this release line if main-only availability is acceptable for the current release scope.

Technical review

Best possible solution:

Include this bounded upstream-equivalent Slack action only if the release owner selects it for the release line, after the exact head has a resolved security-fast result and completed relevant CI.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: the latest release tag lacks the helper while the head adds the action from shared discovery through Slack API dispatch; no live Slack workspace run was supplied.

Is this the best way to solve the issue?

Yes. This is the narrow owner-boundary backport of the already-merged main implementation, retaining shared action-contract declarations while keeping Slack-specific validation and API use in the Slack plugin.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3306b6295315.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a MEMBER-authored release backport, so the ordinary external-contributor proof gate does not apply. The branch includes adapter-level WebClient request coverage, but the supplied context contains no real Slack workspace trace.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: The PR backports an active Slack message-tool workflow that users on the release line otherwise cannot perform.
  • merge-risk: 🚨 compatibility: It adds conversation-open to the shared ChannelMessageActionName vocabulary and exposes it through the Slack message tool on a release branch.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a MEMBER-authored release backport, so the ordinary external-contributor proof gate does not apply. The branch includes adapter-level WebClient request coverage, but the supplied context contains no real Slack workspace trace.

Evidence

What I checked:

Likely related people:

  • sjf-oa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Review the security-fast failure and let the current exact-head CI matrix complete before release merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-30T08:54:25.461Z sha f19aa03 :: found issues before merge. :: [P1] Refresh the plugin SDK API baseline for the added public action

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 30, 2026
@sjf-oa
sjf-oa merged commit 6716e3d into sjf_openclaw_2026-07-31 Aug 30, 2026
126 of 128 checks passed
@sjf-oa
sjf-oa deleted the sjf/backport-132928-5 branch August 30, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Backport of an already-reviewed change to a release branch channel: slack Channel integration: slack docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants