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

未关闭
#3,087 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 小时
30 天内合并 PR
189

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

kagent-dev/kagent 的其他 Issue

查看 kagent-dev/kagent 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。