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
feat: enforce hard stop for agents
cyhhao3059216dfae5
diff --git a/README.md b/README.mdindex 9b990b6de..e0c1bff85 100644--- a/README.md+++ b/README.md@@ -151,7 +151,7 @@ telegram:- `/cwd` show working directory- `/set_cwd <path>` change working directory- `/settings` configure message visibility-- `/stop` interrupt current execution+- `/stop` force-stop the active agent session (Claude interrupt / Codex process kill)### Slackdiff --git a/README_ZH.md b/README_ZH.mdindex 5ec83eafb..4716bddf7 100644--- a/README_ZH.md+++ b/README_ZH.md@@ -149,7 +149,7 @@ telegram:- `/cwd` 显示工作目录- `/set_cwd <path>` 更改工作目录- `/settings` 配置消息可见性-- `/stop` 中断当前执行+- `/stop` 强制停止当前 Agent(Claude 发送 interrupt,Codex 直接终止进程)### Slackdiff --git a/modules/agents/claude_agent.py b/modules/agents/claude_agent.pyindex 320cd0b0a..6c39c06cb 100644--- a/modules/agents/claude_agent.py+++ b/modules/agents/claude_agent.py@@ -90,13 +90,24 @@ class ClaudeAgent(BaseAgent):client = self.claude_sessions[composite_key]await self.controller.emit_agent_message(- request.context, "system", "🛑 Sending stop signal to Claude..."+ request.context, "system", "🛑 Interrupting Claude session...")- stop_message = (- "Please stop the current execution immediately and wait for further instructions."- )- await client.query(stop_message, session_id=composite_key)- return True+ try:+ if hasattr(client, "interrupt"):+ await client.interrupt()+ else:+ # Fallback: disconnect and drop session+ await client.disconnect()+ await self.session_handler.cleanup_session(composite_key)+ return True+ except Exception as err:+ logger.error(f"Failed to interrupt Claude session {composite_key}: {err}")+ await self.controller.emit_agent_message(+ request.context,+ "system",+ "⚠️ Failed to interrupt Claude session. Please try /clear.",+ )+ return Falseasync def _receive_messages(self,