Skip to content

Responses API: AssistantReasoningDeltaEvent and AssistantReasoningEvent triggered with empty content via BYOK providers (Copilot CLI) #3196

@lawrence6140791

Description

@lawrence6140791

Describe the bug

When using GitHub Copilot CLI (or SDK) with BYOK—either OpenAI or vLLM—for Responses API, both AssistantReasoningDeltaEvent and AssistantReasoningEvent are triggered but with empty content, even if the provider's response includes reasoning content.

Affected version

1.0.43

Steps to reproduce the behavior

  1. Set up Copilot CLI to use BYOK, OpenAI or vLLM provider (Windows/WSL). Sample .NET code for SDK (works similarly with CLI):
await using var session = await client.CreateSessionAsync(new SessionConfig
{
    Provider = new ProviderConfig
    {
        Type = "openai",
        BaseUrl = "https://api.openai.com/v1",
        ApiKey = "your_api_key",
        WireApi = "responses",
    },
    ReasoningEffort = "high",
    Model = "gpt-5.4-2026-03-05",
    OnPermissionRequest = PermissionHandler.ApproveAll,
    Streaming = true
});
  1. Trigger completions or calls that should generate reasoning via the Responses API.
  2. See that the events are always empty.

Expected behavior

These events should present the reasoning/explanation content if the provider response includes it. Content field should not be blank if a reasoning field is present.

Additional context

  • Environment: Windows, WSL
  • Copilot CLI version: 1.0.43
  • Copilot SDK version: 0.3.0
  • BYOK provider: OpenAI or vLLM

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:modelsModel selection, availability, switching, rate limits, and model-specific behavior

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions