fix(mom): handle Slack msg_too_long errors gracefully

- Add try/catch to all Slack API calls in promise chain
- Truncate main channel messages at 35K with elaboration note
- Truncate thread messages at 20K
- Prevents process crash on long messages
This commit is contained in:
Mario Zechner
2025-12-04 23:39:17 +01:00
parent c7585e37c9
commit e1d3c2b76e
3 changed files with 152 additions and 68 deletions

View File

@@ -4,6 +4,12 @@
### Fixed
- Slack API errors (msg_too_long) no longer crash the process
- Added try/catch error handling to all Slack API calls in the message queue
- Main channel messages truncated at 35K with note to ask for elaboration
- Thread messages truncated at 20K
- replaceMessage also truncated at 35K
- Private channel messages not being logged
- Added `message.groups` to required bot events in README
- Added `groups:history` and `groups:read` to required scopes in README