fix: slack file upload fallback loses thread context#1122
Merged
Conversation
Fallback paths in send_image_file, send_video, and send_document called super() without metadata, causing replies to appear outside the thread when file upload fails. Use self.send() with metadata instead to preserve thread_ts context.
angelburgosrosado
pushed a commit
to angelburgosrosado/hermes-agent
that referenced
this pull request
Apr 27, 2026
fix: slack file upload fallback loses thread context
thewillhuang
pushed a commit
to thewillhuang/hermes-agent
that referenced
this pull request
May 11, 2026
…olumn Add 'review' as a valid task status and extend dispatch_once to monitor the review column as a second dispatch source (in addition to the existing ready column). Changes: - Add 'review' to VALID_STATUSES in kanban_db.py - Add claim_review_task() for review->running transitions - Add review dispatch loop in dispatch_once, sharing max_spawn - Review agents get sdlc-review skill auto-loaded via task.skills - Add has_spawnable_review() for health telemetry - Update gateway _ready_nonempty to also check review tasks - Add 14 tests covering claim, dispatch, skills, max_spawn, telemetry Implements NousResearch#1125 / AC NousResearch#2 of epic NousResearch#1122.
02356abc
pushed a commit
to 02356abc/hermes-agent
that referenced
this pull request
May 14, 2026
fix: slack file upload fallback loses thread context
olympus-terminal
pushed a commit
to olympus-terminal/hermes-agent
that referenced
this pull request
May 16, 2026
fix: slack file upload fallback loses thread context
Egavasyug
pushed a commit
to Egavasyug/hermes-agent
that referenced
this pull request
Jun 10, 2026
fix: slack file upload fallback loses thread context
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
When Slack file uploads fail (API error, rate limit, etc.), the fallback paths in
send_image_file,send_video, andsend_documentcalledsuper()without passingmetadata. The base class then calledself.send()withoutmetadata, so Slack'ssend()method couldn't resolve thethread_ts— causing fallback messages to appear in the main channel instead of the thread.Root cause
The base class
send_image_file/send_video/send_documentimplementations callself.send(chat_id, text, reply_to=reply_to)without forwarding metadata. Since Slack resolves thread context frommetadata["thread_id"], the thread_ts was silently dropped.Fix
Replace
super()fallback calls with directself.send()calls that includemetadata:Applied to all three methods:
send_image_file(line 445),send_video(line 552),send_document(line 590).Test plan
test_send_image_file_fallback_preserves_thread— verifies thread_ts in fallbacktest_send_video_fallback_preserves_thread— verifies thread_ts in fallbacktest_send_document_fallback_preserves_thread— verifies thread_ts in fallbacktest_send_image_file_fallback_includes_caption— verifies caption in fallback text