Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

[autofix.ci] apply automated fixes

autofix-ci[bot]32574da3b2a7
diff --git a/crates/screenpipe-core/src/pipes/builtin_migrations.rs b/crates/screenpipe-core/src/pipes/builtin_migrations.rs
index c76340011..98b4b4254 100644
--- a/crates/screenpipe-core/src/pipes/builtin_migrations.rs
+++ b/crates/screenpipe-core/src/pipes/builtin_migrations.rs
@@ -557,10 +557,16 @@ fn meeting_summary_swaps() -> Vec<FragmentSwap> {
}
for (old, start, end) in [
- (LEGACY_SUMMARY_OUTPUT_WITHOUT_TITLE, "step 3 — write the summary", "\n\nthis step is not optional"),
+ (
+ LEGACY_SUMMARY_OUTPUT_WITHOUT_TITLE,
+ "step 3 — write the summary",
+ "\n\nthis step is not optional",
+ ),
(LEGACY_SUMMARY_TITLE_RULE, "`-f` matters:", "\n\nstep 4"),
] {
- if let Some(new) = section_between(bundled_prompt("meeting-summary").unwrap_or(""), start, end) {
+ if let Some(new) =
+ section_between(bundled_prompt("meeting-summary").unwrap_or(""), start, end)
+ {
swaps.push(FragmentSwap {
why: "keep the AI topic in the recoverable summary and preserve descriptive meeting names",
old,
@@ -952,12 +958,20 @@ mod tests {
#[test]
fn installs_recoverable_topic_titles_without_changing_user_configuration() {
let prompt = bundled("meeting-summary");
- let output = section_between(prompt, "step 3 — write the summary", "\n\nthis step is not optional").unwrap();
+ let output = section_between(
+ prompt,
+ "step 3 — write the summary",
+ "\n\nthis step is not optional",
+ )
+ .unwrap();
let rule = section_between(prompt, "`-f` matters:", "\n\nstep 4").unwrap();
- let stale = format!("{}\nMy custom instructions stay here.\n", prompt
- .replace(output, LEGACY_SUMMARY_OUTPUT_WITHOUT_TITLE)
- .replace(rule, LEGACY_SUMMARY_TITLE_RULE)
- .replace("enabled: true", "enabled: false"));
+ let stale = format!(
+ "{}\nMy custom instructions stay here.\n",
+ prompt
+ .replace(output, LEGACY_SUMMARY_OUTPUT_WITHOUT_TITLE)
+ .replace(rule, LEGACY_SUMMARY_TITLE_RULE)
+ .replace("enabled: true", "enabled: false")
+ );
let migrated = migrate_builtin_pipe_text("meeting-summary", &stale).unwrap();
assert!(migrated.contains("### <TOPIC_TITLE>"));
assert!(migrated.contains("preserves descriptive user or calendar titles"));
diff --git a/crates/screenpipe-engine/src/meeting_summary/finalizer.rs b/crates/screenpipe-engine/src/meeting_summary/finalizer.rs
index c1f78bc63..4952569e6 100644
--- a/crates/screenpipe-engine/src/meeting_summary/finalizer.rs
+++ b/crates/screenpipe-engine/src/meeting_summary/finalizer.rs
@@ -515,7 +515,10 @@ mod db_tests {
let meeting = db.get_meeting_by_id(meeting_id).await.unwrap();
let note = meeting.note.unwrap();
assert!(note.starts_with("## Summary\n### Rollout planning and follow-up ownership"));
- assert_eq!(meeting.title.as_deref(), Some("Rollout planning and follow-up ownership"));
+ assert_eq!(
+ meeting.title.as_deref(),
+ Some("Rollout planning and follow-up ownership")
+ );
// The run stays a success — the outcome was repaired, not the run.
assert_eq!(
execution_state(&db, run).await,