From 048b8a8480b64e852d27895ba143a066fca4907d Mon Sep 17 00:00:00 2001 From: xintaofei Date: Sat, 21 Mar 2026 19:29:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AD=A6=E5=91=8A=E5=92=8C?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/acp/connection.rs | 2 ++ src/components/settings/version-control-settings.tsx | 1 + src/contexts/acp-connections-context.tsx | 2 +- src/lib/notification.ts | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/acp/connection.rs b/src-tauri/src/acp/connection.rs index a456fea..9feca20 100644 --- a/src-tauri/src/acp/connection.rs +++ b/src-tauri/src/acp/connection.rs @@ -1309,6 +1309,7 @@ struct ForkExitInfo { /// caller. We attach to the forked session (S2) directly using the /// `ForkSessionResponse` — no separate `session/load` is needed because S2 was /// just created in-memory by the agent on this connection. +#[allow(clippy::too_many_arguments)] async fn handle_fork_or_exit( loop_result: Result, sacp::Error>, conn_id: &str, @@ -1385,6 +1386,7 @@ async fn handle_fork_or_exit( /// /// Returns `Ok(None)` on normal exit (disconnect / channel closed) or /// `Ok(Some(ForkExitInfo))` when the loop should be restarted on a forked session. +#[allow(clippy::too_many_arguments)] async fn run_conversation_loop<'a>( session: &mut sacp::ActiveSession<'a, Agent>, conn_id: &str, diff --git a/src/components/settings/version-control-settings.tsx b/src/components/settings/version-control-settings.tsx index eb24279..1061f76 100644 --- a/src/components/settings/version-control-settings.tsx +++ b/src/components/settings/version-control-settings.tsx @@ -75,6 +75,7 @@ function AccountRow({ return (
{account.avatar_url ? ( + // eslint-disable-next-line @next/next/no-img-element {account.username} {}) } } diff --git a/src/lib/notification.ts b/src/lib/notification.ts index f7f2cd3..d24c0fa 100644 --- a/src/lib/notification.ts +++ b/src/lib/notification.ts @@ -2,7 +2,7 @@ import { invoke } from "@tauri-apps/api/core" export async function notifyTurnComplete( title: string, - body: string, + body: string ): Promise { if (!document.hidden) return await invoke("send_notification", { title, body })