diff --git a/surfsense_backend/app/agents/new_chat/middleware/safe_summarization.py b/surfsense_backend/app/agents/new_chat/middleware/safe_summarization.py
index 8248f5c8c..4ddcf334f 100644
--- a/surfsense_backend/app/agents/new_chat/middleware/safe_summarization.py
+++ b/surfsense_backend/app/agents/new_chat/middleware/safe_summarization.py
@@ -46,7 +46,7 @@ if TYPE_CHECKING:
logger = logging.getLogger(__name__)
-def _sanitize_message_content(msg: "AnyMessage") -> "AnyMessage":
+def _sanitize_message_content(msg: AnyMessage) -> AnyMessage:
"""Return ``msg`` with ``content`` coerced to a non-``None`` value.
``get_buffer_string`` reads ``m.text`` which iterates ``self.content``;
@@ -90,16 +90,14 @@ class SafeSummarizationMiddleware(SummarizationMiddleware):
implementations from upstream.
"""
- def _filter_summary_messages(
- self, messages: "list[AnyMessage]"
- ) -> "list[AnyMessage]":
+ def _filter_summary_messages(self, messages: list[AnyMessage]) -> list[AnyMessage]:
filtered = super()._filter_summary_messages(messages)
return [_sanitize_message_content(m) for m in filtered]
def create_safe_summarization_middleware(
- model: "BaseChatModel",
- backend: "BACKEND_TYPES",
+ model: BaseChatModel,
+ backend: BACKEND_TYPES,
) -> SafeSummarizationMiddleware:
"""Drop-in replacement for ``create_summarization_middleware``.
diff --git a/surfsense_backend/tests/unit/test_error_contract.py b/surfsense_backend/tests/unit/test_error_contract.py
index 81ec08b2d..ec8021290 100644
--- a/surfsense_backend/tests/unit/test_error_contract.py
+++ b/surfsense_backend/tests/unit/test_error_contract.py
@@ -202,9 +202,7 @@ class TestHTTPExceptionHandler:
# Intentional 503s (e.g. feature flag off) must surface the developer
# message so the frontend can render actionable copy.
body = _assert_envelope(client.get("/http-503"), 503)
- assert (
- body["error"]["message"] == "Page purchases are temporarily unavailable."
- )
+ assert body["error"]["message"] == "Page purchases are temporarily unavailable."
assert body["error"]["message"] != GENERIC_5XX_MESSAGE
def test_502_preserves_detail(self, client):
diff --git a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/DesktopContent.tsx b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/DesktopContent.tsx
index 3175268d2..63ca9f5df 100644
--- a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/DesktopContent.tsx
+++ b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/DesktopContent.tsx
@@ -200,8 +200,8 @@ export function DesktopContent() {
Launch on Startup
- Automatically start SurfSense when you sign in to your computer so global
- shortcuts and folder sync are always available.
+ Automatically start SurfSense when you sign in to your computer so global shortcuts and
+ folder sync are always available.
@@ -232,8 +232,7 @@ export function DesktopContent() {
Start minimized to tray
- Skip the main window on boot — SurfSense lives in the system tray until you need
- it.
+ Skip the main window on boot — SurfSense lives in the system tray until you need it.