github / github/copilot-cli

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

Aperta
#3,196 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
area:models
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### 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):

```csharp
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
});
```

2. Trigger completions or calls that should generate reasoning via the Responses API.
3. 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non sono indicati file di implementazione o test. Riproduci il problema con la configurazione di Responses API mostrata per un provider OpenAI o vLLM BYOK, quindi traccia la gestione degli eventi di reasoning. Il lavoro è completato quando AssistantReasoningDeltaEvent e AssistantReasoningEvent espongono il contenuto di reasoning del provider invece di un contenuto vuoto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github, shell
Ambito
api, backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.