refactor: remove Neo4j-based conversation memory feature

Drop the memory pipeline, API fields, settings UI, and embed toggles so chat no longer depends on Neo4j graph storage for episodic recall.
This commit is contained in:
wizardchen
2026-07-18 23:40:20 +08:00
committed by lyingbug
parent 7807dee42a
commit 380e371c2e
45 changed files with 47 additions and 915 deletions
-2
View File
@@ -583,7 +583,6 @@ func (h *AuthHandler) GetCurrentUser(c *gin.Context) {
// (preserve existing value) from "explicit false". See
// types.UserPreferences for the persistence-layer counterpart.
type updateMyPreferencesRequest struct {
EnableMemory *bool `json:"enable_memory"`
// LastActiveTenantID lets the SPA persist "after a fresh login,
// drop me back into this workspace" across devices. Send a positive
// workspace id to set / replace, or 0 to clear. Membership is validated
@@ -623,7 +622,6 @@ func (h *AuthHandler) UpdateMyPreferences(c *gin.Context) {
}
patch := types.UserPreferences{
EnableMemory: req.EnableMemory,
LastActiveTenantID: req.LastActiveTenantID,
}
prefs, err := h.userService.UpdateUserPreferences(ctx, user.ID, patch)