fix(telegram,core): bare seeds stay silent in telegram

This commit is contained in:
hh
2026-08-28 18:42:35 +02:00
parent 7b0c61c18e
commit 7240e0cdac
3 changed files with 9 additions and 3 deletions
+2
View File
@@ -978,6 +978,8 @@ class Conversations:
stamp = datetime.now(UTC).astimezone().strftime("%Y-%m-%d %H:%M")
title = f" «{ctx.title}»" if ctx.title else ""
head = f"[сид: {ctx.seed}] {ctx.kind}{title}, {stamp}."
if not ctx.text or ctx.seed == "brief":
head += " Это контекст, не обращение: отвечать не нужно."
body: str | None = None
if self._texts.seed is not None:
produced: Any = self._texts.seed(ctx)
@@ -668,9 +668,7 @@ class TelegramFrontend(Frontend):
key=f"{event.get('turn_id')}:error",
)
case "reply":
if conv.kind == "master" and str(
event.get("item_origin") or ""
).startswith("сид"):
if str(event.get("item_origin") or "").startswith("сид"):
return
await self._on_reply(conv, event)
case "say":