Repository navigation
docs(slack): add missing scopes for DM replies - #235
Merged
Merged
Conversation
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.
Contributor
|
Thank you Mr Jarvis! |
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Slack manifest in the docs is missing scopes required for DM replies to work.
When trying to reply to a DM,
conversations.openis called to get the channel ID, but this API requiresim:writescope which wasn't included.The error manifests as:
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:
im:writeconversations.opento reply to DMsim:readmpim:writempim:readgroups:writegroups:readNotes
im:write, the example config (which hasdm.enabled: true) cannot actually reply to DMs(written by 🤖, fully tested in production by 🧍)