diff --git a/README.en.md b/README.en.md index 64b3d49..4d2b98c 100644 --- a/README.en.md +++ b/README.en.md @@ -314,6 +314,32 @@ This patch focuses on **production readiness + truthful status sync**, while pre > Detailed notes: `docs/UPDATE_REPORT_2026-03-04_P0_P1.md` +### G) 2026-03-05 Stability Fixes & Mobile Optimization (New) + +This update covers 8 commits, focusing on "frontend loading fixes + async image generation + mobile UX": + +1. **Frontend loading fixes** + - Fixed CDN caching 404 responses causing page load failure (long-cache now only for 2xx) + - Fixed stray `else` block in `fetchStatus()` causing JS syntax error + +2. **Async image generation** + - Room background generation now runs as a background task + frontend polling, avoiding Cloudflare 524 timeout + - New `GET /assets/generate-rpg-background/poll` endpoint + - Frontend shows real-time generation progress + +3. **Mobile sidebar optimization** + - Added backdrop overlay; tap to close drawer + - Body scroll lock when drawer is open, scroll position restored on close + - Drawer moves completely off-screen when closed (`right: -100vw`) + - Adapted `100dvh` + `overscroll-behavior: contain` + +4. **Join Key expiration & concurrency control** + - Key-level `expiresAt` expiration support + - `maxConcurrent` to control per-key concurrent online limit + - `join-keys.json` added to `.gitignore` (runtime data excluded from repo) + +> Detailed notes: `docs/UPDATE_REPORT_2026-03-05.md` + ## Project structure (simplified) ```text diff --git a/README.ja.md b/README.ja.md index 66e61d8..a3d2876 100644 --- a/README.ja.md +++ b/README.ja.md @@ -314,6 +314,32 @@ Agent はステータスを能動的に更新することを推奨: > 詳細は `docs/UPDATE_REPORT_2026-03-04_P0_P1.md` を参照してください。 +### G) 2026-03-05 安定性修正・モバイル最適化(新規) + +本アップデートは 8 コミットにわたり、「フロントエンド読み込み修正 + 画像生成の非同期化 + モバイル UX」に注力しています: + +1. **フロントエンド読み込み修正** + - CDN が 404 レスポンスをキャッシュしてページ読み込みが失敗する問題を修正(長期キャッシュは 2xx のみに適用) + - `fetchStatus()` 内の不要な `else` ブロックによる JS 構文エラーを修正 + +2. **画像生成の非同期化** + - ルーム背景生成をバックグラウンドタスク + フロントエンドポーリング方式に変更、Cloudflare 524 タイムアウトを回避 + - 新規 `GET /assets/generate-rpg-background/poll` エンドポイント追加 + - フロントエンドにリアルタイム生成進捗を表示 + +3. **モバイルサイドバー最適化** + - バックドロップオーバーレイ追加:タップで drawer を閉じる + - drawer 展開時に body スクロールをロック、閉じた際にスクロール位置を復元 + - 閉じた drawer を完全に画面外に移動(`right: -100vw`) + - `100dvh` + `overscroll-behavior: contain` に対応 + +4. **Join Key 有効期限・同時接続制御** + - Key レベルの `expiresAt` 有効期限をサポート + - `maxConcurrent` で Key ごとの同時接続数を制御 + - `join-keys.json` を `.gitignore` に追加(ランタイムデータをリポジトリから除外) + +> 詳細は `docs/UPDATE_REPORT_2026-03-05.md` を参照してください。 + ## プロジェクト構成(簡易) ```text