Skip to content

Commit 5b5448d

Browse files
committed
feat: update cube ids
1 parent 094c3ca commit 5b5448d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/memos/mem_os/product.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def user_register(
545545
user_config = self._create_user_config(user_id, user_config)
546546

547547
# Create a default cube for the user using MOSCore's methods
548-
default_cube_name = f"{user_name}_default_cube"
548+
default_cube_name = f"{user_name}_{user_id}_default_cube"
549549
mem_cube_name_or_path = f"{CUBE_PATH}/{default_cube_name}"
550550
default_cube_id = self.create_cube_for_user(
551551
cube_name=default_cube_name, owner_id=user_id, cube_path=mem_cube_name_or_path
@@ -562,7 +562,7 @@ def user_register(
562562
mem_cube_name_or_path_or_object=default_mem_cube,
563563
mem_cube_id=default_cube_id,
564564
user_id=user_id,
565-
memory_types=["act_mem"]
565+
memory_types=["act_mem"] if self.config.enable_activation_memory else []
566566
)
567567

568568
# Add interests to the default cube if provided

0 commit comments

Comments
 (0)