feat(chat): persist safe Codex next-turn model selection
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user