Files
MemRelay/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 23-35-55 UTC [c4cca0c542].md
T
memrelay 1a556222f4 create: Checkpoint 2026-10-24 23:35:55 UTC [c4cca0c542]
MemRelay-Operation: checkpoint-save:c2-ff-merge-545945b-20261025
MemRelay-Resource: 9ea6da19-6f25-4d10-aa33-87dd99724469
2026-10-25 07:35:59 +08:00

38 lines
3.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-10-24 23:35:55 UTC [c4cca0c542]
type: checkpoint
permalink: main/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/checkpoint-2026-10-24-23-35-55-utc-c4cca0c542
stable_id: 9ea6da19-6f25-4d10-aa33-87dd99724469
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: c2-ff-merge-545945b-20261025
created_at: '2026-10-24T23:35:55.773648+00:00'
updated_at: '2026-10-24T23:35:55.773648+00:00'
tags:
- handoff
- fix-engine
---
C2(fix/engine)已快进合入主仓库 E:\code\NqiTools 的 master。没有推送,没有删 worktree 或分支,没有改计划文件、git config,没有 --no-verify 或强制操作。没有进入 shell、ui、auth、storage 工作区。
合入前 master 是 7d0f2be9da4be2a12f9c1a89f32b8241700e3095,工作区干净。fix/engine 原头部 ae7bf747db731eb82eb30dce857df168dc3eed32。三点差异只有 jobs.py、router.py、spool.py、client.py、test_core.py、test_engine.py,没有真实口令或 cookie。
在 engine 工作区 git rebase master。client.py 与 spool.py 自动合上:保留 B 组登录/会话/_request/NqiAuthError,以及 C2 的分块重试、VERSION=2.0.0、GRID20 0.02°、GRID50 0.05°、拆分下限 0.005°。jobs.py 与 router.py 有冲突,按双方语义合并,没有整文件选一边。
取舍:保留 C1 的 snapshot/save/_load/create/list_jobs/delete、ids.txt、job.json 原子写、启动时把 running/paused/queued/creating 标成已中断、列表不整份读 progress、终态清空内存 grid_ids、load_ids() 读 ids.txt。保留 C2 的 run_download(不再收固定客户端,用 state.get_client())、_pump 的 TaskGroup、批量 commit_many、stopping、running_count 只统计 is_active 且 status==running、resume_marked、place/pause/request_stop、ids.spool 调度。emit 不再使用 subscribers,字段仍留在 dataclass 上。全市续传用 int 判断 journal.completed,字符串编号也兼容。run_download 在 save() 之后若内存 grid_ids 已空,先 load_ids();内存仍有编号时不用空的 ids.txt 覆盖。failedTiles 加载时合并 job.json 与 ids.spool.meta,不清掉 spool 文件。router 保留 C1 的 meta(含 defaultOutputDir)、settings 校验、create_job、DELETE /jobs/{id},删掉 /file 和 SSE /events;保留 C2 的 _spawn、fill_slots、暂停/继续/取消、GET /api/download/active。journal.commit_many 仍是 C1:一批只 fsync 一次。文件占用和磁盘满继续抛中文 NqiError,未知异常才用「下载失败,详情见日志」。
rebase 改写了 fix/engine,旧 66148ec/5e89803/6db8541/ae7bf74 不再是分支头。新提交:617c873、c8ce127、c2f3620、545945b。
主仓库 git merge --ff-only fix/engine 成功,没有 merge commit。master 与 fix/engine 都是 545945b543cc1f6b3c22d7140f1de8261a96fbcc。工作区干净。
验证:engine 工作区与主仓库 backend 都用主仓库 backend\.venv\Scripts\python.exe -m pytest -q -p no:cacheprovider,import app 分别指向对应目录,各 82 passed(仅 Starlette/httpx 弃用警告)。主仓库 desktop 的 npm run build 通过(vue-tsc 与 vite build,仅有原有 chunk 体积警告)。
其他分支头部未动:fix/auth e0b0d94,fix/shell 086c077ce6f5e810ee0759b2aaa12080bac783e9,fix/ui 5173db2752e1f514772be74747cbb7b5fba4efc4,fix/storage 7d0f2be9da4be2a12f9c1a89f32b8241700e3095。
下一步:合并顺序剩 D(fix/ui)、A(fix/shell)。不要进入、不要 rebase、不要碰它们的文件,直到对应组完成。不要跑 tauri dev,不要连真实 data 目录起后台。下载测试必须用 base_url http://127.0.0.1。没有远端,不要推送。
给下个会话:master 应是干净的 545945b543cc1f6b3c22d7140f1de8261a96fbcc。fix/engine 已与 master 指向同一提交,旧 ae7bf74 不是分支头。