From 2f1cc4b640a5dd3bdcf1c7a95c01d462830867d6 Mon Sep 17 00:00:00 2001 From: csh Date: Mon, 13 Jul 2026 16:06:36 +0800 Subject: [PATCH] :memo: docs(progress): finish async executor cancellation plan --- memory-bank/progress.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/memory-bank/progress.md b/memory-bank/progress.md index b835708..cf4dafd 100644 --- a/memory-bank/progress.md +++ b/memory-bank/progress.md @@ -2,6 +2,8 @@ ## Current Focus +- 已完成 `AsyncExecutor` 协作式取消重构;任务句柄稳定持有结果,按实例取消, + 排队任务取消后不执行,运行中任务通过 `std::stop_token` 退出 - 已修复 LSP UTF-16 位置到 UTF-8 字节偏移和 Tree-sitter 点位的转换, 中文与 emoji 增量编辑使用一致坐标 - 已完成参数解析与启动错误处理重构;CLI 参数严格校验,日志默认固定到 @@ -26,6 +28,12 @@ - LSP 测试脚本、VSCode 和 Vim 已移除废弃的日志输出选择参数 - 文本坐标转换新增 ASCII、中文、emoji、跨行、越界和无效 UTF-8 回归测试;`test_provider` 与 LSP 传输验证通过 +- scheduler 使用 current/active 双索引准确处理重复 ID;`WaitAll` 覆盖登记到 + Taskflow 入队之间的窗口,取消不在状态锁内触发 stop callback +- 系统库、workspace 加载、文件索引和 workspace folder 枚举已传递 + `std::stop_token`,并在文件边界检查取消 +- scheduler 新增 13 个生命周期与并发回归用例;`test_scheduler`、 + `test_provider`、`tsl-server` 构建和 LSP 传输冒烟验证通过 ## Next Steps @@ -46,13 +54,15 @@ 会导致脚本类 AST / symbol / semantic CTest 失败 - 系统 CMake 4.4 的 `import std` 实验门值尚未适配;本次使用 CMake 4.3.4 完成构建验证 +- Clang 22 在 C++ Modules 全量重编译期间曾于 `definitions_test.cppm` 出现一次 + 前端崩溃;相同 `-j1` 增量重试成功,未产生源码诊断 - `vscode/bin/tsl-server` 当前是未拉取的 Git LFS 指针,根目录 LSP 冒烟脚本 只能完成语法与参数静态验证 ## Workflow State -phase: planning +phase: done spec: docs/superpowers/specs/2026-07-12-async-executor-cancellation-design.md plan: docs/superpowers/plans/2026-07-12-async-executor-cancellation.md executor: executing-plans @@ -66,4 +76,5 @@ constraints: karpathy-guidelines,.agents,AGENT_RULES - [x] `2026-05-24-conan-dependency-upgrade.md` done: known-failures:test_ast_script,test_symbol_script,test_semantic_script - [x] `2026-07-11-args-parser-startup-errors.md` done - [x] `2026-07-12-text-coordinates-utf16.md` done +- [x] `2026-07-12-async-executor-cancellation.md` done