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
@@ -263,6 +263,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!("[slack] Handling compact command from {user} in {channel}");
let response = crate::chat::compact::handle_compact_for_key(
channel,
&ctx.history,
&ctx.services.project_root,
8_000,
save_slack_history,
)
.await;
let response = markdown_to_slack(&response);
let _ = ctx.transport.send_message(channel, &response, "").await;
return;
}
if let Some(start_cmd) = crate::chat::transport::matrix::start::extract_start_command(
message,
&ctx.services.bot_name,