From a160f0dde3c6a6ffd36f23eec3e732ffe576976e Mon Sep 17 00:00:00 2001
From: "DESKTOP-RTLN3BA\\$punk"
Date: Fri, 23 Jan 2026 01:44:14 -0800
Subject: [PATCH] chore: linting
---
surfsense_backend/app/schemas/new_chat.py | 4 +++-
.../[search_space_id]/new-chat/[[...chat_id]]/page.tsx | 9 +++++----
.../connector-configs/components/obsidian-config.tsx | 5 +----
.../connector-popup/tabs/all-connectors-tab.tsx | 2 +-
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/surfsense_backend/app/schemas/new_chat.py b/surfsense_backend/app/schemas/new_chat.py
index 0881f997f..7a29fc678 100644
--- a/surfsense_backend/app/schemas/new_chat.py
+++ b/surfsense_backend/app/schemas/new_chat.py
@@ -198,7 +198,9 @@ class RegenerateRequest(BaseModel):
"""
search_space_id: int
- user_query: str | None = None # New user query (for edit). None = reload with same query
+ user_query: str | None = (
+ None # New user query (for edit). None = reload with same query
+ )
attachments: list[ChatAttachment] | None = None
mentioned_document_ids: list[int] | None = None
mentioned_surfsense_doc_ids: list[int] | None = None
diff --git a/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
index 84b3f93ff..59e7878c4 100644
--- a/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
+++ b/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
@@ -1107,7 +1107,10 @@ export default function NewChatPage() {
setMessageThinkingSteps((prev) => {
const newMap = new Map(prev);
// Remove thinking steps for the last two messages
- const lastTwoIds = messages.slice(-2).map((m) => m.id).filter((id): id is string => !!id);
+ const lastTwoIds = messages
+ .slice(-2)
+ .map((m) => m.id)
+ .filter((id): id is string => !!id);
for (const id of lastTwoIds) {
newMap.delete(id);
}
@@ -1410,9 +1413,7 @@ export default function NewChatPage() {
m.id === assistantMsgId
? {
...m,
- content: [
- { type: "text", text: "Sorry, there was an error. Please try again." },
- ],
+ content: [{ type: "text", text: "Sorry, there was an error. Please try again." }],
}
: m
)
diff --git a/surfsense_web/components/assistant-ui/connector-popup/connector-configs/components/obsidian-config.tsx b/surfsense_web/components/assistant-ui/connector-popup/connector-configs/components/obsidian-config.tsx
index f79f2953a..b1b00b4ca 100644
--- a/surfsense_web/components/assistant-ui/connector-popup/connector-configs/components/obsidian-config.tsx
+++ b/surfsense_web/components/assistant-ui/connector-popup/connector-configs/components/obsidian-config.tsx
@@ -179,10 +179,7 @@ export const ObsidianConfig: FC = ({
Index attachment folders and embedded files
-
+
diff --git a/surfsense_web/components/assistant-ui/connector-popup/tabs/all-connectors-tab.tsx b/surfsense_web/components/assistant-ui/connector-popup/tabs/all-connectors-tab.tsx
index 1d0992a1b..65968dea8 100644
--- a/surfsense_web/components/assistant-ui/connector-popup/tabs/all-connectors-tab.tsx
+++ b/surfsense_web/components/assistant-ui/connector-popup/tabs/all-connectors-tab.tsx
@@ -4,8 +4,8 @@ import type { FC } from "react";
import { EnumConnectorName } from "@/contracts/enums/connector";
import type { SearchSourceConnector } from "@/contracts/types/connector.types";
import { isSelfHosted } from "@/lib/env-config";
-import { ConnectorCard } from "../components/connector-card";
import { ComposioConnectorCard } from "../components/composio-connector-card";
+import { ConnectorCard } from "../components/connector-card";
import {
COMPOSIO_CONNECTORS,
CRAWLERS,