Add Slack agent wrapper with command and rich Block Kit support#603
Merged
phenobarbital merged 1 commit intomainfrom Feb 17, 2026
Merged
Add Slack agent wrapper with command and rich Block Kit support#603phenobarbital merged 1 commit intomainfrom
phenobarbital merged 1 commit intomainfrom
Conversation
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.
Motivation
help,clear,commands) and per-channel/user conversation memory for interactive Slack usage.Description
parrot/integrations/slack/wrapper.pyimplementingSlackAgentWrapperwhich handles Events API webhooks, slash commands, per-session memory, agent calls (agent.ask) and builds Slack Block Kit payloads for text, code, tables and images.parrot/integrations/slack/models.pydefiningSlackAgentConfigwith env fallback forbot_tokenandsigning_secret, andparrot/integrations/slack/__init__.pyto export the Slack integration.parrot/integrations/models.pyto recognizekind: slackand validate required credentials.parrot/integrations/manager.pyto initialize and trackSlackAgentWrapperinstances during startup and include them in shutdown cleanup.tests/test_slack_integration.pythat validate block generation andIntegrationBotConfigparsing for Slack.Testing
python -m py_compile parrot/integrations/slack/models.py parrot/integrations/slack/wrapper.py parrot/integrations/slack/__init__.py parrot/integrations/models.py parrot/integrations/manager.py parrot/integrations/__init__.py tests/test_slack_integration.pyand it succeeded.pytest -q tests/test_slack_integration.py tests/test_integration_wrappers.pybut test collection failed due to missing optional runtime dependencies (ModuleNotFoundError: markdown2,ModuleNotFoundError: aiohttp) in the environment.pip install aiohttp markdown2 -qbut network/proxy restrictions prevented installation in this environment, so full pytest run could not be completed here.Codex Task