Improve agent prompting and classifier latency; clean up build warnings

This commit is contained in:
2026-09-15 14:25:00 -05:00
parent 66b73b1aac
commit 76d492aa75
69 changed files with 368 additions and 205 deletions
@@ -5667,7 +5667,7 @@ fn test_move_object_personal_to_team_success() {
assert!(
matches!(&events[0], ModelEvent::UpsertNotebook { notebook } if notebook.id == sync_id),
"Expected upsert of notebook, got {:?}",
&events[0]
events[0]
);
});
}
@@ -5870,7 +5870,7 @@ fn test_move_cloud_environment_personal_to_team_success() {
let events = db_events(&update_manager_struct);
assert_eq!(events.len(), 1);
let ModelEvent::UpsertGenericStringObject { object } = &events[0] else {
panic!("Expected upsert of cloud environment, got {:?}", &events[0])
panic!("Expected upsert of cloud environment, got {:?}", events[0])
};
assert_eq!(object.id(), sync_id);
});
@@ -5981,18 +5981,18 @@ fn test_move_workflow_with_enums_personal_to_team_success() {
let events = db_events(&update_manager_struct);
assert_eq!(events.len(), 3);
let ModelEvent::UpsertGenericStringObject { object } = &events[0] else {
panic!("Expected upsert of workflow enum, got {:?}", &events[0])
panic!("Expected upsert of workflow enum, got {:?}", events[0])
};
let new_enum_id = object.id();
assert!(
matches!(&events[1], ModelEvent::UpsertWorkflow { workflow } if workflow.id == workflow_sync_id),
"Expected upsert of workflow, got {:?}",
&events[0]
events[0]
);
assert!(
matches!(&events[2], ModelEvent::UpsertWorkflow { workflow } if workflow.id == workflow_sync_id),
"Expected upsert of workflow, got {:?}",
&events[2]
events[2]
);
// Assert that the new enum ID is in the team space, but the old one remains in the personal space
@@ -6133,18 +6133,18 @@ fn test_move_workflow_with_enums_personal_to_team_failure() {
assert!(
matches!(&events[0], ModelEvent::UpsertGenericStringObject { .. }),
"Expected upsert of GSO, got {:?}",
&events[0]
events[0]
);
assert!(
matches!(&events[1], ModelEvent::UpsertWorkflow { workflow } if workflow.id == workflow_sync_id),
"Expected upsert of workflow, got {:?}",
&events[0]
events[0]
);
assert!(
matches!(&events[2], ModelEvent::UpsertWorkflow { workflow } if workflow.id == workflow_sync_id),
"Expected upsert of workflow, got {:?}",
&events[2]
events[2]
);
// Assert that the workflow update references the old enum ID
@@ -6253,7 +6253,7 @@ fn test_move_object_root_to_folder_success() {
assert!(
matches!(&events[0], ModelEvent::UpsertNotebook { notebook } if notebook.id == sync_id),
"Expected upsert of notebook, got {:?}",
&events[0]
events[0]
);
});
}
@@ -6445,7 +6445,7 @@ fn test_move_object_folder_to_root_success() {
assert!(
matches!(&events[0], ModelEvent::UpsertNotebook { notebook } if notebook.id == sync_id),
"Expected upsert of notebook, got {:?}",
&events[0]
events[0]
);
});
}
@@ -6639,7 +6639,7 @@ fn test_move_object_folder_to_folder_success() {
assert!(
matches!(&events[0], ModelEvent::UpsertNotebook { notebook } if notebook.id == sync_id),
"Expected upsert of notebook, got {:?}",
&events[0]
events[0]
);
});
}
@@ -7422,7 +7422,7 @@ fn test_add_guest_success() {
assert!(
matches!(&events[0], ModelEvent::UpsertNotebook { notebook } if notebook.id == sync_id),
"Expected upsert of notebook, got {:?}",
&events[0]
events[0]
);
assert!(matches!(&events[1], ModelEvent::UpsertUserProfiles { .. }));
});
+2 -2
View File
@@ -1121,7 +1121,7 @@ impl ServerApi {
}
let time_endpoint = format!("{}/current_time", ChannelState::server_root_url());
log::info!("Sending server time request to {}", &time_endpoint);
log::info!("Sending server time request to {}", time_endpoint);
let res = self
.base_client
.http_client()
@@ -1138,7 +1138,7 @@ impl ServerApi {
let time_response: TimeResponse = res.json().await?;
log::info!(
"Received current time from server: {:?}",
&time_response.current_time
time_response.current_time
);
let server_time = ServerTime {
time_at_fetch: time_response.current_time,
+1 -1
View File
@@ -1828,7 +1828,7 @@ impl SyncQueue {
/// If a request succeeds, update the dependency map by removing it from all dependency sets
fn handle_dependency_success(&mut self, dependency: &QueueDependency) {
for (_, dependencies) in self.queue_dependencies.iter_mut() {
for dependencies in self.queue_dependencies.values_mut() {
dependencies.remove(dependency);
}
}