[FEATURE] Harness runtimes (Claude Code, Codex) accept image parts in a user message
Maintainer thường phản hồi trong vòng 1 ngày
@krishhgg đang làm issue này rồi.
Từ ngày 4/11/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, kubernetes
- Lĩnh vực
- ai-infra-agents
Hướng nghiên cứu
Start in go/harness/runtime/a2a/executor.go at validateRequest, which currently rejects anything other than one text part, and in go/harness/runtime/runtime.go where runtime.Turn holds only Prompt. Then read the Claude driver's stream-json user message in go/harness/claude/internal/driver/process.go and the Codex turn/start input in go/harness/codex/internal/driver/process.go. Done means an A2A message with text plus a PNG part reaches both drivers as image content, other media types are refused with a clear error, and the UI's canAttach is true only for harnesses that accept images.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What
Let the harness runtimes (Claude Code, Codex) take image parts in a user message, as the kagent runtime already does.
Why
The UI attaches files to a message since #2936 (images, text files; PDF and Office in #3200), sent as A2A file parts. The kagent runtime passes them to the model. On an agent that runs on a harness, the composer hides the attach button (canAttach, "Only kagent does", ui/src/components/chat/ChatComposer.tsx), and an A2A client that sends a file part anyway is refused:
go/harness/runtime/a2a/executor.go(validateRequest):harness runtime accepts exactly one user text part, so a text part plus an image part fails, and so does an image alone.runtime.TurncarriesPrompt stringonly (go/harness/runtime/runtime.go).- The Claude driver sends the turn as a stream-json user message whose
contentis a plain string (go/harness/claude/internal/driver/process.go); the Codex driver sends[]textInput{Type: "text"}only (go/harness/codex/internal/driver/process.go).
So a person cannot show a Claude Code or Codex agent a screenshot of the bug they report, while both CLIs take images: Claude Code's stream-json input accepts image content blocks (base64), Codex's turn/start accepts image input items.
Proposal
- Accept, in a user message, one or more text parts plus file parts whose media type is
image/png,image/jpeg,image/giforimage/webp(raw bytes or a URL the runtime may fetch), and keep refusing other kinds with a clear error. - Carry them on
runtime.Turn(e.g.Images []Image{MediaType, Data}), and pass them to each driver: Claude Code asimagecontent blocks next to the text block, Codex as image input items. - Advertise it, so the UI's
canAttachcan be true for a harness that takes images (images only, not the other file types).
The gRPC limits (16 MiB) and the UI's 10 MiB cap per message already fit images.
Context
Found while building screenshot attachments in a product on kagent 1.0.0-rc1, whose agents run mostly on the Claude Code harness. Today the only way round is a reference in the text and an MCP tool that returns the image, which the kagent runtime then turns into base64 text.
- Ngôn ngữ chính
- Go
- Star
- 4.5k
- Fork
- 937
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 150
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kagent-dev/kagent
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kagent-dev/kagent#3792 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kagent-dev/kagent#3790 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
kagent-dev/kagent#3789 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
kagent-dev/kagent#3787 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Python memory summarization fails for Gemini models: the request has no model nameCó thể đã có người làm @BahaaMattar đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kagent-dev/kagent#3710 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kagent-dev/kagent
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Screenshot missing in READMEĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
Add CybeDefendĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 66/100
slavakurilyak/awesome-ai-agents#1031 ·