11 Commits

Author SHA1 Message Date
ymq
7b7322dbfe fix(config): 恢复 i18n 链路 + session 时长 + 清 app/__init__.py
独立审查实测发现三个回归(均由 702f274 入口回归引起):

1【阻断】/i18n_getmsgs 500
   702f274 把 startswiths 的 i18n 条目换成了 /healthz,而 bricks 前端
   默认请求 /i18n_getmsgs(i18n.js:19)→ 500,界面文案/语言切换全受影响。
   实测 further:ahserver.globalEnv.i18n() 取 params_kw.lang,而前端传
   language → startswiths 映射本身就不可能工作。
   修复:wwwroot 放标准资源 i18n_getmsgs.dspy(按 language 读
   wwwroot/i18n/<lang>/i18n.json),startswiths 只保留 /healthz。

2【重要】会话时长回落到框架默认 120 秒
   702f274 把 config 写成 ahserver 不认识的 website.session{timeout,...},
   而 ahserver/auth_api.py 读的是 website.session_max_time(默认 120)。
   实测:登录后空闲 135s 再请求 → 401。原配置 28800s。
   修复:补回 session_max_time=28800、session_reissue_time=7200。

3【重要】app/__init__.py 仍 import 5 个已归档中间件
   每次启动 5 条 warning,且 __all__ 宣称导出的符号实测 ImportError。
   修复:清空为纯包标记;顺带移除死配置 http_semantics(新入口无
   ahapp_built 钩子,该块不会被读,且本身是已删中间件的开关)。

实测(重启后):
  /i18n_getmsgs?language=zh 200 | /healthz 200 | /index.ui 200 | login.ui 200
  空口令登录被拒(业务错误信封)| admin123 登录 200 + cookie
  带 cookie 访问受保护端点 200 | 匿名 401
2026-10-28 17:06:25 +08:00
agent.develop
aaba05a100 feat: 侧边栏收敛两大入口——创建游戏/展示+Play,模块菜单收进hub 2026-08-30 21:32:32 +08:00
pipeline-agent
561cdc8eb8 feat: 主菜单游戏工作台指向bricks原生workbench.ui 2026-08-30 20:02:58 +08:00
pipeline-agent
e69ef4fde1 feat: 主菜单加游戏工作台入口 2026-08-30 14:16:11 +08:00
pipeline-agent
075de0c0eb fix: 菜单script单引号被shell吞掉导致AsyncFunction语法错——补回引号 2026-08-30 09:29:26 +08:00
pipeline-agent
4404b88467 feat: 主菜单加4新模块入口(实时演示/游戏展示/拖拽编程/运行时) 2026-08-30 09:18:05 +08:00
pipeline-agent
455f86d440 feat: 集成4新模块——build.sh 模块清单、config modules、app入口挂载4个load_*、恢复一键部署build.sh、index.ui真实widget 2026-08-29 23:13:49 +08:00
pipeline-agent
87ca62ea9f refactor: game 模块拆分至独立仓库 scense_game 2026-08-29 21:22:13 +08:00
agent.develop
f337333432 approve: 元景 W-08 游戏展示模块开发 2026-08-29 17:38:48 +08:00
agent.develop
e46bc16173 fix(scense): 修复元景初始迭代 4 个部署/访问 Bug - ahserver 规范入口、config processors/indexes、build.sh 端口门禁、fix_scense_access 重启兜底、init_admin_user RBAC 幂等初始化 2026-08-29 09:49:11 +08:00
agent.develop
93dadab835 feat(scense): scense 初始化提交(元景项目-初始迭代,开发产线产出) 2026-08-28 13:34:54 +08:00