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

Abierto
#3,087 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go, python
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
4.2k
Forks
890
Merge medio
1 d 6 h
PR fusionados (30 d)
189

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de kagent-dev/kagent

Todos los issues de kagent-dev/kagent

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.