huskies: merge 1192 bug compact command is swallowed by the registry placeholder before its real handler runs

This commit is contained in:
Huskies Agent
2026-07-17 13:46:11 +00:00
parent e991c6ac63
commit 6174828e18
6 changed files with 221 additions and 5 deletions
@@ -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,