fix(ws2): register /new-task slash command + commands scope in Slack manifest
The slack_listener handles {type:slash_commands, command:/new-task} but the app
manifest declared no slash commands and no 'commands' scope, so Slack never
offered /new-task (the command can't be invoked). Add the slash command +
commands bot scope. Socket Mode delivers it over the socket (no request URL).
APPLY: update the app A0BCC7TTU66 from this manifest + reinstall to pick up the
new scope.
This commit is contained in:
parent
8dda4fbffe
commit
5f40418dd7
1 changed files with 11 additions and 2 deletions
|
|
@ -8,7 +8,15 @@
|
||||||
"bot_user": {
|
"bot_user": {
|
||||||
"display_name": "agent-team",
|
"display_name": "agent-team",
|
||||||
"always_online": true
|
"always_online": true
|
||||||
}
|
},
|
||||||
|
"slash_commands": [
|
||||||
|
{
|
||||||
|
"command": "/new-task",
|
||||||
|
"description": "Start a new agent-team task (clarify -> plan -> review)",
|
||||||
|
"usage_hint": "<task description>",
|
||||||
|
"should_escape": false
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"oauth_config": {
|
"oauth_config": {
|
||||||
"scopes": {
|
"scopes": {
|
||||||
|
|
@ -17,7 +25,8 @@
|
||||||
"channels:history",
|
"channels:history",
|
||||||
"groups:history",
|
"groups:history",
|
||||||
"im:history",
|
"im:history",
|
||||||
"app_mentions:read"
|
"app_mentions:read",
|
||||||
|
"commands"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Reference in a new issue