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: clean up reactions on Codex CLI launch failures
yh c6f112be5ee19
diff --git a/modules/agents/codex_agent.py b/modules/agents/codex_agent.pyindex 0119368cd..77fbf9511 100644--- a/modules/agents/codex_agent.py+++ b/modules/agents/codex_agent.py@@ -74,12 +74,14 @@ class CodexAgent(BaseAgent):"notify","❌ Codex CLI not found. Please install it or set CODEX_CLI_PATH.",)+ await self._remove_ack_reaction(request)returnexcept Exception as e:logger.error(f"Failed to launch Codex CLI: {e}", exc_info=True)await self.controller.emit_agent_message(request.context, "notify", f"❌ Failed to start Codex CLI: {e}")+ await self._remove_ack_reaction(request)returnawait self._delete_ack(request)@@ -348,6 +350,21 @@ class CodexAgent(BaseAgent):finally:request.ack_message_id = None+ async def _remove_ack_reaction(self, request: AgentRequest) -> None:+ """Remove acknowledgement reaction on error paths."""+ if request.ack_reaction_message_id and request.ack_reaction_emoji:+ try:+ await self.im_client.remove_reaction(+ request.context,+ request.ack_reaction_message_id,+ request.ack_reaction_emoji,+ )+ except Exception as err:+ logger.debug(f"Could not remove ack reaction: {err}")+ finally:+ request.ack_reaction_message_id = None+ request.ack_reaction_emoji = None+def _prepare_last_message_payload(self, text: str) -> Tuple[str, Optional[str]]:"""Prepare cached assistant text for reuse in result messages."""return text, "markdown"