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: clean up reactions on non-result exit paths

yh c25a27065016e
diff --git a/modules/agents/codex_agent.py b/modules/agents/codex_agent.py
index 77fbf9511..bc4bfacb0 100644
--- a/modules/agents/codex_agent.py
+++ b/modules/agents/codex_agent.py
@@ -104,6 +104,8 @@ class CodexAgent(BaseAgent):
await asyncio.gather(stdout_task, stderr_task)
finally:
self._unregister_process(request.composite_session_id)
+ # Clean up reaction as fallback if turn.completed was never received
+ await self._remove_ack_reaction(request)
if process.returncode != 0:
await self.controller.emit_agent_message(
diff --git a/modules/agents/opencode/agent.py b/modules/agents/opencode/agent.py
index 9afae3d36..4b038438f 100644
--- a/modules/agents/opencode/agent.py
+++ b/modules/agents/opencode/agent.py
@@ -275,6 +275,8 @@ class OpenCodeAgent(OpenCodeMessageProcessorMixin, BaseAgent):
)
if not should_emit:
+ # Clean up reaction even if we don't emit a result
+ await self._remove_ack_reaction(request)
return
if final_text: