fix: harden /set_topic_name input

This commit is contained in:
clawdbot 2026-03-15 08:23:24 +00:00
parent 451d1e540b
commit 54fc39e10b
1 changed files with 2 additions and 1 deletions

View File

@ -77,9 +77,10 @@ export const handleSetTopicNameCommand: CommandHandler = async (params, allowTex
timeoutMs: 10_000,
});
} catch (err) {
logVerbose(`/set_topic_name gateway error: ${String(err)}`);
return {
shouldContinue: false,
reply: { text: `❌ Failed to set topic name: ${String(err)}` },
reply: { text: "❌ Failed to set topic name. Please try again later." },
};
}