Fix admin authorization and harden chat requests
CI / check (22) (push) Successful in 10m3s
CI / check (24) (push) Successful in 9m34s

This commit is contained in:
2026-10-05 22:49:29 +02:00
parent e8cd13a0af
commit c48e1b17c4
38 changed files with 4897 additions and 1257 deletions
+28
View File
@@ -0,0 +1,28 @@
/** Shared conversation data; controllers receive an instance rather than owning globals. */
export function createConversationState() {
return {
isProcessing: false,
activeChatId: null,
editingPersonaId: null,
editingPersonaType: "assistant",
currentUsername: "",
regenerationChatId: null,
chatSessions: [],
currentMessages: [],
assistantPersonas: [],
userPersonas: [],
activeUserPersonaId: null,
currentSummary: null,
publishedPersonaIds: new Set(),
roleplayPresetCharacterId: null,
roleplayStarterStep: 1,
messageRetryState: new Map(),
chatSearchResults: null,
chatSearchError: "",
chatSearchTimer: null,
chatSearchRequest: 0,
chatOpenRequest: 0,
chatDrafts: new Map(),
sendingChatId: null
};
}