mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix: skip custom-message runs in prompt-url-widget
This commit is contained in:
parent
66c2fa3d7a
commit
c17be1e982
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue