Run summaries asynchronously and use terminal child model

This commit is contained in:
2026-08-24 09:41:58 -05:00
parent f4dc6231d6
commit 4a364ce37f
5 changed files with 277 additions and 106 deletions
+3 -3
View File
@@ -95,13 +95,13 @@ fn propagate_parent_agent_settings(
profiles.set_active_profile(child_terminal_view_id, parent_profile_id, ctx);
});
let parent_base_model_id = LLMPreferences::as_ref(ctx)
.get_active_base_model(ctx, Some(parent_view_id))
let parent_terminal_model_id = LLMPreferences::as_ref(ctx)
.get_active_cli_agent_model(ctx, Some(parent_view_id))
.id
.clone();
LLMPreferences::handle(ctx).update(ctx, |llm_prefs, ctx| {
llm_prefs.update_preferred_agent_mode_llm(
&parent_base_model_id,
&parent_terminal_model_id,
child_terminal_view_id,
ctx,
);
+1 -1
View File
@@ -122,7 +122,7 @@ fn serialize_proto_to_base64<M: prost::Message>(message: &M) -> String {
}
/// Overrides the child's preferred agent-mode LLM. `None` is a no-op
/// (inherits the parent's LLM via `propagate_parent_agent_settings`).
/// (inherits the parent's terminal model via `propagate_parent_agent_settings`).
#[cfg(not(target_family = "wasm"))]
fn apply_child_model_id_override(
child_terminal_view_id: EntityId,