合并主分支
Project CI / Frontend tests (pull_request) Failing after 2m15s
Project CI / Repository checks (pull_request) Failing after 2m21s
Project CI / Backend tests (pull_request) Successful in 3m45s
Project CI / Native shell tests (pull_request) Failing after 3m11s

解决合并冲突
This commit is contained in:
2026-08-19 17:24:54 +08:00
2 changed files with 9 additions and 3 deletions
@@ -14280,7 +14280,7 @@
- AGC 登录页提供 `release``https://www.genarrative.world`)、`dev``https://dev.genarrative.world`)和 `custom` 三种服务器选择;选择持久化在客户端本地存储,登录、验证码、刷新和原生平台会话安装统一使用当前选择。
- custom 只接受纯 HTTPS origin`localhost` / loopback 的 HTTP 也允许用于本机服务,禁止把路径、查询参数、凭据或非本机明文 HTTP 地址作为服务器地址。
- Tauri release 的 HTTP capability scope 必须覆盖 release、dev、custom HTTPS 以及 loopback HTTP,否则前端选择虽能保存,plugin-http 仍会在请求层拒绝登录。
- Tauri release 的 HTTP capability scope 必须覆盖 release、dev、custom HTTPS 以及 loopback HTTP`check:native-shells` 以该精确 allowlist 作为源码门禁;否则前端选择虽能保存,plugin-http 仍会在请求层拒绝登录。
- 直连 Codex 的本机 External Editor API Key 必须按服务器 origin 独立存储。登录服务器切换后禁止复用另一 origin 的历史 Key 或 base URL;否则会出现登录走新服务器、平台资源生成仍请求旧服务器的漂移。
## 2026-08-18 AGC 登录网络错误与 Web Build 门禁对齐
+8 -2
View File
@@ -2441,10 +2441,16 @@ function assertAiGameCreatorShellUserDevBoundary() {
if (
!httpPermission ||
JSON.stringify(httpPermission.allow ?? []) !==
JSON.stringify([{ url: 'https://dev.genarrative.world/api/*' }])
JSON.stringify([
{ url: 'https://dev.genarrative.world/api/*' },
{ url: 'https://www.genarrative.world/api/*' },
{ url: 'https://*/api/*' },
{ url: 'http://localhost:*/*' },
{ url: 'http://127.0.0.1:*/*' },
])
) {
throw new Error(
'AI game creator native HTTP scope must stay limited to the dev API',
'AI game creator native HTTP scope must match the release, dev, custom HTTPS, and loopback API boundary',
);
}