Stopping a response mid-stream discards the partial answer

Aperta
#2,892 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
ai

Direzione di ricerca

The payload names no files, tests or entry points, so start by locating where streamed response deltas are accumulated and where the stop action cancels a request in the SDK's session code. Reproduce by stopping a response mid-stream and checking whether the partial text appears in the session JSON. Done means the partial answer is kept in the session context after a stop, matching the expected behavior described in the issue.

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

Descrizione

Affected version or release

Version v1.0.28, macOS

Steps to reproduce
  1. Enter a prompt
  2. The model starts to respond
  3. Click stop while half response delta has come
Expected behavior

The currently received partial answer should be saved in the context (like the Claude Agents SDK does it)

Observed behavior

The answer looks dropped, I didn't find it in the session JSON file and the model cannot recall it.

Lingua principale
Java
Stelle
10.7k
Fork
1.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/copilot-sdk

Tutte le issue di github/copilot-sdk

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.