fix(home): request the daily card on the same condition that renders it #37
Open
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: root:staging
root:main
root:staging
root:codex/staging-skill-style-present-20260820
root:codex/fix-sidebar-contract-ci-20260820
root:codex/rectification-p0-p1-20260820
root:codex/fix-report-scroll-product-admin-20260818
root:codex/ui-optimize-staging-20260817
root:codex/remove-admin-step-up-20260816
root:codex/fix-rectification-focus-baseline
root:codex/pr8-local-gate-closure
root:codex/pr8-evals-observability
root:codex/pr7-product-domain-registry
root:codex/pr6-report-document-v2
root:codex/pr5-report-evidence-bundle-v2
root:codex/pr4-rectification-event-contract-v2
root:codex/pr3-rectification-v10
root:codex/pr2-final-response
root:codex/pr1-skill-registry
root:codex/fix-rectification-home-new-session-20260812
root:codex/fix-rectification-turn-projection-20260812
root:codex/rectification-same-turn-confirm-20260812
root:codex/fix-rectification-current-turn-binding-20260812
root:codex/fix-rectification-history-hydration-20260812
root:codex/rectification-activity-birth-context-20260812
root:codex/fix-rectification-free-settlement-20260811
root:codex/fix-rectification-case-context-20260811
root:codex/fix-rectification-session-model-20260811
root:codex/fix-feature-flag-admin-runtime-policy-20260811
root:codex/staging-gate-repair-20260811
root:codex/admin-account-reset
root:codex/agentic-consultation-runtime
root:codex/production-selfhosted-migration
root:docs/correct-report-smoke
root:docs/close-staging-release-acceptance
root:fix/staging-admin-verification-host
root:fix/staging-public-verification-race
root:fix/staging-gate-build-timeout
root:fix/staging-gate-retry-and-admin-audit
root:fix/staging-gate-checkout-retry
root:docs/close-staging-controller-incident
root:fix/staging-gate-attested-controller
root:fix/staging-controller-fetch-timeout
root:docs/personal-report-staging-acceptance
root:fix/staging-ssh-secret-and-env-owner
root:docs/record-staging-env-owner-drift
root:docs/record-staging-host-key-rotation
root:feat/one-way-skill-personal-report
root:codex/fix-staging-artifact-resolution-20260805
root:codex/fix-vendored-artifact-inputs-20260805
root:codex/run-vendored-artifact-uploader-20260805
root:codex/fix-local-artifact-inputs-20260805
root:codex/internal-gitea-artifact-action-20260805
root:codex/use-gitea-artifact-action-20260805
root:codex/fix-gitea-artifact-upload-20260805
root:codex/fix-gitea-manifest-auth-20260805
root:codex/integrate-github-main-gitea-20260805
root:revert/staging-from-main
root:delivery/payment-package-epay
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.
Delete Branch "codex/fix-daily-starlanguage-guard-20260818"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
现象
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。4d1a77be9etoa12f57970bView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.