fix: channelId extraction, sender identification, and per-channel turn order #9
@@ -607,8 +607,9 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
// Turn-based check: if channel has turn order, only current speaker can respond
|
||||
if (!rec.decision.shouldUseNoReply && derived.channelId) {
|
||||
// Turn-based check: ALWAYS check turn order regardless of evaluateDecision result.
|
||||
// This ensures only the current speaker can respond even for human messages.
|
||||
if (derived.channelId) {
|
||||
ensureTurnOrder(api, derived.channelId);
|
||||
const accountId = resolveAccountId(api, ctx.agentId || "");
|
||||
if (accountId) {
|
||||
|
||||
Reference in New Issue
Block a user