[FEATURE] Harness runtimes (Claude Code, Codex) accept image parts in a user message
メンテナーはふだん 1 日以内に返信
@krishhgg がすでに取り組んでいます。
2026年11月4日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- go, kubernetes
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Go
- スター
- 4.5k
- フォーク
- 937
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 150
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
kagent-dev/kagent のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kagent-dev/kagent#3792 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kagent-dev/kagent#3790 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
kagent-dev/kagent#3789 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
kagent-dev/kagent#3787 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Python memory summarization fails for Gemini models: the request has no model name対応中かも @BahaaMattar が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kagent-dev/kagent#3710 ·
メンテナーはふだん 1 日以内に返信
kagent-dev/kagent の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
Add CybeDefendオープン
難易度 1/5 1時間未満 初心者へのやさしさ 66/100
slavakurilyak/awesome-ai-agents#1031 ·