Retain Codex interaction callbacks across server restarts
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
|
||||
"git.a-wan.net/alan/pipelines/internal/buildinfo"
|
||||
"git.a-wan.net/alan/pipelines/internal/claude"
|
||||
"git.a-wan.net/alan/pipelines/internal/codex"
|
||||
"git.a-wan.net/alan/pipelines/internal/discovery"
|
||||
"git.a-wan.net/alan/pipelines/internal/opencode"
|
||||
"git.a-wan.net/alan/pipelines/internal/paths"
|
||||
@@ -150,8 +151,10 @@ func main() {
|
||||
// One manager routes each chat to its owning harness. OpenCode remains the
|
||||
// default; Codex is attached when its app-server control socket is present.
|
||||
// Claude Code chats run in detachable hosts scoped to this database, so a
|
||||
// restart does not end them (internal/claudehost).
|
||||
// restart does not end them (internal/claudehost). Codex hosts retain its
|
||||
// original App Server connection so pending interactions remain answerable.
|
||||
claude.ConfigureHosts(claude.DefaultHostDir(*db))
|
||||
codex.ConfigureHosts(codex.DefaultHostDir(*db))
|
||||
chats := server.NewChatManager(ctx, options.Chat, store)
|
||||
if len(chats.Backends()) > 0 {
|
||||
options.Chat = chats
|
||||
|
||||
Reference in New Issue
Block a user