fix(buzz): deliver local images through native upload - #74999
Open
riyaazd29 wants to merge 1 commit into
Open
Conversation
Contributor
|
Thanks for the focused Buzz adapter fix. The premise is confirmed: The proposed override follows Buzz's existing |
1 task
19 tasks
1 task
riyaazd29
marked this pull request as ready for review
August 3, 2026 19:59
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.
What does this PR do?
Fixes native delivery of local image attachments through the Buzz adapter.
The gateway's real local-image path calls
BasePlatformAdapter.send_image_file()(includingfile://items passed throughsend_multiple_images()). Buzz already uploads local files natively insend_image(), but it did not overridesend_image_file(), so the Base fallback sent a warning message instead of the attachment.This adds the missing adapter-local bridge. Existing files use Buzz's current
messages send --filepath directly; missing or non-file paths retain the Base fallback so host filesystem paths are never echoed into chat. The direct path avoids a second file probe that could otherwise race into the text fallback if the file disappeared between checks.Related Issue
N/A — small adapter-local regression found during live Buzz testing; no existing Buzz image-delivery issue or PR was found.
Related work:
send_image_fileoverride and does not change registry or routing infrastructure.Type of Change
Changes Made
plugins/platforms/buzz/adapter.pyBuzzAdapter.send_image_file().messages send --filepath with the same result parsing, retry, and echo-suppression behavior assend_image().reply_tothenmetadata["thread_id"]precedence.tests/gateway/test_buzz_adapter.pysend_multiple_images()file://path reaches Buzz's native--fileupload with its caption.How to Test
Run:
Confirm all 49 tests pass.
Run:
Confirm Ruff, compilation, and diff checks are clean.
Full-suite baseline note:
scripts/run_tests.sh tests/ -qis not currently clean on this macOS checkout: 23 unrelated test files failed.origin/maincheckout reproduced the same failed-file set.RED evidence before implementation:
file://path test failed because no--fileargument was emitted and the Base fallback warning was used.is_file()check could race into the text fallback and expose the path.Private dogfood confirmed the equivalent adapter behavior on two Hermes installations. No private logs, hostnames, paths, channel IDs, event IDs, screenshots, or credentials are included here.
Checklist
Code
pytest tests/ -qis fully clean — see the baseline note above; the same 23 unrelated files fail on clean upstreamDocumentation & Housekeeping
cli-config.yaml.example— N/A; no config keysCONTRIBUTING.md/AGENTS.md— N/A; no architecture or workflow changepathlib.Pathand adapter/Base contractsScreenshots / Logs
N/A. Automated behavioral evidence is included above; private dogfood artifacts are intentionally not published.
Independent review
Final fail-closed review passed with zero security concerns, logic errors, or scope violations. The reviewer also ran 49 targeted tests and six adversarial image-delivery probes.
AI assistance
AI assisted with implementation and test drafting. I reviewed the complete diff, ran the affected test suites and static checks, and verified that no credentials or setup-specific data are included.