fix(acp): put cloud model-switch confirmation on its own line
When a user selects a siGit Code Cloud tier from the editor's model dropdown, the "Switched to …" confirmation was emitted as an agent message chunk that ACP clients (e.g. Zed) concatenate onto the end of the previous assistant message, producing output like "…ready to take on a task.Switched to siGit Code Cloud · Fast." Prefix the confirmation with a line break so it renders on its own line. Fixes #12 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016dbjvswLakXTFWt9w6Ew86
Claude committed
Jun 25, 2026 at 09:22 UTC
a1afd25a22132951d2197529e1db9e59335880c0
1 file changed
+4
-1
src/main.rs
+4
-1
@@ -1333,7 +1333,10 @@ impl SiGitAgent {
1333
Some(display_name) => format!("Switched to {display_name}."),
1334
None => CLOUD_LOGIN_PROMPT.to_string(),
1335
};
1336
- self.send_assistant_message(cx, args.session_id.clone(), message)
1336
+ // Start on a fresh line: ACP clients concatenate consecutive
1337
+ // agent-message chunks into one block, so without this the switch
1338
+ // confirmation runs onto the end of the previous assistant message.
1339
+ self.send_assistant_message(cx, args.session_id.clone(), format!("\n\n{message}"))
1340
.ok();
1341
1342
let current = self.current_model.lock().unwrap().clone();