Skip to content

.NET: [Bug]: Workflows - Fix off-thread RunStatus race where GetStatusAsync can return Running after ResumeAsync halts #5411

@peibekwe

Description

@peibekwe

Description

In StreamingRunEventStream.RunLoopAsync, after every _inputWaiter.WaitForInputAsync wake-up, _runStatus was being flipped to Running unconditionally. This can lead stale signal to flip status back to running after consumer already observed halt signal.

Code Sample

Error Messages / Stack Traces

Package Versions

Microsoft.Agents.AI.Workflows: v1.1

.NET Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

.NETbugSomething isn't workingworkflowsRelated to Workflows in agent-framework

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions