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: keep claude session on stop

cyhhao0aaae45c83fb
diff --git a/modules/agents/claude_agent.py b/modules/agents/claude_agent.py
index 6c39c06cb..ee5d38f49 100644
--- a/modules/agents/claude_agent.py
+++ b/modules/agents/claude_agent.py
@@ -95,11 +95,14 @@ class ClaudeAgent(BaseAgent):
try:
if hasattr(client, "interrupt"):
await client.interrupt()
+ return True
else:
- # Fallback: disconnect and drop session
- await client.disconnect()
- await self.session_handler.cleanup_session(composite_key)
- return True
+ await self.controller.emit_agent_message(
+ request.context,
+ "system",
+ "⚠️ This Claude session cannot be interrupted; consider /clear.",
+ )
+ return False
except Exception as err:
logger.error(f"Failed to interrupt Claude session {composite_key}: {err}")
await self.controller.emit_agent_message(