huskies: merge 1192 bug compact command is swallowed by the registry placeholder before its real handler runs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user