Skip to content

Your lightweight open-source personal agent.

fix(webui): narrow local trigger source label

chengyongru09bde468eb96
diff --git a/webui/src/components/MessageBubble.tsx b/webui/src/components/MessageBubble.tsx
index efcafcefc..7cb9cf97e 100644
--- a/webui/src/components/MessageBubble.tsx
+++ b/webui/src/components/MessageBubble.tsx
@@ -168,12 +168,13 @@ export function MessageBubble({
const reasoningStreaming = !!(message.role === "assistant" && message.reasoningStreaming);
const hasReasoning = reasoning.length > 0 || reasoningStreaming;
const automationSourceKind = message.source?.kind;
+ const automationSourceName = message.source?.label?.trim();
const automationSourceLabel = (
automationSourceKind === "cron"
|| automationSourceKind === "local_trigger"
|| automationSourceKind === "trigger"
)
- ? (message.source.label?.trim() || t("message.automationSourceFallback"))
+ ? (automationSourceName || t("message.automationSourceFallback"))
: "";
const automationTriggeredLabel = t("message.automationTriggered");