[BUG] Python ADK: kagent chat pane stays empty against controller 0.5.6

オープン
#3,087 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, python
領域
api, backend

調査の方向性

Start by tracing the Python ADK task client call to GET /api/tasks/{task_id} and compare its request headers and parameters with the controller’s user-ID requirement described here. The report identifies the missing user_id or X-User-ID and notes related issues #2465 and #2922; check those for context. Done when task retrieval for this agent includes the required user identity and the chat pane displays the completed run.

索引モデルが issue の本文から書いたものです。

説明

Symptoms

Seen with an agent built with the kagent-adk Python library and started with kagent-adk run. Not a declarative Agent.

A user sends a message to that agent in the kagent UI. The agent run completes and the trace is there. The chat pane stays on "Start a conversation".

GET /api/sessions/{session}/tasks for that user returns count: 0.

The same Python process writes session events successfully (POST /api/sessions/{id}/events?user_id=<user> returns 201).

It then calls GET /api/tasks/{task_id} with no user_id and no X-User-ID. The controller returns 400:

Failed to get user ID: user_id is required
Versions
  • Agent: built with the kagent-adk Python library, run with kagent-adk run
  • Python ADK image: ghcr.io/kagent-dev/kagent/kagent-adk:0.8.0-beta6
  • Packages in that image: kagent-adk 0.3.0, kagent-core 0.1.0
What this is likely to relate to

The controller change in https://github.com/kagent-dev/kagent/pull/2265 (fix(security): scope task get, create, and delete to the owner, merged 23 Jul 2026). When the caller is the agent, getUserIDOrAgentUser now requires user_id. The Python ADK task client on 0.8.0-beta6 does not send one.

Same class of gap as https://github.com/kagent-dev/kagent/issues/2465 (task-store callbacks lose the authenticated user before task resolution).

Also seen while looking at https://github.com/kagent-dev/kagent/issues/2922.

主要言語
Go
スター
4.2k
フォーク
890
平均マージ
1日 6時間
マージ済み PR(30日)
189

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

kagent-dev/kagent のほかの issue

kagent-dev/kagent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。