fix(core) switching model appends model instructions (#10651)

## Summary
When switching models, we should append the instructions of the new
model to the conversation as a developer message.

## Test
- [x] Adds a unit test
This commit is contained in:
Dylan Hurd
2026-02-04 21:50:38 -08:00
committed by GitHub
parent a05aadfa1b
commit e482978261
7 changed files with 261 additions and 4 deletions

View File

@@ -882,7 +882,7 @@ async fn user_turn_personality_remote_model_template_includes_update_message() -
cwd: test.cwd_path().to_path_buf(),
approval_policy: AskForApproval::Never,
sandbox_policy: SandboxPolicy::ReadOnly,
model: test.session_configured.model.clone(),
model: remote_slug.to_string(),
effort: test.config.model_reasoning_effort,
summary: ReasoningSummary::Auto,
collaboration_mode: None,
@@ -898,7 +898,7 @@ async fn user_turn_personality_remote_model_template_includes_update_message() -
approval_policy: None,
sandbox_policy: None,
windows_sandbox_level: None,
model: Some(remote_slug.to_string()),
model: None,
effort: None,
summary: None,
collaboration_mode: None,