From 8ed10ac7dff0d8bfe0b95f37e94649dd29005548 Mon Sep 17 00:00:00 2001 From: Xubin Ren Date: Mon, 27 Apr 2026 10:02:17 +0000 Subject: [PATCH] test(command): keep history tests lint-clean Made-with: Cursor --- nanobot/command/builtin.py | 2 +- tests/cli/test_restart_command.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nanobot/command/builtin.py b/nanobot/command/builtin.py index d73d4ee6..299fa97b 100644 --- a/nanobot/command/builtin.py +++ b/nanobot/command/builtin.py @@ -56,7 +56,7 @@ async def cmd_status(ctx: CommandContext) -> OutboundMessage: pass if ctx_est <= 0: ctx_est = loop._last_usage.get("prompt_tokens", 0) - + # Fetch web search provider usage (best-effort, never blocks the response) search_usage_text: str | None = None try: diff --git a/tests/cli/test_restart_command.py b/tests/cli/test_restart_command.py index c6a69640..1e4ba517 100644 --- a/tests/cli/test_restart_command.py +++ b/tests/cli/test_restart_command.py @@ -10,7 +10,7 @@ from unittest.mock import AsyncMock, MagicMock, patch import pytest -from nanobot.bus.events import InboundMessage, OutboundMessage +from nanobot.bus.events import InboundMessage from nanobot.providers.base import LLMResponse