Skip to content

fix(slack): add retry logic and prevent endless error replies#3

Merged
jtomaszewski merged 2 commits intomainfrom
vk/cb3a-dont-reply-endle
Mar 25, 2026
Merged

fix(slack): add retry logic and prevent endless error replies#3
jtomaszewski merged 2 commits intomainfrom
vk/cb3a-dont-reply-endle

Conversation

@jtomaszewski
Copy link
Copy Markdown
Contributor

Summary

  • Fixes bug where Claude Code failures caused endless error message replies
  • Adds retry logic (up to 3 attempts by default) before giving up
  • Adds maxRetries config option to customize retry count

Root cause

When Claude Code execution failed, the error handler posted an error message but never added the ✅ reaction. On the next poll cycle (10s), the message was found again without ✅, processed again, failed again → endless loop.

Test plan

  • Deploy and trigger a Claude failure (e.g., invalid model)
  • Verify it retries up to 3 times then stops
  • Verify ✅ reaction is added after max retries

🤖 Generated with Claude Code

@jtomaszewski jtomaszewski merged commit dba00d4 into main Mar 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant