fix(home): request the daily card on the same condition that renders it #37
Closed
jesse
wants to merge 0 commits from
codex/fix-daily-starlanguage-guard-20260818 into staging
pull from: codex/fix-daily-starlanguage-guard-20260818
merge into: :staging
:main
:staging
:codex/rectification-delivery-dup-adopt-20261006
:codex/consult-conversational-answer-20261006
:codex/consult-latency-quickwins-20261005
:codex/rectification-nadi-seconds-research-20261005
:codex/gate-log-volume-20261004
:codex/astrologer-rulings-batch6-20261004
:codex/consult-timeline-no-plan-20261001
:codex/consult-answer-clock-20261001
:codex/consult-plain-answer-20261001
:codex/rectification-varga-resolution-fix-20261001
:review/rectification-varga-resolution-20260930
:codex/jev-intent-v2-20260927
:codex/consult-evidence-card-research-20260927
:codex/people-archive-p1-20260924
:codex/chart-dasha-western-redesign-20260924
:codex/home-page-split-20260925
:codex/report-reader-main-20260924
:codex/rectification-midnight-date-anchor-20260920
:codex/rectification-cross-midnight-gate-fix-20260920
:codex/rectification-cross-midnight-20260920
:codex/owner-case-purge-20260919
:codex/rectification-jev-intent-research-fix2-20260919
:codex/rectification-jev-intent-research-fix-20260919
:codex/rectification-jev-intent-classifier-research-20260919
:docs/three-channel-redesign-20260918
:codex/session-list-single-source-fix-20260917
:codex/session-list-single-source-20260917
:codex/rectification-session-composer-guard-20260917
:codex/chart-copy-trim-20260917
:codex/rectification-dead-d9-choice-fix-20260916
:codex/rectification-mobile-timeline-readout-20260917
:codex/session-capacity-bool-assert-20260916
:codex/home-state-lowering-20260915
:codex/freeze-metric-change-20260915
:codex/rectification-engine-memoization-fix-20260915
:codex/consultation-session-capacity-20260915
:codex/consultation-context-memory-20260915
:codex/consultation-external-evidence-cache-20260915
:codex/rectification-request-dossier-cache-20260915
:codex/rectification-settled-render-split-20260915
:codex/rectification-engine-memoization-20260915
:codex/rectification-failure-attribution-20260915
:fix/sidebar-hard-nav
:codex/rectification-spoken-orphan-20260914
:codex/rectification-targeted-collect-spoken-focus-20260913
:codex/rectification-house-lord-gochara-research-20260913
:codex/rectification-new-minute-inherit-20260908
:codex/rectification-same-year-probe-dedupe-20260908
:codex/rectification-probe-replay-loss-20260908
:codex/rectification-range-delivery-fix-20260907
:codex/rectification-range-delivery-card-20260907
:codex/rectification-stale-compare-fix-20260907
:codex/rectification-declared-uncertainty-20260907
:codex/report-md-page-20260906
:codex/rectification-collect-vs-offer-consistency-20260905
:codex/rectification-probe-answer-covers-domain-20260905
:codex/rectification-quality-probe-dedupe-20260904
:codex/rectification-post-adopt-verify-20260904
:codex/report-candidate-range-20260904
:codex/report-sensitivity-crash-20260904
:codex/rectification-adopt-narration-fix2-20260904
:codex/rectification-adopt-narration-fix-20260904
:codex/rectification-adopt-narration-20260904
:codex/repo-hygiene-20260903
:codex/rectification-ux-20260903
:codex/rectification-ux-20260902
:codex/diagnose-rectification-request-20260827
:fix/staging-gate-checkout-retry
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
现象
staging 上出生资料完整的账号打开首页,「今日星语」卡片永久停在「正在结合你的星盘写今天的星语。」,Agent 写的文案从不出现。同时首页 hero 标题仍是静态池里的一句,按时段问候没生效;
/api/onboarding返回的 Agent 欢迎语在页面上没有任何渲染点。根因
birthTimeDisplayState(profile)为真就 return,而该函数恰好在出生时间为candidate/accepted/confirmed时返回非 null。条件语义与卡片渲染条件personalChartAvailable相反,请求从未发出。守卫早于 Agent 化改造,此前被客户端写死兜底遮住;BUG-265 删兜底、留守卫,暴露成永久等待态。/api/chart是唯一没有.catch()的引擎调用,engineTimeoutMs仅 8 秒、agentTimeoutMs仅 30 秒,而线上实测端到端 30.6 秒;失败原因被压成同一个字符串。改动
personalChartAvailable,失败后延迟 5 秒重试一次,卸载清理定时器。/api/chart补 catch;失败原因拆为chart_unavailable/model_unavailable/agent_generation_failed;引擎超时 20 秒、模型超时 45 秒,仍在maxDuration = 60内。createStartGreeting拆出createStartGreetingParts,hero 第一行用 salutation、h1用 question;删除starter-prompt.ts与greetingForHour。onboarding.greeting落到 hero 说明行,原静态文案作兜底。验证
/api/daily-starlanguage,冷路径 30.6 秒返回真实{trend, action, caution},二次 1.6 秒命中agent_cache;/api/health确认部署 SHA 即origin/staging头部、jyotishApiok,排除部署落后与引擎故障。personalChartAvailable且源码不得再出现birthTimeDisplayState(profile)、失败重试一次且清理定时器、/api/chart必须带 catch 且三种失败原因可辨、两个超时预算有下限断言、hero salutation/question 拆分与 Agent 欢迎语落点、禁止静态标题池复活。tsc --noEmit、改动文件 ESLint、next build均通过。未验证
没有在浏览器里看过修好后的首页——本机无 Python 引擎与模型密钥,起不了完整栈。卡片从 pending 到 ready 的观感、一次重试是否足够、hero 换行后的排版,需要本 PR 合入 staging 发布后确认。已记入
docs/BUG_HISTORY.mdBUG-267。4d1a77be9etoa12f57970bPull request closed