Skip to content

Stop the agent-session proxy from silently dropping createTime/title - #1346

Merged
tomchop merged 1 commit into
mainfrom
fix/agent-session-proxy-drops-metadata
Aug 14, 2026
Merged

Stop the agent-session proxy from silently dropping createTime/title#1346
tomchop merged 1 commit into
mainfrom
fix/agent-session-proxy-drops-metadata

Conversation

@tomchop

@tomchop tomchop commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • ADKSession in core/web/apiv2/agents.py only declared id/appName/userId/state/events/lastUpdateTime. Constructing it from the agent service's actual JSON response silently dropped any other field (Pydantic's default behavior), including createTime -- which the frontend has been trying to use for session labels/sorting since it was added, and which was silently always undefined because of this gap.
  • Companion to a yeti-agents change that adds a title field (auto-derived from the session's first message) to the same response -- without this fix, that would've been silently dropped too.
  • Just widens the model; no behavior change for existing fields.

Test plan

  • New tests/apiv2/agents.py: asserts createTime/title pass through when present, and that their absence (older sessions) doesn't break anything.
  • Full apiv2 suite run -- no regressions (2 pre-existing failures confirmed unrelated: tasks.py's test_search_export/test_search_tasks fail identically on a clean main with no changes at all, an eventual-consistency issue in this specific dev environment).
  • ruff check/format --check and ty check clean.
  • Verified live end-to-end against the actual agents container + frontend: session picker now shows a real title instead of a raw session ID.

ADKSession (core/web/apiv2/agents.py) only declared id/appName/userId/
state/events/lastUpdateTime, so constructing it from the agent service's
actual response (which already includes createTime and, as of this
change, title) silently discarded those fields -- Pydantic drops unknown
keys by default. The frontend's session picker fell back to raw session
IDs because of this, even before session titles existed.
@tomchop
tomchop merged commit 0e666df into main Aug 14, 2026
5 checks passed
@tomchop
tomchop deleted the fix/agent-session-proxy-drops-metadata branch August 14, 2026 19:05
@tomchop tomchop added the bug label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant