story-kit: merge 352_bug_ambient_on_off_command_not_intercepted_by_bot_after_refactors

This commit is contained in:
Dave
2026-03-20 11:16:48 +00:00
parent 4268db8641
commit d7e814c02c
10 changed files with 43 additions and 39 deletions

View File

@@ -678,7 +678,6 @@ pub async fn slash_command_receive(
agents: &ctx.agents,
ambient_rooms: &ctx.ambient_rooms,
room_id: &payload.channel_id,
is_addressed: true,
};
let response_text = try_handle_command(&dispatch, &synthetic_message)
@@ -711,8 +710,6 @@ async fn handle_incoming_message(
agents: &ctx.agents,
ambient_rooms: &ctx.ambient_rooms,
room_id: channel,
// Slack messages in configured channels are always "addressed" to the bot.
is_addressed: true,
};
if let Some(response) = try_handle_command(&dispatch, message) {
@@ -1429,7 +1426,6 @@ mod tests {
agents: &agents,
ambient_rooms: &ambient_rooms,
room_id: &room_id,
is_addressed: true,
};
let result = try_handle_command(&dispatch, &synthetic);
@@ -1457,7 +1453,6 @@ mod tests {
agents: &agents,
ambient_rooms: &ambient_rooms,
room_id: &room_id,
is_addressed: true,
};
let result = try_handle_command(&dispatch, &synthetic);