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(codex): remove 'not current_turn' fallback in turn completion guard

cyheddc35954ad9
diff --git a/modules/agents/codex/event_handler.py b/modules/agents/codex/event_handler.py
index 1bcfe57b8..e2a2d77d6 100644
--- a/modules/agents/codex/event_handler.py
+++ b/modules/agents/codex/event_handler.py
@@ -87,7 +87,7 @@ class CodexEventHandler:
# Only clean up active request if this turn is still the active one
# (avoids race where a new request already replaced it)
current_turn = self._agent._session_mgr.get_active_turn(request.base_session_id)
- is_current = current_turn == turn_id or not current_turn
+ is_current = current_turn == turn_id
if is_current:
self._agent._session_mgr.clear_active_turn(request.base_session_id)
self._agent._active_requests.pop(request.base_session_id, None)