From f24fb31d3d420a8e1debdcb410acbdc22096d4f2 Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Mon, 7 Apr 2025 17:53:59 +0200 Subject: [PATCH] Disable GUI window by default Enabling the gui leads to crashes on the linux app. Generally, the user should rather consciously enable the GUI than have it pop up by default --- serena_config.template.yml | 2 +- src/serena/agent.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/serena_config.template.yml b/serena_config.template.yml index 13cffd2..99514c8 100644 --- a/serena_config.template.yml +++ b/serena_config.template.yml @@ -28,7 +28,7 @@ projects: # previous instances. This leads to multiple log windows being opened, and only the last # window being updated. Since we can't control how agno or Claude Desktop start Serena, # we have to live with this limitation for now. -gui_log_window: True +gui_log_window: False # minimum log level for the GUI log window (10 = debug, 20 = info, 30 = warning, 40 = error) gui_log_level: 20 diff --git a/src/serena/agent.py b/src/serena/agent.py index aaccbb9..c4a3eed 100644 --- a/src/serena/agent.py +++ b/src/serena/agent.py @@ -107,7 +107,7 @@ class SerenaConfig: raise ValueError(f"Error loading project configuration from {project_config_path}: {e}") from e self.project_names = list(self.projects.keys()) - self.gui_log_window_enabled = config_yaml.get("gui_log_window", True) + self.gui_log_window_enabled = config_yaml.get("gui_log_window", False) self.gui_log_window_level = config_yaml.get("gui_log_level", logging.INFO) self.enable_project_activation = config_yaml.get("enable_project_activation", True)