Repository navigation
fix: Slack message router uses per-agent timeout + forwards error messages (#221) - #225
Merged
Merged
Conversation
…Code (#221) The channel message router passed timeout_seconds=_get_channel_timeout() (default 120s), overriding the agent's configured execution_timeout_seconds. All other callers pass None and let TaskExecutionService read the per-agent timeout (TIMEOUT-001). - Pass timeout_seconds=None to match standard pattern - Add TaskExecutionErrorCode enum for machine-readable error matching - Set error_code=TIMEOUT on timeout results (only timeout for now) - Add graceful timeout message for Slack users - 13 unit tests: enum values, backward compat with all caller patterns Fixes #221
vybe
approved these changes
Mar 30, 2026
vybe
left a comment
Contributor
There was a problem hiding this comment.
Validated via /validate-pr. Clean bug fix — removes hardcoded 120s Slack timeout in favor of per-agent configured timeout (TIMEOUT-001 pattern). Security checks pass, tests thorough, backward compatible.
Merged
4 tasks done
6 tasks done
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.
Summary
The Slack message router passed
timeout_seconds=_get_channel_timeout()(default 120s) toTaskExecutionService.execute_task(), overriding the agent's configuredexecution_timeout_seconds(e.g. 900s). All other callers (chat.py,paid.py,internal.py) passNoneand let the service read the per-agent timeout.Also: error messages were hardcoded ("Sorry, I encountered an error"). Now forwards the actual error from the agent to the Slack user.
Changes
message_router.py: Passtimeout_seconds=None— uses agent's timeout (TIMEOUT-001)message_router.py: Forward actual error messages to Slack users instead of generic textTest plan
tests/unit/test_slack_timeout_fix.py)Task execution timed out after 60 secondsFixes #221