Skip to content

armgit / avibe

Public Imported from GitHub
0

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.

fix(claude): avoid cached subagent cleanup deadlock

cyh1fafc587d2eb
diff --git a/core/handlers/session_handler.py b/core/handlers/session_handler.py
index 1496cb035..1f6d3bc69 100644
--- a/core/handlers/session_handler.py
+++ b/core/handlers/session_handler.py
@@ -595,7 +595,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 None
caller_env = self._caller_env_for_context(context)
if getattr(client, "_vibe_caller_env", {}) != caller_env: