






















@@ -1254,9 +1254,10 @@ function buildAssistantText(
12541254 ? readFirstMediaPath((toolJson.details as { media?: unknown }).media)
12551255 : "";
12561256const promptExactReplyDirective = extractExactReplyDirective(prompt);
1257+const promptExactMarkerDirective = extractExactMarkerDirective(prompt);
12571258const exactReplyDirective = promptExactReplyDirective ?? extractExactReplyDirective(allInputText);
12581259const exactMarkerDirective =
1259-extractExactMarkerDirective(prompt) ?? extractExactMarkerDirective(allInputText);
1260+promptExactMarkerDirective ?? extractExactMarkerDirective(allInputText);
12601261const whatsAppLocationMarker = shouldUseWhatsAppLocationMarker(prompt)
12611262 ? extractWhatsAppLocationMarkerDirective(allInputText)
12621263 : "";
@@ -1316,12 +1317,21 @@ function buildAssistantText(
13161317if (whatsAppStickerMarker) {
13171318return whatsAppStickerMarker;
13181319}
1319-if (/\bmarker\b/i.test(allInputText) && exactReplyDirective) {
1320-return exactReplyDirective;
1320+if (/\bmarker\b/i.test(prompt) && promptExactMarkerDirective) {
1321+return promptExactMarkerDirective;
1322+}
1323+if (/\bmarker\b/i.test(prompt) && promptExactReplyDirective) {
1324+return promptExactReplyDirective;
1325+}
1326+if (/\bmarker\b/i.test(allInputText) && promptExactReplyDirective) {
1327+return promptExactReplyDirective;
13211328}
13221329if (/\bmarker\b/i.test(allInputText) && exactMarkerDirective) {
13231330return exactMarkerDirective;
13241331}
1332+if (/\bmarker\b/i.test(allInputText) && exactReplyDirective) {
1333+return exactReplyDirective;
1334+}
13251335if (promptExactReplyDirective) {
13261336return promptExactReplyDirective;
13271337}
@@ -1937,10 +1947,11 @@ async function buildResponsesPayload(
19371947 ? extractLatestToolOutput(input)
19381948 : "");
19391949const toolJson = parseToolOutputJson(scenarioToolOutput);
1940-const exactReplyDirective =
1941-extractExactReplyDirective(prompt) ?? extractExactReplyDirective(allInputText);
1950+const promptExactReplyDirective = extractExactReplyDirective(prompt);
1951+const promptExactMarkerDirective = extractExactMarkerDirective(prompt);
1952+const exactReplyDirective = promptExactReplyDirective ?? extractExactReplyDirective(allInputText);
19421953const exactMarkerDirective =
1943-extractExactMarkerDirective(prompt) ?? extractExactMarkerDirective(allInputText);
1954+promptExactMarkerDirective ?? extractExactMarkerDirective(allInputText);
19441955const whatsAppLocationMarker = shouldUseWhatsAppLocationMarker(prompt)
19451956 ? extractWhatsAppLocationMarkerDirective(allInputText)
19461957 : "";
@@ -2304,11 +2315,11 @@ async function buildResponsesPayload(
23042315if (whatsAppStickerMarker) {
23052316return buildAssistantEvents(whatsAppStickerMarker);
23062317}
2307-if (/\bmarker\b/i.test(prompt) && exactReplyDirective) {
2308-return buildAssistantEvents(exactReplyDirective);
2318+if (/\bmarker\b/i.test(prompt) && promptExactMarkerDirective) {
2319+return buildAssistantEvents(promptExactMarkerDirective);
23092320}
2310-if (/\bmarker\b/i.test(prompt) && exactMarkerDirective) {
2311-return buildAssistantEvents(exactMarkerDirective);
2321+if (/\bmarker\b/i.test(prompt) && promptExactReplyDirective) {
2322+return buildAssistantEvents(promptExactReplyDirective);
23122323}
23132324const isTelegramCurrentSessionStatusTurn =
23142325QA_TELEGRAM_CURRENT_SESSION_STATUS_PROMPT_RE.test(prompt) ||
@@ -2324,12 +2335,15 @@ async function buildResponsesPayload(
23242335 : `QA-TELEGRAM-CURRENT-SESSION-BAD ${sessionKey || "missing-session-key"}`,
23252336);
23262337}
2327-if (/\bmarker\b/i.test(allInputText) && exactReplyDirective) {
2328-return buildAssistantEvents(exactReplyDirective);
2338+if (/\bmarker\b/i.test(allInputText) && promptExactReplyDirective) {
2339+return buildAssistantEvents(promptExactReplyDirective);
23292340}
23302341if (/\bmarker\b/i.test(allInputText) && exactMarkerDirective) {
23312342return buildAssistantEvents(exactMarkerDirective);
23322343}
2344+if (/\bmarker\b/i.test(allInputText) && exactReplyDirective) {
2345+return buildAssistantEvents(exactReplyDirective);
2346+}
23332347if (QA_SKILL_WORKSHOP_REVIEW_PROMPT_RE.test(allInputText)) {
23342348return buildAssistantEvents(
23352349JSON.stringify({
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。