fix(web): render AwoooP index directly
Some checks are pending
CD Pipeline / post-deploy-checks (push) Blocked by required conditions
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / tests (push) Successful in 1m12s
CD Pipeline / build-and-deploy (push) Successful in 3m36s

This commit is contained in:
OG T
2026-05-06 12:44:42 +08:00
parent 96ad3a18ee
commit 682c0b9995
5 changed files with 23 additions and 12 deletions

View File

@@ -1,3 +1,17 @@
## 2026-05-06 | AwoooP root route no longer returns Next redirect error shell
**背景**`https://awoooi.wooo.work/zh-TW/awooop` 回傳 `307``/zh-TW/awooop/work-items`,但 response body 是 Next.js `__next_error__` + `NEXT_REDIRECT` shell瀏覽器端可能顯示 `Application error: a client-side exception has occurred``/zh-TW/awooop/work-items` 本身正常 200問題集中在 AwoooP root route redirect。
**本次修補**
- `apps/web/src/app/[locale]/awooop/page.tsx` 不再呼叫 `redirect()`,直接渲染 `work-items` 頁面。
- 主 sidebar 的 AwoooP 入口改連 `/awooop/work-items`,避免使用者先踩到 root redirect route。
- 順手修正 web typecheck 既有阻塞:`execution_success_rate` 可為 `null`,以及 `page-tabs.tsx` 已不再需要 `@ts-expect-error`
**驗證**
- `pnpm --filter @awoooi/web typecheck` 通過。
- `NEXT_PUBLIC_API_URL=https://awoooi.wooo.work pnpm --filter @awoooi/web build` 通過;無 `NEXT_PUBLIC_API_URL` 的本地 build 會依 Hard Rule 失敗。
- 待 CD 部署後以 `/zh-TW/awooop` 直接回 200 驗收。
## 2026-05-06 | GCP Ollama direct endpoint hotfix for alert diagnosis
**背景**:生產 log 顯示 alert path 的 provider order 已是 `ollama_gcp_a → ollama_gcp_b → ollama_local → gemini`,但 GCP-A/GCP-B 經 110 nginx bridge 各跑滿 120s 後回 `504 Gateway Time-out`,因此最後仍 fallback 到 Gemini 並產生成本。110 同時存在 `conf.d/ollama-gcp-proxy.conf`120s`sites-enabled/110-ollama-proxy.conf`300s較早載入的 `conf.d` 實際截斷了 qwen3:14b。