feat(slack): add config validation enhancements#30
Merged
Conversation
added 8 commits
February 25, 2026 02:26
- Add Reaction type to base.RichContent - Add AddReaction method to Slack adapter - Integrate reactions into defaultSender
- Add slash command handler at /slack endpoint - Add SlashCommand type and SetSlashCommandHandler
- Add slack-gap-analysis.md to SSOT sync script - Fix dead links in chatapps-guide.md - Remove archived roadmap references - Update link redirects for VitePress
- Validate bot token format (xoxb-*-*-*) - Validate app token format (xapp-*-*-*) - Validate signing secret length and format - Validate server address format
- chatapps/setup.go: Add '.' expansion to absolute path in expandPath() - internal/engine/pool.go: Remove duplicate WorkDir handling code - All platform configs: Add engine.work_dir configuration - slack.yaml: Fix missing 'engine:' key for work_dir - dingtalk.yaml, discord.yaml, telegram.yaml, whatsapp.yaml: Add engine block Root cause: YAML indentation errors caused work_dir to be parsed at root level instead of under engine:, resulting in empty values and fallback to temporary directories. All platforms now correctly resolve work_dir '.' to current directory.
8888437 to
e3d3b01
Compare
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.
Fixes #21
Problem
All platforms (Slack, Discord, Telegram, WhatsApp, DingTalk) were using temporary directories instead of the configured working directory.
Root Causes
Changes
Code Fixes
chatapps/setup.go: Add '.' expansion to absolute path in expandPath()internal/engine/pool.go: Remove duplicate WorkDir handling codeConfig Fixes
slack.yaml: Fix missing 'engine:' key for work_dirdingtalk.yaml,discord.yaml,telegram.yaml,whatsapp.yaml: Add engine block with work_dir: .Testing
Impact
All platforms now correctly resolve work_dir '.' to the current source directory instead of falling back to /tmp/hotplex-chatapps/...
Before: work_dir was ignored, AI executed in temporary directories
After: work_dir is correctly parsed and resolved to absolute paths