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.

test(indicator): align Telegram terminal receipt contract

cyh72b99df2b36a
diff --git a/tests/test_delivery_ack_reaction.py b/tests/test_delivery_ack_reaction.py
index d459ff391..2f55a8be7 100644
--- a/tests/test_delivery_ack_reaction.py
+++ b/tests/test_delivery_ack_reaction.py
@@ -482,13 +482,7 @@ class ReceiptEmojiMappingTests(unittest.TestCase):
class TerminalReceiptEmojiMappingTests(unittest.TestCase):
- """⏹️/⚠️ are newer than the receipts above and are NOT mapped everywhere.
-
- Slack is where the fix was needed and verified. Telegram publishes a fixed
- reaction set that contains neither symbol, so the receipt degrades to no
- reaction there — recorded rather than fixed, because the interruption
- NOTICE is a real message and carries the meaning on its own.
- """
+ """Terminal receipts must resolve to adapter-native reaction values."""
receipts = (STOPPED_REACTION_EMOJI, INTERRUPTED_REACTION_EMOJI)
@@ -503,15 +497,16 @@ class TerminalReceiptEmojiMappingTests(unittest.TestCase):
# rejects them with ``invalid_name``.
self.assertTrue(name.isascii(), name)
- def test_telegram_degrades_to_an_unsupported_reaction(self):
+ def test_telegram_maps_to_supported_distinct_reactions(self):
from modules.im.telegram import TelegramBot
- allowed = {"✍", "👌", "🤔", "🤷", "👀", "🤖"}
- for emoji in self.receipts:
- with self.subTest(emoji=emoji):
- self.assertNotIn(
- TelegramBot._normalize_reaction_emoji(None, emoji), allowed
- )
+ self.assertEqual(
+ [
+ TelegramBot._normalize_reaction_emoji(None, emoji)
+ for emoji in self.receipts
+ ],
+ ["🙊", "😱"],
+ )
class DeliveryAdmissionContractTests(unittest.TestCase):