Stopping a response mid-stream discards the partial answer

Offen
#2,892 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Bereich
ai

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Java
Sterne
10.7k
Forks
1.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/copilot-sdk

Alle Issues in github/copilot-sdk

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.