Skip to content

fix: quiet Slack control flow#36670

Open
jakelongvu-bot wants to merge 1 commit into
NousResearch:mainfrom
jakelongvu-bot:codex/slack-action-auth-status-noise
Open

fix: quiet Slack control flow#36670
jakelongvu-bot wants to merge 1 commit into
NousResearch:mainfrom
jakelongvu-bot:codex/slack-action-auth-status-noise

Conversation

@jakelongvu-bot

Copy link
Copy Markdown

Summary

  • authorize Slack approval/slash-confirm button clicks through the same SLACK_ALLOWED_USERS, GATEWAY_ALLOWED_USERS, and paired-user store used for normal messages
  • attach the GatewayRunner to the Slack adapter so paired Slack users can approve actions from buttons
  • suppress Slack busy/lifecycle/status callback messages so shared channels get the final assistant reply instead of extra gateway chatter

Root Cause

Slack button interactions bypass the normal message authorization path in gateway/run.py. That meant a user who was paired/authorized for Slack messages could still fail approval-button flows, and the gateway could post implementation-status noise into shared Slack channels.

Validation

  • remote clean verification using staging venv:
    • python -m py_compile gateway/platforms/slack.py gateway/run.py tests/gateway/test_slack_approval_buttons.py tests/gateway/test_busy_session_ack.py
    • python -m pytest tests/gateway/test_slack_approval_buttons.py tests/gateway/test_busy_session_ack.py -q (46 passed)
  • git diff --check

@jakelongvu-bot

Copy link
Copy Markdown
Author

Vucar staging is already patched and restarted (Hermes gateway PID 1231745). Targeted staging tests passed: tests/gateway/test_slack_approval_buttons.py tests/gateway/test_busy_session_ack.py -q -> 46 passed. @thomasdongg please review/coordinate deploy with Charles/Viet Thinh.

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery platform/slack Slack app adapter type/security Security vulnerability or hardening labels Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/slack Slack app adapter type/bug Something isn't working type/security Security vulnerability or hardening

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants