@setoelkahfi / sigit / commits / bfd7842

Fix format

Seto Elkahfi committed Jun 9, 2026 at 13:36 UTC bfd78423a143bf5a9a4696d26724acb32c22ca25
1 file changed +9 -10
src/main.rs
+9 -10
@@ -40,18 +40,18 @@ use std::sync::Arc;
40
41 use onde::inference::SamplingConfig;
42
43 -use agent_client_protocol::{Agent, ByteStreams, Client, ConnectionTo, Responder};
43 use agent_client_protocol::schema::{
44 AgentCapabilities, AuthMethod, AuthMethodAgent, AuthenticateRequest, AuthenticateResponse,
46 - CancelNotification, ContentBlock, ContentChunk, EmbeddedResourceResource,
47 - ForkSessionRequest, ForkSessionResponse, Implementation, InitializeRequest, InitializeResponse,
48 - LoadSessionRequest, LoadSessionResponse, Meta, NewSessionRequest, NewSessionResponse,
49 - PromptRequest, PromptResponse, ProtocolVersion, SessionCapabilities, SessionConfigOption,
45 + CancelNotification, ContentBlock, ContentChunk, EmbeddedResourceResource, ForkSessionRequest,
46 + ForkSessionResponse, Implementation, InitializeRequest, InitializeResponse, LoadSessionRequest,
47 + LoadSessionResponse, Meta, NewSessionRequest, NewSessionResponse, PromptRequest,
48 + PromptResponse, ProtocolVersion, SessionCapabilities, SessionConfigOption,
49 SessionConfigOptionCategory, SessionConfigSelectOption, SessionConfigValueId,
50 SessionForkCapabilities, SessionId, SessionNotification, SessionUpdate,
51 SetSessionConfigOptionRequest, SetSessionConfigOptionResponse, StopReason, ToolCall,
52 ToolCallStatus, ToolCallUpdate, ToolCallUpdateFields, ToolKind,
53 };
54 +use agent_client_protocol::{Agent, ByteStreams, Client, ConnectionTo, Responder};
55 use onde::inference::{ChatEngine, GgufModelConfig, ToolDefinition, ToolResult};
56 use std::path::PathBuf;
57 use std::sync::atomic::{AtomicBool, Ordering};
@@ -1070,10 +1070,7 @@ impl SiGitAgent {
1070 Ok(PromptResponse::new(StopReason::EndTurn))
1071 }
1072
1073 - async fn handle_cancel(
1074 - &self,
1075 - args: CancelNotification,
1076 - ) -> agent_client_protocol::Result<()> {
1073 + async fn handle_cancel(&self, args: CancelNotification) -> agent_client_protocol::Result<()> {
1074 log::info!("cancel requested for session {}", args.session_id);
1075 Ok(())
1076 }
@@ -1999,7 +1996,9 @@ async fn run_acp_server() -> anyhow::Result<()> {
1996 .on_receive_request(
1997 {
1998 let state = Arc::clone(&state);
2002 - async move |req: SetSessionConfigOptionRequest, responder, cx: ConnectionTo<Client>| {
1999 + async move |req: SetSessionConfigOptionRequest,
2000 + responder,
2001 + cx: ConnectionTo<Client>| {
2002 handle_response(
2003 responder,
2004 state.handle_set_session_config_option(&cx, req).await,