Skip to content

[BUG] - .NET SDK doesn't catch error "session was not created with authentication info or custom provider" #480

@dstamand-msft

Description

@dstamand-msft

In the .NET SDK, when enabling the logs in the Copilot CLI, the logs show

2026-02-16T10:41:19.068Z [ERROR] Error during session send 06fe7049-10b3-4fdc-a92c-7c4c453067c1: Error: Session was not created with authentication info or custom provider

That error is not being resurfaced into the SDK which cannot be handled gracefully. The session thus hangs forever.
Granted, one could add mechanism to check for long-running requests and stop, but this error should be resurfaced for users to take action.

SDK Version: 0.1.23

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions