This repository was archived by the owner on Jul 16, 2026. It is now read-only.
Repository navigation
Conversation
startup.sh section 7.8: start slack-bridge when ~/.claude/channels/slack/.env contains SLACK_BOT_TOKEN, matching the discord (§7) and telegram (§6) bridge patterns. Checks for slack_bolt before starting so the error message is actionable. Also carries the from __future__ import annotations fix — str | None syntax requires Python 3.10+ but macOS ships 3.9.6 (Xcode toolchain). Deferring annotation evaluation makes the bridge importable and the slack-bridge-allowlist test passable on 3.9+. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
bassilkhilo-ag2
approved these changes
Jun 4, 2026
bassilkhilo-ag2
left a comment
There was a problem hiding this comment.
Clean. Mirrors the discord-bridge startup pattern correctly. Token gate is right — checking for the file + key presence before attempting to start. The slack_bolt install check prevents a silent crash. The from __future__ import annotations addition is consistent with the Python 3.9 compat requirement. One non-blocking note: grep -q "SLACK_BOT_TOKEN=" matches a key with an empty value, but the bridge handles that gracefully at runtime, so not a blocker.
2 tasks
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
startup.sh: auto-startsslack-bridge.pyif~/.claude/channels/slack/.envexists and containsSLACK_BOT_TOKENslack_boltis installed before attempting start; prints helpful install hint if notpgrep -f slack-bridgecheckfrom __future__ import annotationstoslack-bridge.pyfor Python 3.9 compatNote: The py39 annotation line overlaps with PR #56 (
fix/slack-bridge-py39-annotations). If #56 merges first this branch will need a trivial rebase to drop that line.Test plan
bash src/startup.shwith no~/.claude/channels/slack/.env→ "~ slack bridge (no token — optional)"slack_bolt→ "~ slack bridge (needs: pip3 install slack_bolt)"slack_boltinstalled → "✓ slack bridge"🤖 Generated with Claude Code