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(controller): make consolidated messages follow user's trigger message

cyhhaoc83a7f441e5e
diff --git a/core/controller.py b/core/controller.py
index 2f6d060be..fa1f0b313 100644
--- a/core/controller.py
+++ b/core/controller.py
@@ -222,7 +222,10 @@ class Controller:
def _get_consolidated_message_key(self, context: MessageContext) -> str:
settings_key = self._get_settings_key(context)
thread_key = context.thread_id or context.channel_id
- return f"{settings_key}:{thread_key}"
+ # Include message_id to distinguish different conversation rounds within same thread
+ # Each user message triggers a new round with its own consolidated message
+ trigger_id = context.message_id or ""
+ return f"{settings_key}:{thread_key}:{trigger_id}"
def _get_consolidated_message_lock(self, key: str) -> asyncio.Lock:
if key not in self._consolidated_message_locks: