diff --git a/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 23-23-41 UTC [9c0a943701].md b/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 23-23-41 UTC [9c0a943701].md new file mode 100644 index 0000000..374b79a --- /dev/null +++ b/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 23-23-41 UTC [9c0a943701].md @@ -0,0 +1,34 @@ +--- +title: Checkpoint 2026-10-24 23:23:41 UTC [9c0a943701] +type: checkpoint +permalink: main/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/checkpoint-2026-10-24-23-23-41-utc-9c0a943701 +stable_id: 795f68f0-ecfd-4ad2-a985-ecfa43b0305a +scope: project +memory_type: checkpoint +project_id: 46777563-9cef-472c-b0c8-31ee36f2ea1c +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: merge-fix-storage-2026-10-25-7d0f2be +created_at: '2026-10-24T23:23:41.428059+00:00' +updated_at: '2026-10-24T23:23:41.428059+00:00' +tags: +- handoff +- fix-storage +--- + +C1(fix/storage)已快进合入主仓库 E:\code\NqiTools 的 master。没有推送,没有删 worktree 或分支,没有改计划文件、git config,没有 --no-verify 或强制操作。engine、shell、ui、auth 工作区没有进入。 + +合入前 master 是 e0b0d94466009650c434775388c01e139f2bb7cd(已含 fix/auth),工作区干净。storage 工作区原头部 0d743b6c63fe70c4477d1cf9f8f11454229e0e1b。差异只有 ids.py、jobs.py、journal.py、router.py、tests/test_storage.py,没有真实口令或 cookie。与 auth 改动的文件不重叠。 + +git rebase master 成功,无冲突。变基后测试里 GET /api/download/meta 返回 400:登录侧 TrustedHost 只允许 127.0.0.1 和 localhost,TestClient 默认主机是 testserver。只把该测试改成 base_url="http://127.0.0.1",与 test_auth.py 一致;主机限制和存储接口都保留。额外提交 7d0f2be test: 下载接口测试改用本机地址。 + +主仓库 git merge --ff-only fix/storage 成功,没有 merge commit。master 新 HEAD 与 fix/storage 都是 7d0f2be9da4be2a12f9c1a89f32b8241700e3095。工作区干净。 + +验证:storage 工作区与主仓库 backend 都用主仓库 backend\.venv\Scripts\python.exe -m pytest -q -p no:cacheprovider,各 63 passed(仅有 Starlette/httpx 弃用警告)。导入的 app 分别在对应工作区和主仓库 backend。主仓库 desktop 的 npm run build 通过(vue-tsc 与 vite build,仅有原有 chunk 体积警告)。 + +其他分支头部未动:fix/auth e0b0d94,fix/engine ae7bf747db731eb82eb30dce857df168dc3eed32,fix/shell 086c077ce6f5e810ee0759b2aaa12080bac783e9,fix/ui 5173db2752e1f514772be74747cbb7b5fba4efc4。fix/storage 因 rebase 改写,旧 0d743b6 不再是分支头。 + +下一步:合并顺序剩 C2(fix/engine)、D(fix/ui)、A(fix/shell)。engine 和 shell 可能仍在改,不要进入、不要 rebase、不要碰它们的文件,直到对应组完成。不要跑 tauri dev,不要连真实 data 目录起后台。Python 仍用主仓库 backend\.venv,先确认 import 的是当前 worktree 里的 app。 + +给下个会话:master 应是干净的 7d0f2be9da4be2a12f9c1a89f32b8241700e3095。下载测试必须用 base_url http://127.0.0.1,否则 TrustedHost 会返回 400。没有远端,不要推送。 \ No newline at end of file