mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
fix(auto-drive): broadcast and display latest heading
This commit is contained in:
@@ -9793,18 +9793,17 @@ impl ChatWidget<'_> {
|
||||
return;
|
||||
}
|
||||
|
||||
let Some(first_line_raw) = raw
|
||||
.lines()
|
||||
.find_map(|line| {
|
||||
let display_text = extract_latest_bold_title(raw).or_else(|| {
|
||||
raw.lines().find_map(|line| {
|
||||
let trimmed = line.trim();
|
||||
(!trimmed.is_empty()).then_some(trimmed.to_string())
|
||||
})
|
||||
else {
|
||||
});
|
||||
|
||||
let Some(display_text) = display_text else {
|
||||
return;
|
||||
};
|
||||
|
||||
let display_text = heading_from_line(&first_line_raw).unwrap_or_else(|| first_line_raw.clone());
|
||||
|
||||
if self
|
||||
.auto_state
|
||||
.last_broadcast_thought
|
||||
|
||||
Reference in New Issue
Block a user