mirror of
https://github.com/jwadow/kiro-gateway.git
synced 2026-04-25 01:15:57 +03:00
[GH-ISSUE #32] [BUG] Vision capability fails via Gateway despite verified support in native Kiro IDE #24
Labels
No labels
bug
bug
enhancement
enhancement
fixed
fixed
invalid
needs-info
needs-testing
pull-request
question
upstream
wontfix
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/kiro-gateway-jwadow#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @smileheart0708 on GitHub (Jan 11, 2026).
Original GitHub issue: https://github.com/jwadow/kiro-gateway/issues/32
Kiro Gateway Version
v2.0
What happened?
Description
Following the fix for the 422 validation error in #30, the gateway now correctly accepts requests with image blocks. However, the model (Claude 3.5/4.5) remains unable to "see" or process the images when requested through the gateway.
Evidence of Backend Support
I have verified that the native Kiro IDE supports vision recognition perfectly using the same backend. This confirms that the Kiro/AWS backend API is capable of processing multi-modal inputs.
The issue seems to be that the image data is being lost or incorrectly formatted during the conversion process within the gateway (likely in
converter/anthropic.go), causing the backend to ignore the image blocks while only processing the text.Comparison (Screenshots attached)
Steps to Reproduce
Suggested Investigation
Please check the
BuildKiroPayloadlogic to ensure thatimagecontent blocks are correctly mapped to the specific format expected by the Kiro/AWS Event Stream.Debug Logs
no logs file
@jwadow commented on GitHub (Jan 11, 2026):
Fixed! The problem was that images were going to the wrong place in the request. They were in userInputMessageContext.images but should be in userInputMessage.images. I checked how native Kiro IDE sends requests and matched that format. Also added stripping of data URL prefix since some clients send the full thing instead of just base64. Should work now, let me know if you still have issues!
P.S. I should re-release 2.0, lol