mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 21:21:10 +00:00
fix(plugins): tighten interactive callback handling
This commit is contained in:
@@ -187,7 +187,7 @@ export async function dispatchPluginInteractiveHandler(params: {
|
||||
|
||||
const dedupeKey =
|
||||
params.channel === "telegram" ? params.callbackId?.trim() : params.interactionId?.trim();
|
||||
if (dedupeKey && callbackDedupe.check(dedupeKey)) {
|
||||
if (dedupeKey && callbackDedupe.peek(dedupeKey)) {
|
||||
return { matched: true, handled: true, duplicate: true };
|
||||
}
|
||||
|
||||
@@ -253,6 +253,9 @@ export async function dispatchPluginInteractiveHandler(params: {
|
||||
});
|
||||
}
|
||||
const resolved = await result;
|
||||
if (dedupeKey) {
|
||||
callbackDedupe.check(dedupeKey);
|
||||
}
|
||||
|
||||
return {
|
||||
matched: true,
|
||||
|
||||
Reference in New Issue
Block a user