Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(claude): avoid recursive session cleanup lock
Maxeab29aa0534f
diff --git a/core/handlers/session_handler.py b/core/handlers/session_handler.pyindex d955df201..27db23e01 100644--- a/core/handlers/session_handler.py+++ b/core/handlers/session_handler.py@@ -392,7 +392,10 @@ class SessionHandler(BaseHandler):"Recreating cached Claude subagent SDK client for %s because avibe system prompt changed",composite_key,)- await self.cleanup_session(composite_key)+ await self._cleanup_session_locked(+ composite_key,+ retire_model_hub_scope=model_hub_launch.channel == "direct",+ )return Nonecaller_env = self._caller_env_for_context(context)if getattr(client, "_vibe_caller_env", {}) != caller_env:diff --git a/tests/test_claude_cli_path.py b/tests/test_claude_cli_path.pyindex b7861fd82..61bd79b5a 100644--- a/tests/test_claude_cli_path.py+++ b/tests/test_claude_cli_path.py@@ -1228,7 +1228,12 @@ def test_cached_claude_subagent_revalidates_memory_principal_and_guidance(return None@staticmethod- def ensure_agent_session_id(_settings_key, agent_name, _base_session_id):+ def ensure_agent_session_id(+ _settings_key,+ agent_name,+ _base_session_id,+ **_kwargs,+ ):assert agent_name == "claude"return "ses-subagent"