Skip to content

.NET: Run fails with “Cannot cancel run with status ‘incomplete’” after safety-blocked prompt in same thread #2298

@Pavan-Microsoft

Description

@Pavan-Microsoft

When the user asks a safety-blocked question (e.g., “how to make a bomb”), the model correctly responds with a refusal message.
However, if any subsequent request is made within the same thread, the following error is thrown:

(None) Cannot cancel run with status 'incomplete'.
Code: None
Message: Cannot cancel run with status 'incomplete'.

This seems to indicate that the thread/run becomes stuck in an incomplete state after the safety violation, preventing any further operations.

Expected behavior:
Subsequent messages in the same thread should continue normally or should at least return a clear recovery method.

Actual behavior:
The run cannot be continued or canceled, blocking all further operations in that thread.

Please provide guidance on how to recover or handle this state.

Using: agent-framework 1.0.0b251114

Image

Metadata

Metadata

Assignees

Labels

.NETagentsIssues related to single agentsbugSomething isn't working

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions