fix: skip custom-message runs in prompt-url-widget

This commit is contained in:
triagent 2026-10-24 12:41:35 +00:00 • committed by Petr Houška
parent 66c2fa3d7a
commit c17be1e982

View file

@ -218,7 +218,7 @@ export default function promptUrlWidgetExtension(pi: ExtensionAPI) {
}; };
pi.on("before_agent_start", async (event, ctx) => { pi.on("before_agent_start", async (event, ctx) => {
if (!ctx.hasUI) return; if (!ctx.hasUI || event.messageType !== "user") return;
const match = extractPromptMatch(event.prompt); const match = extractPromptMatch(event.prompt);
if (!match) { if (!match) {
return; return;