@setoelkahfi / sigit / commits / 605cb14

style: cargo fmt src/main.rs

Fix pre-existing rustfmt drift in import ordering and line wrapping carried in from development. No behavior change.

keypair34 committed Jun 24, 2026 at 19:29 UTC 605cb14ca0613b5b5a55fe1da52e8b040b7941b3
1 file changed +14 -11
src/main.rs
+14 -11
@@ -46,16 +46,15 @@ use onde::inference::SamplingConfig;
46
47 use agent_client_protocol::schema::{
48 AgentCapabilities, AuthMethod, AuthMethodAgent, AuthenticateRequest, AuthenticateResponse,
49 - AvailableCommand, AvailableCommandInput, AvailableCommandsUpdate, ConfigOptionUpdate,
50 - UnstructuredCommandInput,
51 - CancelNotification, ContentBlock, ContentChunk, EmbeddedResourceResource, ForkSessionRequest,
49 + AvailableCommand, AvailableCommandInput, AvailableCommandsUpdate, CancelNotification,
50 + ConfigOptionUpdate, ContentBlock, ContentChunk, EmbeddedResourceResource, ForkSessionRequest,
51 ForkSessionResponse, Implementation, InitializeRequest, InitializeResponse, LoadSessionRequest,
52 LoadSessionResponse, Meta, NewSessionRequest, NewSessionResponse, PromptRequest,
53 PromptResponse, ProtocolVersion, SessionCapabilities, SessionConfigOption,
54 SessionConfigOptionCategory, SessionConfigSelectOption, SessionConfigValueId,
55 SessionForkCapabilities, SessionId, SessionNotification, SessionUpdate,
56 SetSessionConfigOptionRequest, SetSessionConfigOptionResponse, StopReason, ToolCall,
58 - ToolCallStatus, ToolCallUpdate, ToolCallUpdateFields, ToolKind,
57 + ToolCallStatus, ToolCallUpdate, ToolCallUpdateFields, ToolKind, UnstructuredCommandInput,
58 };
59 use agent_client_protocol::{Agent, ByteStreams, Client, ConnectionTo, Responder};
60 use onde::inference::{ChatEngine, GgufModelConfig};
@@ -308,8 +307,7 @@ impl SiGitAgent {
307 ) -> Self {
308 let startup_model_name = initial_model.display_name.clone();
309 let startup_model_id = initial_model.model_id.clone();
311 - let backend: Arc<dyn InferenceBackend> =
312 - Arc::new(LocalBackend::new(Arc::clone(&engine)));
310 + let backend: Arc<dyn InferenceBackend> = Arc::new(LocalBackend::new(Arc::clone(&engine)));
311 Self {
312 engine,
313 backend: tokio::sync::Mutex::new(backend),
@@ -590,10 +588,11 @@ impl SiGitAgent {
588 };
589 let commands = vec![
590 AvailableCommand::new("help", "Show available commands"),
593 - AvailableCommand::new("models", "List available models")
594 - .input(AvailableCommandInput::Unstructured(
595 - UnstructuredCommandInput::new("model number to switch to (optional)"),
591 + AvailableCommand::new("models", "List available models").input(
592 + AvailableCommandInput::Unstructured(UnstructuredCommandInput::new(
593 + "model number to switch to (optional)",
594 )),
595 + ),
596 with_hint("login", "Sign in to siGit Code Cloud", "<email> <password>"),
597 AvailableCommand::new("logout", "Sign out of siGit Code Cloud"),
598 AvailableCommand::new("whoami", "Show the signed-in account"),
@@ -1276,8 +1275,12 @@ impl SiGitAgent {
1275 .ok();
1276 self.advertise_commands(cx, session_id.clone());
1277
1279 - self.send_assistant_message(cx, session_id, format!("Reloaded. {signed_in} {backend_note}"))
1280 - .ok();
1278 + self.send_assistant_message(
1279 + cx,
1280 + session_id,
1281 + format!("Reloaded. {signed_in} {backend_note}"),
1282 + )
1283 + .ok();
1284 }
1285
1286 async fn handle_set_session_config_option(