Skip to content

Commit 806fcea

Browse files
committed
Inline edit_global_memories_allowed, minor change in docs
1 parent b697542 commit 806fcea

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

docs/02-usage/040_workflow.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ i.e. the folder that is activated in Serena should correspond to the root folder
9999

100100
## Onboarding & Memories
101101

102-
By default, Serena comes with a simple memory and onboarding system that helps
103-
your agent to navigate your codebase.
104-
For detailed information on this, including how to manage
102+
Serena comes with a simple memory system. By default, Serena will start with an onboarding
103+
process when a project is activated for the first time, getting familiar with the codebase and
104+
storing memories.
105+
For more information on this, including how to manage
105106
or disable these features, see the [Memories & Onboarding](memories-onboarding-doc).
106107

107108

src/serena/agent.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,6 @@ def get_memory_log_handler() -> MemoryLogHandler:
386386
if self._gui_log_viewer is not None:
387387
self._gui_log_viewer.set_dashboard_url(dashboard_url)
388388

389-
def edit_global_memories_allowed(self) -> bool:
390-
return self.serena_config.edit_global_memories
391-
392389
def get_language_backend(self) -> LanguageBackend:
393390
return self._language_backend
394391

src/serena/tools/memory_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def _is_global_memory(memory_name: str) -> bool:
1313
return MemoriesManager.is_global_memory(memory_name)
1414

1515
def _raise_if_global_and_edit_not_allowed(self, memory_name: str) -> None:
16-
if not self.agent.edit_global_memories_allowed() and self._is_global_memory(memory_name):
16+
if not self.agent.serena_config.edit_global_memories and self._is_global_memory(memory_name):
1717
raise ValueError("Editing global memories is disabled (edit_global_memories: false in serena_config.yml).")
1818

1919

0 commit comments

Comments
 (0)