Merge branch 'worktree-agent-a04a38e74fe1aef60'
This commit is contained in:
@@ -65,3 +65,27 @@ type ClaudeAccountList struct {
|
||||
// home to another saved account and continues the chat automatically.
|
||||
AutoSwitch bool `json:"auto_switch"`
|
||||
}
|
||||
|
||||
// ChatAutoContinueType reads (AutoContinue nil) or sets the "Auto-continue
|
||||
// when limits reset" choice that applies to a chat: when a usage limit
|
||||
// refuses one of its turns, the server queues a prompt to send a minute after
|
||||
// the reset. The choice is kept per Claude home (beside auto_switch) for a
|
||||
// chat whose directory selects one, else by the server for every other chat;
|
||||
// it is on by default. The reply carries the current choice.
|
||||
const ChatAutoContinueType = "chat_auto_continue"
|
||||
|
||||
// Scopes of a ChatAutoContinue reply.
|
||||
const (
|
||||
ChatAutoContinueClaudeHome = "claude_home"
|
||||
ChatAutoContinueServer = "server"
|
||||
)
|
||||
|
||||
// ChatAutoContinue is the chat_auto_continue body and reply.
|
||||
type ChatAutoContinue struct {
|
||||
SessionID string `json:"session_id"`
|
||||
// AutoContinue is the new choice of a request (nil reads it) and the
|
||||
// current choice in the reply.
|
||||
AutoContinue *bool `json:"auto_continue,omitempty"`
|
||||
// Scope says where the choice is kept: claude_home or server (reply).
|
||||
Scope string `json:"scope,omitempty"`
|
||||
}
|
||||
|
||||
@@ -256,6 +256,8 @@ type Message struct {
|
||||
// ClaudeAccounts their reply (claude_accounts.go).
|
||||
ClaudeAccount *ClaudeAccountRequest `json:"claude_account,omitempty"`
|
||||
ClaudeAccounts *ClaudeAccountList `json:"claude_accounts,omitempty"`
|
||||
// ChatAutoContinue is the chat_auto_continue body and reply.
|
||||
ChatAutoContinue *ChatAutoContinue `json:"chat_auto_continue,omitempty"`
|
||||
// ModelRequest is the chat_model body and echoed selection.
|
||||
ModelRequest *ChatModelRequest `json:"chat_model,omitempty"`
|
||||
// ChatModes is the chat_modes reply: the permission modes the session's
|
||||
|
||||
Reference in New Issue
Block a user