Bug Description
get_default_cube_config in src/memos/mem_os/utils/default_config.py only assigns text_mem_config inside the tree_text and general_text branches, but there is no else. Any other value (e.g. a typo like "tree-text" passed through MOS_NEO4J_*/env config plumbing or the MCP create_cube path) crashes with a bare UnboundLocalError:
>>> get_default_cube_config(openai_api_key="sk-x", text_mem_type="tree-text")
UnboundLocalError: cannot access local variable 'text_mem_config' where it is not associated with a value
Expected Behavior
An invalid text_mem_type should raise a clear ValueError naming the accepted values.
Environment
MemOS main, python 3.14.
Additional Context
Fix + red/green-verified test ready; PR to follow referencing this issue.
Bug Description
get_default_cube_configinsrc/memos/mem_os/utils/default_config.pyonly assignstext_mem_configinside thetree_textandgeneral_textbranches, but there is noelse. Any other value (e.g. a typo like"tree-text"passed throughMOS_NEO4J_*/env config plumbing or the MCPcreate_cubepath) crashes with a bareUnboundLocalError:Expected Behavior
An invalid
text_mem_typeshould raise a clearValueErrornaming the accepted values.Environment
MemOS main, python 3.14.
Additional Context
Fix + red/green-verified test ready; PR to follow referencing this issue.