huskies: merge 1192 bug compact command is swallowed by the registry placeholder before its real handler runs
This commit is contained in:
@@ -174,6 +174,27 @@ pub(super) async fn handle_incoming_message(
|
||||
return;
|
||||
}
|
||||
|
||||
if crate::chat::compact::extract_compact_command(
|
||||
message,
|
||||
&ctx.services.bot_name,
|
||||
&ctx.services.bot_user_id,
|
||||
)
|
||||
.is_some()
|
||||
{
|
||||
slog!("[whatsapp] Handling compact command from {sender}");
|
||||
let response = crate::chat::compact::handle_compact_for_key(
|
||||
sender,
|
||||
&ctx.history,
|
||||
&ctx.services.project_root,
|
||||
8_000,
|
||||
save_whatsapp_history,
|
||||
)
|
||||
.await;
|
||||
let formatted = markdown_to_whatsapp(&response);
|
||||
let _ = ctx.transport.send_message(sender, &formatted, "").await;
|
||||
return;
|
||||
}
|
||||
|
||||
if let Some(start_cmd) = crate::chat::transport::matrix::start::extract_start_command(
|
||||
message,
|
||||
&ctx.services.bot_name,
|
||||
|
||||
Reference in New Issue
Block a user