Files
Jyotisha/docs/tasks/PROGRESS-consultation-daily-empty-answer-20260909.md
T
Jesse_ChenandCursor 17b36f3a9f
Independent Staging Quality Gate / validate (push) Successful in 10m6s
Independent Staging Quality Gate / publish (push) Successful in 2m4s
fix(consult): pin daily entrypoint domains and sentence-filter thinking (BUG-612/613)
Homepage「深入看今日」was rewritten to natal 综合, then each compose slice burned its only step on a tool call, so the answer stayed empty. Pin the route theme, write the three daily sections with tools disabled, and filter thinking by sentence so English word-salad cannot leak.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 17:38:08 +08:00

3.0 KiB
Raw Blame History

PROGRESS · 「深入看今日」empty_answer + 思考区英文词渣(2026-09-09

  • 工作树:.worktrees/consultation-daily-empty-answer-20260909
  • 分支:codex/consultation-daily-empty-answer-20260909track 当时的 origin/staging @ 48d2ff80
  • 基线:任务书 docs/tasks/TASK-consultation-daily-empty-answer-20260909.md
  • BUGBUG-612BUG-613
  • 未改计费、AGENT_MAX_STEPS = 8AGENT_TIMEOUT_MS = 110s、Skill;未 commit / 未 push

做了什么

任务 状态 说明
4.1 入口钉死领域 完成 entrypointdaily_starlanguage / birth_time_rectificationcanonicalDomainPlan 只执行路由 theme;模型改写记 planOverrideIgnored
4.3 分段禁用工具 + 空切片重试 完成 composeSectiontoolChoice: "none"composeByHeadings 对无新正文的标题再写一次 section-empty-retry
4.2 今日三节写作计划 完成 dailyConsultationThinkingPlan():今日趋势 / 适合推进 / 需要避开 / 一个行动;id 不是 close,不会被拆成审计表+现代生活
4.4 思考流按句过滤 完成 createPublicThinkingSanitizer;事故英文 3–6 字符切开后无 ≥4 字母英文、无 run-jyotish
4.5 记录 完成 BUG-612/613、CHANGELOG、本文件、走查清单;任务板改「待验收」。staging 已把 609611 给 sync2 修复单,本单改用 612/613。

没有砍让步项。额外做了:getJyotishAgent 在今日入口换成 daily 标题规则,避免 retryForAnswer 仍按本命骨架写。

口径(与任务书一致)

  • 普通问题仍允许模型传 domains
  • 模型在入口请求里传了不同或非法领域:忽略,不抛、不扣步。
  • planOverrideIgnored 只在为真时出现在 receipt,既有 deepEqual 回执测试不用改。
  • 空回答仍走 empty_answer、不扣点。

偏离

  1. 路由里用 consultEntrypoint 闭包变量,而不是在嵌套函数里读 parsed.data.entrypoint runAgenticConsultation 是内嵌函数,TS 不把外层 safeParse 的收窄传进去。取值仍来自同一份请求。
  2. 无终止符的英文思考若后面直接接中文句,按中文句起点切开,英文前缀丢掉。 任务书只写了按句号切;不这样切,既有「The proposedKind…」+「先看事业宫的结构。」回归会把英文残词粘进中文。

测试数字

cd frontend
./node_modules/.bin/tsc --noEmit
./node_modules/.bin/tsx --test \
  tests/consultation-agentic-runtime.test.ts \
  tests/consultation-thinking-plan.test.ts \
  tests/consultation-workflow-contract.test.ts \
  tests/public-thinking.test.ts \
  tests/consultation-entrypoint.test.ts

119/119 通过。另跑 application-billing-contractrectification-v9-stream 思考通道,未红。未跑全量 npm test

待验收

docs/testing/consultation-daily-empty-answer-20260909.md。需要 staging 部署本分支后,用已校验星盘账号从首页点「深入看今日」。