feat(chat): persist safe Codex next-turn model selection

This commit is contained in:
2026-10-20 16:32:42 +01:00
parent d92fa60259
commit ed0abb976d
16 changed files with 682 additions and 27 deletions
+5
View File
@@ -169,6 +169,8 @@ type ChatModel struct {
// ChatModelRequest switches the model for one session's subsequent turns.
type ChatModelRequest struct {
// Selection is reply-only: next_turn means a durable local override was saved.
Selection string `json:"selection,omitempty"`
SessionID string `json:"session_id"`
Provider string `json:"provider"`
Model string `json:"model"`
@@ -179,6 +181,9 @@ type ChatModelRequest struct {
// lifted to Directory, CreatedAt and UpdatedAt.
type ChatSession struct {
ID string `json:"id"`
// ModelSelection == next_turn denotes a durable Pipelines override, not an
// acknowledgement that a remote thread's current configuration changed.
ModelSelection string `json:"model_selection,omitempty"`
// InstructionStatus is the observed create-time preload outcome: applied,
// unsupported, failed, or not_requested. Ordinary list rows omit it.
InstructionStatus string `json:"instruction_status,omitempty"`