Skip to content

.NET: [Bug]: AG UI session stops updating after first turn #5898

@VaclavK

Description

@VaclavK

Description

AG UI client is created
agent invoked
result is returned
session contains tool and input/out messages
another agent invoked with same session
session no longer updated

Code Sample

var clientAgent = new AGUIChatClient(httpClient, serverUrl, LoggerFactory).AsAIAgent();
var session = await clientAgent.CreateSessionAsync(cancellationToken: cancellationToken);
 var result = await clientAgent.RunAsync<WorkflowInstance>($"Start workflow for following conversation id {conversationId} with prompt:{message}", session, cancellationToken: cancellationToken);
while (true)
{
await clientAgent.RunAsync<WorkflowResult>(
                            $"monitor workflow",
                            session,
                            cancellationToken: cancellationToken);
}

Error Messages / Stack Traces

Package Versions

1.6.1

.NET Version

.net 10

Additional Context

what is perplexing to us is that the initial roundtrip is covered but not any subsequent one (the monitor workflow phase repeat prompts/runs)

backend uses inmemorysessionstore but no restarts in between (that would invalidate I suppose the wjhole session anyway)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions