feat(chat): chat-adopt finds Claude Code and Codex sessions, not only OpenCode
This commit is contained in:
@@ -268,6 +268,11 @@ type ChatCreateRequest struct {
|
||||
// echoes the adopted session (and the registry list row) like chat_create.
|
||||
type ChatAdoptRequest struct {
|
||||
SessionID string `json:"session_id"`
|
||||
// Backend names the harness that owns the session (opencode, claude,
|
||||
// codex). Blank tries each available harness in that order.
|
||||
Backend string `json:"backend,omitempty"`
|
||||
// Title names the adopted chat when its harness records none.
|
||||
Title string `json:"title,omitempty"`
|
||||
}
|
||||
|
||||
// ChatQuery is the session-scoped request body for chat_messages and
|
||||
|
||||
Reference in New Issue
Block a user