feat(chat): chat-adopt finds Claude Code and Codex sessions, not only OpenCode

This commit is contained in:
2026-10-23 22:03:08 +01:00
parent c467872ee3
commit 5a65526d29
6 changed files with 143 additions and 7 deletions
+5
View File
@@ -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