fix(consult): write the first turn as chat, not a sectioned report

Ordinary consult first turns drop Markdown headings and the required
action list. People are named in the paragraph, and pinned examples no
longer contain copyable advice. BUG-1244, BUG-1245.
This commit is contained in:
jesse-ux
2026-10-06 15:58:40 +08:00
committed by Jesse_Chen
parent 6d28298226
commit 5a589a9058
18 changed files with 434 additions and 168 deletions
+1 -1
View File
@@ -1602,7 +1602,7 @@ export async function POST(request: Request) {
// / follow-up split as the agentic path (BUG-1071), one statement of it.
const legacyNatalInstruction = hasPriorAssistantAnswer(history, { summaryText: historyWindow.summaryText })
? followUpAnswerShapeInstruction()
: `${natalAnswerShapeBody()}骨架不可省略;文末技法审计表由产品界面折叠展示,不写进正文。星盘事实只使用系统里已经注入的计算结果,不要复述内部字段、JSON 或再跑一遍咨询流程。`;
: `${natalAnswerShapeBody()}文末技法审计表由产品界面折叠展示,不写进正文。星盘事实只使用系统里已经注入的计算结果,不要复述内部字段、JSON 或再跑一遍咨询流程。`;
const cacheBoundary = cachedSystemMessage("【上下文缓存边界】后续内容为本轮请求输入。", selectedModel.model);
const legacyHistory = history.map((message) => message.role === "user"