From c5671c93210a27951aa31b777c662b2ea297ddc2 Mon Sep 17 00:00:00 2001 From: MemRelay Date: Sun, 25 Oct 2026 06:49:12 +0800 Subject: [PATCH] create: Checkpoint 2026-10-24 22:49:08 UTC [3f05305d0f] MemRelay-Operation: checkpoint-save:nqitools-step1-prep-20261025-6b84a5e MemRelay-Resource: aa8c38df-6e91-4ee7-88cb-306de2289bc7 --- ...nt 2026-10-24 22-49-08 UTC [3f05305d0f].md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 22-49-08 UTC [3f05305d0f].md diff --git a/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 22-49-08 UTC [3f05305d0f].md b/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 22-49-08 UTC [3f05305d0f].md new file mode 100644 index 0000000..1bb4529 --- /dev/null +++ b/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 22-49-08 UTC [3f05305d0f].md @@ -0,0 +1,34 @@ +--- +title: Checkpoint 2026-10-24 22:49:08 UTC [3f05305d0f] +type: checkpoint +permalink: main/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/checkpoint-2026-10-24-22-49-08-utc-3f05305d0f +stable_id: aa8c38df-6e91-4ee7-88cb-306de2289bc7 +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: nqitools-step1-prep-20261025-6b84a5e +created_at: '2026-10-24T22:49:08.634541+00:00' +updated_at: '2026-10-24T22:49:08.634541+00:00' +tags: +- handoff +- repair-plan +--- + +主分支准备(修复计划第一步)已完成,停在 master。没有远端,没有推送。五个功能分支还没有开始改代码。 + +提交: +- d96f430a7d9b7ab7bf8950d4d713764b7f3f6fae fix: 修复验证码点击导致的类型检查失败 +- 6b84a5e4069cdd55b39dc0c4baa63351535ece5f refactor: 预留并行修复所需的共享接口 + +验证:共享接口提交前,backend\.venv\Scripts\python.exe -m pytest -q -p no:cacheprovider 为 25 passed;desktop 目录 npm run build 通过(vue-tsc 与 vite build,仅有 chunk 体积警告)。验证码修复提交前 npm run build 也已通过。已结束 4 组(共 8 个)命令行含 uvicorn app.main:app 的 python,之后再查为零。 + +共享接口要点:NqiAuthError;_request 按方法名走 client.get/post(不是 client.request,以便现有测试替换 get/post);_signed_get/_signed_post 经过 _request;_json_or_error 的 401/403 抛 NqiAuthError。normalize_id 在 app/shared/ids.py。DOWNLOAD_ROOT:有 NQI_DOWNLOAD_DIR 就直接用,否则系统下载目录或主目录 Downloads 再拼 NqiToolsDownload,导入时不建目录。state 有 expired、get_client、on_session_expired;require_client 在 expired 时 401。suspend_all 只把内存里 running/queued 标成 paused 并写 paused_by,不等待在途请求;resume_marked 把该标记的暂停任务放回 queued。已删 hydrate 及 fill_slots 对它的调用。commit_many 循环 write_rows。load_ids 返回 grid_ids。测试 conftest 在导入 app 之前把 NQI_DATA_DIR 和 NQI_DOWNLOAD_DIR 指到 Temp/pytest-*。 + +偏离:test_only_the_task_limit_runs 不再调用 hydrate,改为断言清空内存后不自动装回任务。list_jobs 读磁盘时的手写字典还没有 pausedBy/stopping/failedTiles,save/_load 也还没持久化这三个字段,留给 C1。 + +下一步:五个 Agent 只在各自 worktree 开工:fix/shell、fix/auth、fix/storage、fix/engine、fix/ui,目录在 E:\code\NqiTools\Temp\worktrees\。不要动 Temp 里原有抓包分析文件。不要跑 npm run tauri dev,不要启动连真实数据目录的后台。合并顺序仍是 B、C1、C2、D、A。 + +给下个会话:主仓库工作区应该是干净的 master,指向 6b84a5e。Python 用主仓库 backend\.venv,先确认 import 的是 worktree 里的 app。提交信息用 Temp 下 UTF-8 文件再 git commit -F。不要改 git config,不要 push,不要提交 data、Temp、密钥。 \ No newline at end of file