Skip to content

docs(slack): add missing scopes for DM replies - #235

Merged
steipete merged 2 commits into
openclaw:mainfrom
medmatic-ai:docs/fix-slack-scopes
Jan 6, 2026
Merged

steipete merged 2 commits into
openclaw:mainfrom
medmatic-ai:docs/fix-slack-scopes

Conversation

@jarvis-medmatic

@jarvis-medmatic jarvis-medmatic commented Jan 5, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The Slack manifest in the docs is missing scopes required for DM replies to work.

When trying to reply to a DM, conversations.open is called to get the channel ID, but this API requires im:write scope which wasn't included.

The error manifests as:

slack block reply failed: Error: An API error occurred: missing_scope

With the API returning:

{
  "error": "missing_scope",
  "needed": "channels:write,groups:write,mpim:write,im:write",
  "provided": "..."
}

Solution

Add the missing scopes to the manifest:

Scope Why needed
im:write Required for conversations.open to reply to DMs
im:read List DM conversations
mpim:write Reply to multi-person DMs
mpim:read List multi-person DM conversations
groups:write Interact with private channels
groups:read List private channels

Notes

  • Without im:write, the example config (which has dm.enabled: true) cannot actually reply to DMs
  • Discovered while setting up Clawdbot Slack integration

(written by 🤖, fully tested in production by 🧍)

The manifest was missing scopes required for conversations.open API,
which is used to get DM channel IDs for replies.

Added scopes:
- im:write (required for DM replies)
- im:read (list DM conversations)
- mpim:write (reply to multi-person DMs)
- mpim:read (list MPDMs)
- groups:write (private channel interactions)
- groups:read (list private channels)

Without im:write, the example config (dm.enabled: true) cannot
actually reply to DMs - fails with missing_scope error.
@steipete

steipete commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

Thank you Mr Jarvis!

@steipete
steipete merged commit 6fe250c into openclaw:main Jan 6, 2026
dgarson added a commit to dgarson/clawdbot that referenced this pull request Feb 9, 2026
* feat: migrate exec/node approval callers to canonical tool.approval.request

Replace legacy `exec.approval.request` calls in bash-tools.exec.ts and
register.invoke.ts with the canonical `tool.approval.request` method.

- Add shared `computeToolApprovalRequestHash` helper in src/infra/
- Update node host and gateway host approval paths in bash-tools.exec.ts
- Update CLI nodes run approval path in register.invoke.ts
- Pass toolName, paramsSummary, and requestHash for anti-stale validation
- Preserve all legacy exec fields (command, cwd, host, security, ask) for
  backward-compatible event broadcasting
- Update test mocks to match new method name

Decision flow (allow-once, allow-always, deny, timeout/fallback) and
allowlist persistence behavior remain unchanged.

https://claude.ai/code/session_019DWn228LJaz8BWmiQV4XTi

* refactor: unify approval managers and DRY request hash

- Gap 1: ToolApprovalManager.computeRequestHash now delegates to the
  shared computeToolApprovalRequestHash helper in src/infra/, removing
  the duplicate SHA-256 implementation.
- Gap 2: Legacy exec.approval.request/resolve handlers now delegate to
  ToolApprovalManager instead of the separate ExecApprovalManager.
  Both handlers share a single manager instance so pending approvals
  are visible from either method namespace. The exec.approval.resolve
  handler retrieves the stored requestHash from the pending record,
  preserving backward compatibility for callers that don't supply it.
- Gap 3: CLI nodes-cli.coverage.test.ts now asserts that
  tool.approval.request calls include toolName, requestHash, and
  paramsSummary, verifying the canonical contract end-to-end.

https://claude.ai/code/session_019DWn228LJaz8BWmiQV4XTi

---------

Co-authored-by: Claude <[email protected]>
dgarson added a commit to dgarson/clawdbot that referenced this pull request Feb 22, 2026
dgarson added a commit to dgarson/clawdbot that referenced this pull request Feb 22, 2026
… (wire all); fix nav+skeleton for openclaw#235-237 (DatabaseSchemaViewer, DeploymentEnvironmentManager, MLExperimentTracker)
venhi5282 pushed a commit to venhi5282/openclaw that referenced this pull request Mar 9, 2026
…penclaw#20792) (openclaw#235)

* Initial plan

* LINE/Security: harden inbound media temp-file naming (port upstream openclaw#20792)

Co-authored-by: jiulingyun <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jiulingyun <[email protected]>
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
The manifest was missing scopes required for conversations.open API,
which is used to get DM channel IDs for replies.

Added scopes:
- im:write (required for DM replies)
- im:read (list DM conversations)
- mpim:write (reply to multi-person DMs)
- mpim:read (list MPDMs)
- groups:write (private channel interactions)
- groups:read (list private channels)

Without im:write, the example config (dm.enabled: true) cannot
actually reply to DMs - fails with missing_scope error.

Co-authored-by: Manuel Hettich <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
The manifest was missing scopes required for conversations.open API,
which is used to get DM channel IDs for replies.

Added scopes:
- im:write (required for DM replies)
- im:read (list DM conversations)
- mpim:write (reply to multi-person DMs)
- mpim:read (list MPDMs)
- groups:write (private channel interactions)
- groups:read (list private channels)

Without im:write, the example config (dm.enabled: true) cannot
actually reply to DMs - fails with missing_scope error.

Co-authored-by: Manuel Hettich <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
muneebhashone pushed a commit to muneebhashone/clawdbot that referenced this pull request Aug 25, 2026
The manifest was missing scopes required for conversations.open API,
which is used to get DM channel IDs for replies.

Added scopes:
- im:write (required for DM replies)
- im:read (list DM conversations)
- mpim:write (reply to multi-person DMs)
- mpim:read (list MPDMs)
- groups:write (private channel interactions)
- groups:read (list private channels)

Without im:write, the example config (dm.enabled: true) cannot
actually reply to DMs - fails with missing_scope error.

Co-authored-by: Manuel Hettich <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
zeekay pushed a commit to Dream-AI-4444/bot that referenced this pull request Sep 11, 2026
The manifest was missing scopes required for conversations.open API,
which is used to get DM channel IDs for replies.

Added scopes:
- im:write (required for DM replies)
- im:read (list DM conversations)
- mpim:write (reply to multi-person DMs)
- mpim:read (list MPDMs)
- groups:write (private channel interactions)
- groups:read (list private channels)

Without im:write, the example config (dm.enabled: true) cannot
actually reply to DMs - fails with missing_scope error.

Co-authored-by: Manuel Hettich <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
The manifest was missing scopes required for conversations.open API,
which is used to get DM channel IDs for replies.

Added scopes:
- im:write (required for DM replies)
- im:read (list DM conversations)
- mpim:write (reply to multi-person DMs)
- mpim:read (list MPDMs)
- groups:write (private channel interactions)
- groups:read (list private channels)

Without im:write, the example config (dm.enabled: true) cannot
actually reply to DMs - fails with missing_scope error.

Co-authored-by: Manuel Hettich <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants