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(routing-modal): pass is_dm param instead of Slack-specific heuristic in controller

cyh0fe6615fddc7
diff --git a/core/controller.py b/core/controller.py
index 90362c3ae..4d6c90e1b 100644
--- a/core/controller.py
+++ b/core/controller.py
@@ -900,6 +900,7 @@ class Controller:
channel_id: str,
view: dict,
action: dict,
+ is_dm: bool = False,
) -> None:
"""Handle routing modal updates when selections change."""
try:
@@ -913,7 +914,7 @@ class Controller:
context = MessageContext(
user_id=user_id,
channel_id=resolved_channel_id,
- platform_specific={"is_dm": isinstance(channel_id, str) and channel_id.startswith("D")},
+ platform_specific={"is_dm": is_dm},
)
settings_key = self._get_settings_key(context)
diff --git a/modules/im/slack.py b/modules/im/slack.py
index 7f479060e..39b472ada 100644
--- a/modules/im/slack.py
+++ b/modules/im/slack.py
@@ -1217,11 +1217,13 @@ class SlackBot(BaseIMClient):
if should_update:
if hasattr(self, "_on_routing_modal_update"):
channel_from_view = view.get("private_metadata")
+ effective_channel = channel_from_view or channel_id
await self._on_routing_modal_update(
user.get("id"),
- channel_from_view or channel_id,
+ effective_channel,
view,
action,
+ is_dm=isinstance(effective_channel, str) and effective_channel.startswith("D"),
)
elif action_type == "plain_text_input":
action_id = action.get("action_id")