Merge remote-tracking branch 'gitea/main' into codex/github-private-backup-readback-20260627

This commit is contained in:
Your Name
2026-06-27 12:41:01 +08:00
7 changed files with 85 additions and 26 deletions

View File

@@ -1,3 +1,17 @@
## 2026-06-27Governance 正式 hydration 修補:`?tab=` 不再改變 SSR section 順序
**背景**P2-415 i18n 修補完成部署後,正式瀏覽器 console 已無 `controlled_apply_ready` 缺字串,但仍出現 React hydration 類錯誤。追查後發現 `/governance` 是 client page卻用 `searchParams.tab` 在 SSR 階段重排 section`?tab=automation-inventory` 會讓 server / client 初始 section 順序不穩,造成 hydration mismatch。
**完成內容**
- `/zh-TW/governance` 的 section 順序固定為 SLO、治理事件、AI 待辦、Agent 市場、自動化盤點。
- 舊 `?tab=` deep link 只在 client mount 後讀取 `window.location.search`,用於高亮與 `scrollIntoView`,不再改變 SSR 初始 DOM。
**驗證結果**
- `pnpm --filter @awoooi/web typecheck`:通過。
**目前真相邊界**
- 本段只修補 Governance 前端 hydration 穩定度;不改任何 API snapshot、executor、Telegram、runtime gate 或正式寫入權限。
## 2026-06-27P2-415 正式瀏覽器讀回修補controlled apply i18n 缺字串歸零
**背景**P2-415 已推上正式環境並可由正式 API / 前台讀回,但瀏覽器 console 顯示既有 `controlled_apply_ready` 狀態缺少繁中 message key造成 `reportRuntimeReadiness``reportRuntimeDryRun` 兩段出現 `MISSING_MESSAGE` 雜訊。