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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(harness): preserve handled key errors
cyh761a0a16bf1b
diff --git a/core/handlers/message_handler.py b/core/handlers/message_handler.pyindex f21caa2e1..05742fcb6 100644--- a/core/handlers/message_handler.py+++ b/core/handlers/message_handler.py@@ -847,6 +847,8 @@ class MessageHandler(BaseHandler):session_id=str(bound_session_id),)except KeyError:+ if request.failure_handled:+ raiseawait self._handle_missing_agent(context,agent_name,diff --git a/tests/test_message_handler_typing.py b/tests/test_message_handler_typing.pyindex 22ecaa027..517cfbf3f 100644--- a/tests/test_message_handler_typing.py+++ b/tests/test_message_handler_typing.py@@ -1568,6 +1568,47 @@ class MessageHandlerTypingTests(unittest.IsolatedAsyncioTestCase):},)+ async def test_handled_backend_key_error_is_not_reclassified_as_missing_agent(self):+ controller = _StubController(platform="slack", ack_mode="reaction", typing_result=True)++ async def fail_after_dispatch(_agent_name, request):+ error = KeyError("backend config")+ request.failure_handled = True+ await request.failure_handler(error)+ raise error++ controller.agent_service.handle_message = fail_after_dispatch++ async def emit(context, message_type, text, **kwargs):+ if message_type == "notify":+ delivered_id = await controller.im_client.send_message(context, text)+ delivery = kwargs["delivery"]+ delivery.send_returned = True+ delivery.delivered_id = delivered_id+ return delivered_id+ return None++ controller.emit_agent_message = AsyncMock(side_effect=emit)+ handler = MessageHandler(controller)+ handler.set_session_handler(_StubSessionHandler())+ context = MessageContext(+ user_id="scheduled",+ channel_id="C1",+ message_id="scheduled:task-1:key-error",+ platform="slack",+ platform_specific={+ "turn_token": "turn-scheduled-key-error",+ "task_execution_id": "run-scheduled-key-error",+ },+ )++ result = await handler.handle_scheduled_message(context, "hello")++ self.assertEqual(result, "'backend config'")+ self.assertEqual(controller.im_client.sent_messages, [("C1", "Error: 'backend config'")])+ self.assertEqual(controller.emit_agent_message.await_count, 2)+ self.assertNotIn("not available", controller.im_client.sent_messages[0][1])+async def test_durable_scheduled_turn_does_not_mirror_before_acceptance(self):controller = _StubController(platform="slack", ack_mode="reaction", typing_result=True)handler = MessageHandler(controller)