3 Commits

Author SHA1 Message Date
Sanae
b14267bacf fix(llm): preserve Responses wire aliases during tool replay (#2734)
Serialize SDK responses using API field aliases and omit unset optional
fields before persisting native replay state. Repair legacy async_ fields
on a copy at replay time without altering stored history or argument JSON.

Cover streaming and non-streaming SDK continuations, alias precedence,
and legacy SQLite replay.

Co-Authored-By: GPT-6.1 Sol High
2026-12-01 21:35:29 +08:00
WhitePepperLambSoup
ab34adb78f fix(llm): drop a null status from replayed Responses output items
The SDK dump of a reasoning item carries "status": None, and the
Responses API rejects that null on input ("Unknown parameter:
'input[N].status'"). A tool-calling continuation replays the stored
output items, so the turn failed once the tool had returned.

Leave an unset status out when persisted output items are converted back
to input items. A status the provider did send is kept. The existing
retry only strips status from message items, so it never covered this.

test_copilot_normalization_does_not_change_openai_requests expected the
null to reach the OpenAI request; it now expects it to be dropped and
everything else to be sent as stored.

Fixes #2373
2026-11-03 00:48:29 +11:00
Yongliang
b19a837457 feat(cli): add GitHub Copilot device login to init (#1277)
* Save uncommitted changes

* fix: isolate Copilot credentials and honor model routing

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix: normalize Copilot Responses history replay

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix: correct Copilot model discovery and response language

Honor Astra temperature restrictions, synchronize response language preferences, and preserve system prompts in Responses requests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Keep Copilot integration focused on owner authentication and runtime

---------

Co-authored-by: Yongliang Wang <yonwa@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
2026-10-07 20:50:55 +08:00