fix(codex): centralize session management with global store and add tests for executor session lifecycle

This commit is contained in:
Luis Pater
2026-04-01 13:17:10 +08:00
parent 1734aa1664
commit 105a21548f
3 changed files with 159 additions and 18 deletions
+1
View File
@@ -335,6 +335,7 @@ func (s *Service) applyCoreAuthRemoval(ctx context.Context, id string) {
log.Errorf("failed to disable auth %s: %v", id, err)
}
if strings.EqualFold(strings.TrimSpace(existing.Provider), "codex") {
executor.CloseCodexWebsocketSessionsForAuthID(existing.ID, "auth_removed")
s.ensureExecutorsForAuth(existing)
}
}