-
Notifications
You must be signed in to change notification settings - Fork 357
Share sessions between A2A and interactive mode #2734
Copy link
Copy link
Labels
area/apiFor features/issues/fixes related to the usage of the cagent APIFor features/issues/fixes related to the usage of the cagent APIarea/sessionsFor features/issues/fixes related to session lifecycle (resume, persistence, export)For features/issues/fixes related to session lifecycle (resume, persistence, export)priority:mediumNormal priority, standard sprint workNormal priority, standard sprint work
Metadata
Metadata
Assignees
Labels
area/apiFor features/issues/fixes related to the usage of the cagent APIFor features/issues/fixes related to the usage of the cagent APIarea/sessionsFor features/issues/fixes related to session lifecycle (resume, persistence, export)For features/issues/fixes related to session lifecycle (resume, persistence, export)priority:mediumNormal priority, standard sprint workNormal priority, standard sprint work
I'd like to start an agent task non-interactively over A2A, let it finish, and then jump into the same conversation interactively from another terminal with
docker-agent run --session <id>. That doesn't work today: A2A sessions are never visible torun --session.The cause is that
serve a2aandrunuse two different session backends:docker-agent/cmd/root/run.go
Line 121 in b657530
docker-agent/pkg/a2a/server.go
Lines 86 to 92 in b657530
The two stores never see each other. So a session started via
serve a2anever lands in~/.cagent/session.db, never shows up inrun --sessionlistings, and disappears entirely the moment theserve a2aprocess exits.What I'd expect
Be able to do this:
That second command should drop me into the same conversation, with full prior turns in context, so I can poke around interactively (ask follow-ups, tweak, etc.) without re-priming the agent.