Move preferences from the database to a YAML config file
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -115,11 +115,10 @@ impl App {
|
||||
} else if active && message.reasoning.is_none() {
|
||||
body = body.push(text("Loading model…").size(14));
|
||||
}
|
||||
if !message.user
|
||||
&& !message.tool
|
||||
&& let Some(model) = ModelChoice::from_id(&self.preferences.selected_model)
|
||||
{
|
||||
for summary in crate::agent::tool_summaries(model, &message.content) {
|
||||
if !message.user && !message.tool {
|
||||
for summary in
|
||||
crate::agent::tool_summaries(self.config.model, &message.content)
|
||||
{
|
||||
body = body.push(text(summary).size(13).color(muted_text()));
|
||||
}
|
||||
}
|
||||
@@ -185,12 +184,7 @@ impl App {
|
||||
.color(muted_text()),
|
||||
Space::with_width(Length::Fill),
|
||||
icon(ICON_MODEL, 16),
|
||||
text(
|
||||
ModelChoice::from_id(&self.preferences.selected_model)
|
||||
.unwrap_or_default()
|
||||
.to_string(),
|
||||
)
|
||||
.size(12),
|
||||
text(self.config.model.to_string()).size(12),
|
||||
action,
|
||||
]
|
||||
.spacing(6)
|
||||
|
||||
Reference in New Issue
Block a user