Troubleshooting¶
Start with tools.slack.status or the /slack command. Every alias has a state, ready, needs_sign_in or error, and status names one next step. tools.slack.probe confirms one alias with Slack.
The plugin does not start¶
| Message | What to do |
|---|---|
HOST_UNTESTED | The plugin refuses an OpenCode release outside >=2.4.1 <2.5.0. Update OpenCode, or set allowUntestedHost to start anyway. |
OPTIONS_INVALID | The failure names the option and its next step. Configuration has every field and its rules. |
An alias is not ready¶
NEEDS_SIGN_IN: run/connect, choose that alias's server (slackorslack-work), and sign in. If the row is missing, no server was registered: set the Slack app's client ID and restart OpenCode.- No server at all: the plugin registers a server only when it resolves the app's client ID. Paste it in
/connectunder Slack app client ID, or setoauth.client_id, then restart. error: status gives the reason and the next step. A reason is redacted and cut, and never carries a token.- A write tool is absent, or the account cannot do something yet:
statuslists a shortfall for each default scope the sign-in does not hold, with what it cannot do and itsfix.sign_in: sign in again, choosing Read and write for a write scope.settings: this deployment's options do not ask for it; add it tooauth.scopesand the alias'sscopes.provider_admin: the Slack app does not offer it, so its administrator adds it to the app's user scopes fromdocs/slack-app-manifest.json, then people sign in again.none: nothing allows it for that account.
A call is refused¶
| Code | Next step |
|---|---|
SCOPE_MISSING | Slack named a scope the sign-in lacks, and the refusal carries the account and a shortfall. Follow the shortfall's fix: sign in again with Read and write for sign_in; add the scope to oauth.scopes and the alias's scopes for settings; ask the Slack app's administrator for provider_admin; for none, nothing allows it. A private channel's history needs groups:history; a group message marked read needs mpim:write; a send or a reply needs chat:write, a send to a person im:write and a send with files files:write, which are defaults; deleting a message in a private channel needs groups:history. Creating a channel and inviting people uses the default channels:write and groups:write; sign in again after an upgrade so the new defaults are granted. |
ACCOUNT_REQUIRED, ACCOUNT_UNKNOWN | Pass one of the aliases the failure lists. Several workspaces has the steps. |
CURSOR_INVALID | The cursor belongs to another account, source or scope. Read again without it. |
CURSOR_EXPIRED | Slack no longer keeps that history. Read again without the cursor. |
TOO_LARGE | Read a narrower window or a smaller thread. The plugin never cuts a detail page. |
RATE_LIMITED | Wait the time the failure names, then retry once. |
PERMISSION_DENIED | The agent's rules or the person's grant do not cover the call. Ask for it; do not widen it yourself. |
UNAVAILABLE | Slack could not be reached. Read tools.slack.status and follow its next step. |
A private read is denied¶
mentions_list, direct_list, direct_thread_read, slack_slack_search_public_and_private and slack_slack_read_file carry effect: deny. They are denied at every access level, all included. A later allow rule for one agent or tool is the only way to run one; raising access does not.
A raw send is denied¶
slack_slack_send_message, slack_slack_send_message_draft, slack_slack_schedule_message and slack_slack_complete_file_upload carry effect: deny, at every access level. Send with the slack.send action instead: plan_send with the person's user id, found with a user lookup now, or a channel id, then send with its planId. A direct message's D… id is refused; pass the person's user id.
A write does not run¶
Every write needs a confirmation: an OpenCode ask, or a host-signed action grant over RPC. An allow rule alone is not a confirmation. read-only turns every write off; ask-changes asks first. The actions are the same: a preview (plan_send, plan_reply, plan_delete) writes nothing, and its commit (send, reply, delete) runs only with the person's confirmation, at every access level but read-only.
Next¶
- Configuration for every option and default.
- Accounts for the sign-in mechanism.
- Capabilities for what each method reads or writes.