Repository navigation
release(sync): 将 main 的历史发布资料同步回 preview - #1965
Merged
Merged
Conversation
docs(release): prepare Lithe v0.6.1
* 统一 Problems 面板样式、图标与源码预览 (#1231) * 统一 Problems 面板样式、图标与源码预览 * 修复 Agent 活动面板测试对桌面键盘焦点的依赖 * 修复活动面板测试因窗口对象地址复用产生的误判 * 修复 Problems 审核反馈中的标签范围、预览动作和本地化问题 * 修复 Run 加载就绪竞态并显式控制快照回归测试 * fix(settings): 设置对话框入场结束后清理 filter,避免整层模糊 ([#1229](#1229)) (#1236) Windows 设置对话框的入场动画会让 motion 把插值终值保留成常驻 inline 样式 `filter: blur(0px)`,整个弹窗因此一直处在滤镜合成层里;该层不做子像素抗锯齿 - utils/motion.ts:新增 overlayEntranceSelfClearing,保留 blur(2px)→blur(0px) 入场,用 transitionEnd 在动画结束后把 filter 覆盖成 none - ui/dialog.tsx:新增 clearEntranceFilter(默认 false,其它对话框行为不变), 减少动效分支直接使用 filter: none,不依赖 transitionEnd - settings-dialog.tsx:设置对话框启用 clearEntranceFilter - 功能矩阵 application-settings:补充 dialog.tsx 与 motion.ts 证据、决策说明,以及 125%/150% 缩放下的实机验证方式 没有在报障机器上验证过,若仍然整层发虚,需要回到显示缩放比与 WebView2 缩放路径继续排查 * fix(macos): 统一 Git Log Worktrees 共享样式 (#1222) * fix(macos): unify Git Log Worktrees shared styles * fix(macos): preserve worktree selection at keyboard bounds Skip duplicate selection callbacks and recompute document height when row counts change at the same width. Cover both review findings with native regression tests. * test(macos): stabilize agent activity popup lifecycle * test(run): explicitly release deferred workspace snapshots * fix(agent): allow HTTP endpoints for imported providers (#1251) (#1253) * 修复 Codex 已是最新版时仍显示更新按钮 (#1217) * 修复 Codex 已是最新版时仍显示更新按钮 * 修复 Agent 状态契约测试对可选更新字段的校验 * 修复 Codex 更新探测输入兼容性并保留旧版本升级指引 * 修复 Agent 活动菜单测试的布局同步与弹窗归属判断 * 固定 Run 入口测试的快照发布顺序并清理测试工作区 * 为 Windows 原生冲突跳过集成测试设置独立有界预算 * 限定 Homebrew 更新状态并按界面语言显示 Agent 预检文案 * fix(agent): align Codex update checks with latest release * test(macos): retain popup dismissal and layout readiness gates * test(windows): await installer descendant termination * test(windows): return success after observed process exit --------- Co-authored-by: Yao Jingxi <23722032@bjtu.edu.cn> * Merge pull request #1220 from 1lck/codex/debug-console-parity 完善 Debug 面板、JSON 变量查看与 JVM 性能监控 * fix(editor): publish undo content changes to the save pipeline (#1235) The document pipeline subscribed to editor.onDidChangeModelContent and read EditorModelSource.lastChange. On the undo/redo path Monaco delivers the editor-level event before the source's own model subscription updates lastChange, so the pipeline republished the pre-undo document. The store saw identical content, kept the buffer clean, and both auto-save and manual save skipped the write - the file on disk kept the undone edits while the editor showed them reverted, which the Git status panel then reported as pending changes (#1129). Subscribe the pipeline to the model instead, registered after the source: model listeners run in registration order, so lastChange is always fresh. Add regression tests covering the undo bookkeeping (ancestor alternativeVersionId) at the model-source level. Co-authored-by: Lichenkang <2188718831@qq.com> * feat(windows): support Maven Daemon (mvnd) (#897) * feat(windows): support Maven Daemon (mvnd) Relates to #889 * feat(java): support mvnd on Windows and macOS Resolve explicit mvnd installations and automatic candidates consistently for execution and Maven import. Read embedded Maven settings and versions, support macOS aliases and cache invalidation, and cover both platforms with regression fixtures and tests. Refs #889. --------- Co-authored-by: Yao Jingxi <23722032@bjtu.edu.cn> * feat(windows): 编辑器字体新增内置 JetBrains Mono (#1254) 随包分发 @fontsource/jetbrains-mono(styles.css 引入 400/500/600/700 四个字重);字体选择器的内置候选列表与字体 store 的无桥回退目录加入 JetBrains Mono,可在设置 → 编辑器中选择;默认等宽字体仍是 Geist Mono,未做任何默认值迁移;同步更新编辑器字体能力记录的 Windows 说明与验收项。 * fix: AutoBuild 安装为 Lithe-Dev 并隔离正式版设置与缓存 (#1255) * fix: isolate Lithe-Dev identity and runtime state from stable * fix: import Stable settings once into isolated Dev profiles * fix: preserve native profile settings and independent Dev startup * test: compare Maven settings as native paths on Windows * ci: route heavy macOS validation to shared Mac mini runners (#1258) * chore(ci): remove the in-repository PR review workflow (#1265) PR reviews now run in the external Lithe review bot. The workflow fired on every PR comment (about 40 skipped runs a day) and duplicated the bot's response to @lithe review. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * fix(macos): 编辑器字体等宽判断改为只看实测字宽 (#1263) * fix(macos): measure editor font advances instead of trusting the monospace trait Lantinghei TC declares the monoSpace symbolic trait while its Latin glyphs are proportional, so the editor font picker offered it as a programming font. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(matrix): record measured monospace detection for editor fonts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * ci: macOS CI 按空闲池动态分配 runner,Mac mini 增量编译 (#1262) * ci: route macOS lanes to the free pool and build incrementally on Mac minis - Choose the Mac mini or hosted pool per lane in the classify job from the repository's active jobs; pushes and manual runs stay on the Mac minis, and API failures fall back to the previous fixed routing. - Keep each Mac mini runner's .build, rust/target, and verified download stores between jobs (checkout clean: false plus a scoped git clean), discard them on toolchain changes or size/disk limits, and skip GitHub cache there. - Run the Swift-linked Rust Core bridge checks in the Swift tests job on its existing build; the Rust Core job now runs only Rust checks. - Classify both endpoints of renames instead of selecting every lane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: keep Swift tests on hosted runners until Mac minis keep a display session Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: prefer Mac mini runners that keep the matching build configuration Debug lanes (Swift, plugin, Rust Core tests) prefer runners labeled lithe-mac-mini-debug and packaging prefers lithe-mac-mini-release, so each runner's kept build outputs match its next job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(ci): disable automatic gc in the classifier fixture repository Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * ci: run only post-merge-observable checks after merge and pin the Xcode SDK (#1268) - Pushes to preview build only the universal package when the merge touched packaged content; Windows CI no longer runs on preview pushes. - Pull requests from preview into main rerun no lane; macOS CI requires that the same commit already passed as a preview push. - Pushes to main trigger no CI (Plugin, Database, matrix, issue automation). - Self-hosted runners pin SDKROOT to the selected Xcode's SDK: the Mac minis' Command Line Tools SDK 27 broke linking the x86_64 slice. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * fix(windows): specify bootstrap plugin configuration type (#1270) * chore(ci): move issue claiming to the lithe-bot-console bot (#1269) The "Lithe issue claim" workflow ran on every issue and pull request comment (about 30 runs a day, most of them skipped) plus a daily schedule. The self-hosted lithe-code-review App now handles /assign, /unassign and the daily stale-claim sweep with the same rules and comment markers. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: arkleselect <166632698+arkleselect@users.noreply.github.com> Co-authored-by: haloneko <bitbad@qq.com> Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn> Co-authored-by: Y.Hill <3046829330@qq.com> Co-authored-by: Nick Johnson <63852938+NickJohnson868@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(agent): 支持回复中补充消息并明确当前项目范围 (#1219) * feat(agent): 支持回复中补充消息并明确当前项目范围 * fix(agent): 修复补充命令完成与待配置续轮取消 * Merge pull request #1274 from 1lck/chore/move-issue-triage-to-bot chore(ci): Issue 标签和表单检查迁到 Bot,删除剩余 Issue workflow * ci: cancel the CI of closed pull requests; agents open draft pull requests (#1275) - A pull_request_target workflow cancels pull request runs that are still queued or running when the pull request is merged or closed, including admin merges that skip the checks. It checks out no code; post-merge push runs are left alone. - AGENTS.md: open pull requests as drafts, mark them ready once verified locally, and batch pushes afterwards. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * fix(agent): 清除模式切换后的过期 Auto 提示 (#1227) * fix(agent): 清除模式切换后的过期 Auto 提示 * fix(agent): 防止暂存降级警告覆盖更新的通知 * test(macos): macOS 27 上只跳过 WindowServer 透明度检查,Swift tests 回到 Mac mini (#1279) * docs(ci): record macOS 27 as the reason Swift tests stay on hosted runners The Mac mini failure of DesktopIsolationTests comes from macOS 27, where CGWindowListCopyWindowInfo returns NULL; Screen Recording and an unlocked console were both verified and do not change it. Tracked in #1278. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(macos): skip only the WindowServer alpha check where macOS 27 hides it On macOS 27 CGWindowListCopyWindowInfo returns NULL, so the desktop isolation test failed on the Mac mini runners and kept the Swift lane on hosted runners. Split it: ordering and drawing always run; the alpha check runs only when the WindowServer window list is available and is reported as skipped otherwise (#1278). Changes to the isolation code keep that run's Swift lane on hosted macOS 26 (classifier swift_hosted, selector LITHE_HOSTED_ONLY_LANES), and the Swift lane otherwise returns to the Mac minis. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: muchen <145200703+Mucheen@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs(release): prepare Lithe v0.6.2
* feat(java): 支持 Gradle 项目导入设置 (#1302) * feat(java): Rust 内核支持显式 Gradle 导入设置 (#9) 新增 Gradle 导入设置链路的地基。Core 侧新增 JdtGradleConfiguration 与 JdtSettings.gradle;java_settings 在存在 Gradle 上下文时下发 java.import.gradle.enabled,并在工作区带 wrapper 时固定 java.import.gradle.wrapper.enabled;java_configuration_for_section 同步补齐对应 section 分支。StartServerRequest 新增可选 java_gradle 字段,RuntimeSession 在 会话内保存该配置,初始化选项与工作区配置查询复用同一来源。 * feat(windows): 探测 Gradle 上下文并补齐构建文件指纹 (#9) lsp.rs 探测工作区根是否声明 Gradle 构建文件及是否自带 wrapper,产出 JavaLspGradle 透传给核心;jdt_workspace.rs 的构建文件指纹补齐 settings.gradle(.kts)、gradle.properties 与 gradlew(.bat)。 * feat(windows): TS 侧透传 Gradle 导入上下文 (#9) java-lsp-host-api 新增 JavaLspGradle 类型与可选 javaGradle 字段; resolve-editor-lsp-launch、lsp-core-adapter、lsp-client 原样转发到 lsp.startServer;补充 TS 单测。本步骤不含业务判断,仅透传。 * chore: 记录 Gradle 导入设置的功能矩阵、契约与笔记 (#9) 新增功能矩阵 java-gradle-project-import;在 rust-core-api 契约中记录 lsp.startServer 的 javaGradle 字段语义;补充本次实现的 Agent Note。 * fix(java): 修复 Gradle 导入改动的编译与矩阵校验失败 (#1302) - engine.rs 与 engine_real_jdt_tests.rs 的 StartServerRequest 测试字面量补齐 java_gradle: None,此前 rustc E0063 导致 lithe-core 测试无法编译 - 功能矩阵条目的 macOS 证据路径改为 1lck 仓库中的实际路径,并按本次实施范围把 macOS 状态标为 missing / not-applicable * fix(java): 按叶子键合并 java.import.gradle,保留调用方 Gradle 选项 (#1302) merge_java_settings 按 java 顶层键覆盖,新增的 import 对象会整体替换调用方声明的 java.import,丢失 offline.enabled、version 等 Lithe 从不猜测的 Gradle 选项。 改为只把 Lithe 拥有的 gradle.enabled 与 gradle.wrapper.enabled 合并进已声明的 import.gradle,并补充回归测试。 * fix(java): 按 Buildship 实际判据识别 Gradle wrapper 并修正文档口径 (#1302) wrapper 判据从 gradlew 脚本改为 gradle/wrapper/gradle-wrapper.properties,与 Buildship 实际依据一致;工作区指纹移除 gradle.properties 与 gradlew,改纳入 wrapper 描述文件,避免 mod 工程每次改版本都冷导入。文档与 Note 明确下发的 enabled/wrapper.enabled 等于 JDT LS 默认值,只作显式声明,不改变导入行为。 Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com --------- Co-authored-by: Lichenkang <2188718831@qq.com> * feat(macos): Agent 任务退出确认改为卡片式弹窗,并自动格式化命令中的 JSON (#1317) * feat(macos): Agent 任务退出确认改为卡片式弹窗,并自动格式化命令中的 JSON - 用 SwiftUI 卡片面板替换原来的 NSAlert:标题区显示进度,信息卡片显示 状态、工作区、已运行时长,工作目录与工作区不同时额外显示目录 - 命令区按 --长选项分行并着色,自动识别命令中合法的 JSON 参数,按原有 key 顺序和转义重新缩进;非法 JSON 和 shell 花括号保持原样 - 命令框随内容增高,最高 240pt,超出后可以上下滚动;文本可选中 - 复制按钮复制未加工的原始命令,复制后短暂显示对勾 - 只有退出流程提供“取消退出”;Esc 和关闭按钮按场景映射为取消或保留 - 新增中英文文案,删除不再使用的旧文案 - 补充格式化器与弹窗视图测试,更新功能矩阵和 Agent Note * fix(macos): 退出确认中的命令保留原有换行和空白,并限制 JSON 缩进规模 - 非 JSON 文本保留原有的换行、缩进、制表符和连续空格,python3 -c 等内联 脚本按实际运行的样子显示;只有空格分隔的 --长选项才换成换行 - JSON 排版增加缩进总预算(20 万字符),深而宽的 JSON 超出预算时原样显示, 避免退出时的模态弹窗卡住主线程 - 补充多行脚本、CRLF、首尾空白和超预算 JSON 的测试,更新 Agent Note * 优化 Git Log 与终端性能并对齐分支弹窗交互和光标 (#1295) * 优化 Git Log 与终端面板的重开和拖动性能 * 修复分支弹窗尺寸反馈并对齐 IDEA 边缘光标 * 修复保留终端的背景环境传递和重开焦点 * 修复保留终端隐藏焦点及外层分隔条命中范围 * 修复保留工具窗口圆角的项目辉光与坐标上下文 * 修复保留工具面板遮挡停靠落点预览 * feat(macos): 设置说明提示、MCP 服务器资源库与欢迎页分支元数据 (#1323) * feat(macos): 设置说明提示、MCP 服务器资源库与欢迎页分支元数据 (#1316) 设置与 Git 回显: - 设置页说明统一收进 ⓘ 按钮(LitheInfoTip),覆盖 Agent、Git、MCP、插件、 运行时、进程终止等页面,并同步侧栏检索词与中英文案 - Git 设置新增“实际使用的 Git”行:打开页面或切换可执行文件后,通过 git.executable 命令回显实际二进制与版本,无需打开仓库 - “获取标签”等继承项不再只显示“继承”,而是解析 remote.<name>.tagOpt / pruneTags / fetch.pruneTags,回显具体会获取的标签 范围与配置来源 - Git 身份、获取策略、运行配置编辑器与 Agent 设置同步采用紧凑说明样式 MCP 服务器资源库: - Rust Core 新增 mcp 模块:解析 Claude JSON 与 Codex TOML、规范化定义哈希、 保格式插入/删除条目;新增 mcp.parseConfiguration / mcp.planWrite 命令 - macOS 新增端口与适配器,按 Agent 读取、原子写入、备份、权限保留;应用层 实现合并、同名冲突、按 Agent 开关、接管所有权与注册账本 - 设置 → MCP 改为两级页面:统一资源库 + 原项目级 Lithe 授权;Lithe 自带 MCP 在授权开启时写入项目的 Claude Code / Codex 配置,关闭时按账本清理 - env/header 默认掩码,错误与日志不回显配置内容 欢迎页: - 最近项目行改为紧凑三行布局(名称、路径、分支),对齐 IDEA 欢迎页密度 - 打开项目时从 .git/HEAD 读取分支(支持 worktree/submodule 的 gitdir 指针 与 detached HEAD),持久化为最近项目元数据,欢迎页无需启动 Git 即可显示 文档与矩阵: - 新增 Agent 笔记:设置页说明提示、MCP 服务器资源库 - 更新 application-settings、onboarding-welcome、ide-mcp-connection、 run-save-toolchain 能力矩阵,新增 mcp-server-library - 补充 Git 展示、MCP 资源库、最近项目分支与协调器测试 * fix(mcp): 修复配置删除、并发写入与 Codex 字段保留问题 - Claude JSON 删除末项时同时移除前导逗号,并在返回计划前重新解析结果, 避免写出非法 JSON;补充首项、中间项、末项与单行/混合换行测试 - Codex TOML 更新改为在原表上只修改 Lithe 建模的 command/args/env/url/ http_headers,保留 bearer_token_env_var、startup_timeout_sec 等未建模 字段、注释以及无法建模的非字符串 env 值 - 配置写入携带计划所依据的磁盘快照,提交前统一复核全部目标;文件被其他 Agent、编辑器或另一 Lithe 实例修改时以 changedOnDisk 拒绝覆盖 - 注销项目级 Lithe 注册时使用注册阶段记录的工作区,修复关闭项目时会话 URL 已清空导致条目残留 - linked worktree 的 .git/info/exclude 解析 commondir,写入 Git 公共目录 而不是 worktrees/<name>/info/exclude - 补充对应 Rust 与 Swift 回归测试,更新 MCP 资源库 Agent Note * fix(mcp): 修复混合行删除、重命名字段丢失与多窗口账本覆盖 - Claude JSON 删除条目时只有目标键前缀全为空白才扩展到行首,避免把同一行 的相邻服务器一起删除;补充“前两项同行、第三项换行”回归测试 - 重命名时以旧条目为底稿:Codex 先把原表(连同注释和未建模字段)迁移到新 名称再应用建模字段;Claude JSON 同样保留未建模键,随后再删除旧名称 - 定义哈希计算对 env/header 排序,写入路径与重新解析路径得到同一哈希,修复 保存后刷新即失去所有权的问题 - 所有权账本改为每次从共享 store 读取、只更新当前文件对应的键,多个窗口 不再用初始化时的旧字典互相覆盖;补充两个模型共享 store 的交错测试 - 更新 MCP 资源库 Agent Note * fix(mcp): 统一 Claude 与 Codex 重命名时的字段合并优先级 - Claude JSON 重命名改为优先以已存在的目标条目为底稿,只有目标不存在时才 使用旧条目,与 Codex 的合并顺序保持一致 - 补充 Claude 重命名保留 alwaysAllow 等未建模字段的回归测试 * fix(mcp): 保留未建模配置并补全项目注册生命周期 - Core 拒绝重复的 env/header 键,避免算出一份哈希却写出另一份定义; Claude 与 Codex 编辑在变量列表清空时只移除字符串键,保留无法建模的 非字符串值;Codex 替换建模值时保留键与值的注释装饰 - 修复 Claude JSON 删除跨多行条目、且下一项紧跟闭合括号时可能误删相邻 条目的问题;Codex 支持删除内联 mcp_servers 表中的条目,编辑未改变 文本时返回 absent 而不是 removed - 项目注册按工作区集合清理,A→B 切换后不会遗留旧项目的 Lithe 条目; Git 排除失败只提示,不回滚账本与注册状态 - 页面保存前校验重复变量名,并按传输方式只提交对应的一组条目,避免 HTTP 定义携带 env 导致写入后立即失去所有权 - 补充 Rust 与 Swift 回归测试,更新 Agent Note 与中英文案 * fix(mcp): 修复传输归一化、重复键与重命名授权边界 - 定义哈希只包含当前传输实际写入的 env/headers,解析到但写盘会丢弃的 多余字段不再造成写入后立即失去所有权;重复键校验同样只看活动传输 - Claude JSON 对象出现重复键时拒绝编辑,避免 serde_json 取末值与偏移 编辑器取首值导致改错条目或账本与磁盘不一致 - 重命名外部条目时把 expectedHash 同时用于新名称写入和旧名称删除, 不再出现只能写入新条目、旧条目无法移除 - Codex 根级内联 mcp_servers 表支持新增与编辑;args 未变化时不重建 数组,保留元素间注释 - 注销项目注册产生冲突时写入资源库错误横幅,关闭授权后仍可见 - 补充 Rust 与 Swift 回归测试,更新 Agent Note * fix(mcp): 按传输方式归一化定义哈希并清理过期警告 - 定义哈希改为 stdio 只含 command/args/env,HTTP/SSE 只含 url/headers; 切换传输后编辑器里隐藏的旧参数不再参与哈希或写入,避免保存后立即 失去所有权 - 页面保存时按传输方式显式清空非活动字段,避免草稿把隐藏参数带进 新定义 - 项目注销成功后清除之前残留的清理冲突横幅 - 补充传输切换与哈希回归测试,更新 Agent Note * fix: preserve MCP configuration round trips and Git boolean semantics Keep the original MCP argv when only environment values change, and preserve blank arguments after explicit text edits. Resolve symlink targets consistently for MCP reads, writes and rollback. Normalize effective pruneTags values through Git while retaining raw configuration edit values. Add real-file and real-Git regressions and update contracts, notes and capability evidence. * fix(mcp): guard edits and ownership with full source versions Keep each editor source snapshot as an independent write precondition, including when another window updates the shared ledger or the desired fields are unchanged. Hash complete raw Claude and Codex entries, including authentication, timeouts, nested values and unknown fields. Preserve modeled hashes for row grouping, require explicit adoption for legacy ownership, protect rename destinations and incomplete entries, and derive ledger hashes from actual planned output. Cover stale editors, per-Agent versions, project cleanup, repeated registration, legacy ownership and empty configuration creation. Update the Core contract, feature matrix and decision note. Validation: 920 Core unit tests and integration tests, 48 focused MCP tests, 54 macOS regressions, 9 Swift bridge tests, C ABI/Git integration, boundary and contract checks passed. * fix(mcp): verify the source version at publish time and honor live ownership The snapshot check and backup run before the atomic replacement, so another Agent, editor or Lithe instance could still save in between and be overwritten. Move the final comparison into FileStorage.replaceData: MacFileStorage publishes through an atomic RENAME_SWAP exchange and verifies the displaced bytes against the planned snapshot, restoring them on mismatch, while new files use RENAME_EXCL so a file created after planning is never replaced. Save during a draft now consults the latest shared ledger for ownership (so taking ownership in the same editor can immediately close that Agent) while still requiring the captured sourceHash, so a newer ledger entry cannot authorize a stale removal. Add regression tests for both interleaving points and update the MCP library Agent note. * fix(mcp): keep the displaced snapshot recoverable when publish rolls back Review follow-up for the conditional publish path: compare only regular files bounded by the planned snapshot size, so an oversized or special file cannot be read back or block the caller. If the exchange cannot be undone, keep the temporary file that holds the displaced external save instead of deleting it, and report the write failure. Correct the port documentation to describe exchange-and-rollback semantics, and cover same-size mismatches and temporary-file cleanup in the storage tests. * fix(mcp): harden conditional publish rollback and pin it in tests Rollback now verifies the destination still holds the bytes this call published, so a newer external save is not swapped out; a failed rollback keeps the displaced bytes and the store restores the original file mode even when publishing fails. Batch rollback deletes created files through a new conditional removeData instead of compare-then-remove, and volumes without renamex_np swap/exclusive capabilities fall back to compare-then-write so MCP saves keep working. FileStorage defaults now fail closed instead of silently degrading, and every MCP test storage forwards to MacFileStorage so the store-level race regressions exercise the production implementation. Add storage tests for non-regular destinations and conditional removal, a feature-level post-backup publish failure (no half-written batch, no ledger), a negative stale-draft removal test, and a more accurate stale-ledger error. Update the matrix evidence and the MCP Agent note. * fix(mcp): fail closed on unknown rollback state and pin ownership guards When the destination is missing, special or unreadable after a mismatched exchange, keep the displaced bytes and fail the write instead of deleting the only external copy. Only a regular file with different bytes is treated as a newer save that may replace the displaced copy. Permission restoration on failed publishes now only runs while the destination still holds this call's bytes, and the exclusive-create fallback removes a partially written file. Distinguish a legacy ledger record without a sourceHash from a newer external version in the stale-draft error, add a lost-ledger regression that fails if the captured-hash precondition is weakened to OR, and add the legacy ownership-message test. Update the documented test filters to include McpFeatureBatchFailureTests. * fix(mcp): report a superseded publish as a conflict and guard permission reads When a displaced-version verification read fails but the destination already holds a newer regular save, return changedOnDisk instead of a write failure. Permission restoration on failed publishes now refuses to read special or oversized destinations before comparing bytes. * fix(mcp): verify rollback displacement, fail closed on unsupported volumes, stage temp 0600 The rollback exchange now verifies that the bytes it displaced are the ones this call published; when a newer external save was displaced instead, the temporary copy is kept and a retained-copy error reports its path rather than deleting it. Conditional replacement and removal fail with an unsupported-volume error instead of falling back to an unconditional compare-then-write/remove, so the port's lost-update guarantee is never silently weakened. Staged configuration copies are created owner-only (0600) before any secret bytes are written. Add deterministic DEBUG-only seams and regressions for the rollback interleaving, unsupported volumes and staged file mode, and update the localization files, Agent note and feature matrix. * fix(git,mcp): filter skipped remotes in tag echo and keep rollback copy paths Core inspection now normalizes remote.<name>.skipFetchAll with Git's boolean parser, and the inherited tag echo excludes those remotes when Fetch targets all remotes; an explicitly selected remote is still shown. Keep the retained-copy path when batch rollback aggregates failures instead of reducing it to the original path. Add Rust and Swift regressions for skipFetchAll normalization/filtering and for the retained-copy rollback message; update the two Agent notes and matrix verification text. * fix(mcp): keep the failed write recovery path in rollback messages When the forward write already retained a recovery copy and restoring earlier files also fails, the aggregated rollback message now includes both the write-time recovery location and the restore-time failures. Add a deterministic batch test for that two-failure sequence. * fix(maven): resolve local repository from settings.xml in project runtime settings The Local Repository field now applies Maven's precedence: explicit Lithe override, <localRepository> from the user settings, the installation conf/settings.xml, then ~/.m2/repository. Property expressions that cannot be resolved from the file alone leave the field unknown instead of showing a guessed default. * fix(maven): distinguish an unresolved localRepository from a missing one Interpolate the home directory, environment properties and a leading tilde; when a configured localRepository still cannot be resolved, leave the field unknown instead of falling back to the default repository. Only a settings file without the element continues to the installation file or the default. * fix(mcp,maven): keep concurrent Git exclude rules and resolve symlinked Maven installs The Git exclude append now publishes through the conditional storage port with one bounded merge retry, so a rule another editor appends between the read and write is preserved instead of overwritten; the existing read-failure and non-UTF8 behavior is unchanged. Project runtime settings resolve the selected Maven launcher before deriving the installation conf/settings.xml, so a symlinked mvn still shows the real global settings and local repository. * feat(plugins): 添加声明式的构建工具插件 (#1318) * feat(plugins): add build system contracts and capability negotiation * fix(build): 修复构建插件评审指出的路径与测试范围问题 - 规范模型 contentRoots 按实例根解析,不再按所属工程目录重复拼接(app/app/src/main/java) - build.testPlan / build.decodeTestResults 接收当前模型的 projects;workspace 范围的 报告 glob 覆盖实例根和每个子工程,避免子工程失败被解码成零用例、success:true - build.testPlan 校验请求的 suite/case 确实经由条件成立的模板进入命令行;Maven、 Gradle 只传 case 时返回 plugin.build.invalidSelection,Cargo/Go 的独立 case 不受影响 - 同步 build-plans goldens、Core API 文档、插件 README 与决策笔记,补充回归测试 * feat(core): 为宿主管理的运行时给出版本探测参数 build.invocationPlan 对 java、node、go 这类宿主管理的运行时也返回 version.arguments(go 用 version,其余用 --version),两端宿主按同一 规则探测运行时版本,不再各自硬编码。build-plans.json goldens 与 Core API 文档同步更新。 * feat(macos): 接入构建系统插件宿主适配层 macOS 接受声明式插件 API 3 并发送 hostCapabilities(含 buildSystems: [1]), 通过 13 个 build.* Core 命令运行插件声明的构建系统,宿主代码不出现任何 构建系统的名字。 - 契约:BuildSystemContracts 定义识别、模型、计划、选项、测试、诊断、依赖 与同步指纹类型,以及规划、工具解析、选项存储、状态目录、命令运行五个协议。 - Core 调用:RustBuildSystemOperations 封装 13 个命令,统一清单拒绝错误。 - 平台适配器:MacBuildToolResolver(候选顺序、宿主运行时、项目内 Wrapper 不做版本探测)、MacBuildCommandRunner(进程组、取消、期限、输出上限、 stdout 捕获)、MacBuildOptionsStore、MacBuildSystemStateLocator(只写插件 状态目录,读完即删)。 - 编排:BuildSystemService/BuildSystemsFeatureModel 挂进执行模块,只在安装 构建插件时创建;打开工作区只识别,命令模型和 Wrapper 只在用户操作后启动; sync.watch 变化才重新识别;被拒绝的选项改存生效值;插件启用、停用、 卸载时先停止该插件的命令再重新识别。 - 界面:右侧 Build 工具窗口与底部 Build Output,含选项、右键菜单、参数 输入、测试汇总和可跳转的问题列表,补充中文翻译。 - 文档:更新构建系统契约与能力版本决策笔记、插件契约 README、平台功能 矩阵(macOS partial / pending)。 - 测试:RustBuildSystemOperationsTests 覆盖真实 Core 与共享 fixtures, BuildSystemServiceTests 覆盖识别、命令模型、任务输出、取消、插件停用、 选项回写与过期标记;Build 工具窗口固定停靠在 Maven 之后。 * refactor(build): 按真实插件裁剪 buildSystems v1 的映射与解码格式 API 3 发布前,去掉六个 fixture(Cargo、Go、Gradle、Maven、两个 Provider) 都没有用到的映射规则和解码格式。映射只负责从解码后的文档里挑值;从工具读 任务、计算父子关系、产出依赖树、读 JSON/YAML 清单,交给插件自带脚本输出 litheBuildModel / litheDependencies,或者由 Provider 回答。 - 拿掉 map 里工程的任务规则(tasks、template、执行方式)、map 顶层的 targets 和 tasks、工程的 parent(父工程固定为包含它的最深一层工程)、 映射出来的标签(目标 tags 改为字面列表)、parentDirectory 变换、依赖的 children(依赖映射只产出平铺列表)、layout.generated。 - 解码格式:静态模型只读 toml;模型和依赖命令的输出用 jsonStream(也接受 单个 JSON 文档)或规范格式;去掉静态 json/yaml、命令 json/toml/yaml。 - 保留 fixture 在用的 where、fallback、whenFile、each、选择器写法、 lastSegment、字面值、optionValues、工程级目标与内容根、依赖平铺 map、 layout.excluded 和自定义运行时;litheBuildModel 等规范格式不变。 - schema、README 同步收窄;invalid-manifests.json 新增九条用例,证明裁剪 前合法的写法现在返回 plugin.manifest.invalid。 - 文档:契约 Note 写明“映射只挑值”的规则、裁剪原因、Deno/npm 改用插件 脚本的代价,并补两条备选方案;提案 Note 第 7 节改为已完成的决定,修正 第一版盘点误列为未使用的规则。 * fix(build): address PR 1318 lifecycle and contract regressions * fix(build): keep reported output paths inside the workspace Diagnostic and test-result paths reached the host after lexical normalization only, so a link inside the workspace could resolve to a file outside it and Build Output would open that file. Validate the real path before a tool-reported path is returned: links that stay inside keep their reported relative form, escaping links are dropped, and a missing file stays because the host checks existence before opening it. Build Output resolves the real path again before navigating, so a path replaced between decode and click cannot escape either. Add a Unix symlink regression covering lineMatcher and canonical diagnostics plus JUnit and canonical test results (inside links kept, escaping links dropped), and BuildOutputSourcePathTests for navigation. * fix(build): use effective options and guard late decode results The Build Output showed effective option values, but task and test plans still used the raw stored ones, so a value the current model removed kept reaching the command line. Resolve options against the current model before planning and store the effective value after detection and model load, not only after the user edits an option. Task and test diagnostics/results are decoded in detached tasks. A stop, replacement run, or workspace switch can happen before the decode returns, and its result then overwrote the new state. Publish only when the run ID, workspace generation, and cancellation state still match. Build Output text links now go through the same real-path boundary as the problem list, so output text cannot open a file outside the workspace. Tests cover detection and model-load option refresh, replacement-run and workspace-switch late decodes, and the output link boundary; the owning Agent Note records the rules. * fix(build): scope option cleanup to every instance and owned output Options are stored per workspace and build system, but a model value belongs to one instance. Cleaning dropped values per instance let one instance delete a feature another still accepts. Resolve options for every instance first, then keep a multi-select entry while any instance accepts it; each plan still filters against its own model. A cancelled command can keep draining its pipe after the run stopped or the workspace changed. Streamed output now carries the run or load task that started it and checks that owner before appending, including the command header and late error text. Tests cover two instances with different feature lists, late output after a replacement run or workspace switch, a late model command, and the existing option and decode regressions; the Agent Note records both rules. * fix(build): keep explicit empty selections and newer loaded state A cleared multi-select is an explicit value, but the merged option cleanup treated an empty result as "no value" and deleted the key, so a non-empty default came back after detection. Preserve the empty array when any instance resolved it as a user choice. Detection builds from the snapshot it started with. A model or dependency load that finished while detection ran could be replaced by that snapshot. Track a per-entry revision bumped by load results; when it changed during detection, keep the current model, dependencies, options, and sync state and only take the detected instance and declaration. Tests cover the cleared selection and detection racing a model or a dependency load; the Agent Note records both rules. * fix(build): split load revisions and support custom option values Revision comparison defaulted only the snapshot side to zero, so a normal re-detection was treated as a concurrent update and kept the old model. Use the same missing-default semantics on both sides. Track model and dependency revisions separately: a dependency result keeps only the dependency tree, while a model load keeps the model and everything derived from it; when neither changed, detection publishes its fresh model. The option rows ignored allowCustom. Single-select and multi-select now offer a custom value entry; multi-select also lists and removes custom values that are not declared choices. Tests cover normal re-detection, detection racing a model load, detection racing a dependency load while a new model is read, and the cleared selection; the Agent Note records the merge rules and custom value input. * fix(build): stale config on model load and plugin ownership A model command receives the option values at load start. If an option changed while it ran, publishing the model cleared the stale flag even though it described the old configuration. Compare the option fingerprint captured at start with the current one and keep isReloadRequired when it moved. An instance ID is the build-system ID plus its root, so another plugin can take it over. Only reuse the previous model and dependencies when the owning plugin is unchanged, and do not merge revision state across a plugin change. Tests cover an option change during a model load and a plugin takeover with the same instance ID; the Agent Note records both rules. * fix(build): stale model on watched-file change and report scopes A model command reads build files while it runs. A watched file changed before the result returned, but only the option fingerprint was compared, so the published model looked current and bound the new file digest to the old model. Track a workspace file revision and keep isReloadRequired when it moved during the load. Workspace tests collect reports relative to each project; without the model the subproject directories are unknown and a failing run decoded as zero cases with success. Require a loaded model for workspace-level test runs in both the service and the menu, with an actionable message. Tests cover a file change during a model load and the refused model-less workspace test run; the Agent Note records both rules. * fix(build): keep explicit empty option values and project runtimes An explicit empty text value was described as null because it contributes no argument, so the host dropped it and a non-empty default returned. Keep the accepted value for user choices and submit an empty text field as an empty string; the reset button still restores the default. Core accepts a projectFile candidate for a declared runtime, but the macOS resolver skipped it, so a project virtual environment could not provide the runtime. Resolve it like other project candidates: check the requires files and executability, and never probe it because probing runs repository code. Tests cover the empty-value round trip and a project-local runtime; the Agent Note records both rules. * fix(build): require the model only for report-scoped tests The workspace-test guard also refused a plugin that declares no model at all, where no subproject discovery exists and no report decoder may be used. Plan first and require the model only when the plan decodes reports and the instance declares a model. A first model load can read a subproject file before the model lists that project in its watch paths, so the change did not invalidate the load. Bump the file revision for every reported workspace change while entries exist. A dependency tree computed from old option values was still published as loaded. Capture the option fingerprint at load start and mark the result for reload when it changed. Tests cover the model-less workspace test, a subproject change during the first load, and an option change during a dependency load; the Agent Note records the rules. * fix(build): reject stale-model workspace report collection A loaded command model can be marked stale after build files change; its project list may miss a newly added subproject, so report collection would be incomplete. Require a current model for report-scoped workspace tests, while still allowing model-less plugins and plans without report decoding. Add a regression for a stale command model; the Agent Note records it. * fix(build): require a current model for every report-scoped run The stale-model guard only ran when the request had no project list, but the Build window passes the loaded model's project list, so a stale list bypassed the check and could miss a newly added subproject's reports. Require a current model whenever the plan decodes reports and the instance declares one, regardless of the request's project list. * fix(build): scope target fallback by tag and output links by instance Cargo's implicit main target was a fallback in the same target list as test and example targets, so an explicit [[test]] or [[example]] suppressed it and the application target disappeared. Target fallbacks now skip only when a non-fallback rule with an overlapping tag produced a target, which matches the builtin Cargo detector: an explicit binary still suppresses src/main.rs while tests and examples do not. Build Output text links resolved relative paths against the workspace root. Use the instance root of the command that produced the output instead, so a nested instance's src/main/java paths are not looked up in another project. Tests cover both, and the contract README describes the fallback rule. * fix(build): reject stale dependency loads and disambiguate output links Dependency loads now record the build-file revision they started from and refuse to publish a tree when detection already saw newer files. Build Output keeps every instance root that wrote the current text; a relative path that matches more than one root is treated as ambiguous and gets no link instead of opening another project's file. Add deterministic regressions for both paths and update the decision note. * ci: 撤销自建 Mac mini Runner,macOS CI 全部回到 GitHub 托管 runner (#1332) * ci: 撤销自建 Mac mini Runner,macOS CI 全部回到 GitHub 托管 runner 自建 Mac mini 上的三个 Runner 安装文件与 Xcode 一起消失,没有任何回退 机制,被分到它的 job 一直排队,push 到 preview 的运行更是强制只用它。 现在撤销这套方案,所有 macOS lane 固定使用 GitHub 托管的 macos-26。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * style(rust): 格式化 git/configuration.rs,修复 Rust Core tests 的 cargo fmt 检查 #1323 合并后 preview 上的 rust/lithe-core/src/git/configuration.rs 有三处 未格式化的代码,导致 cargo fmt --check 失败,所有会触发 Rust Core tests 的 PR 都会被拦下。本提交只运行 cargo fmt,不改任何逻辑。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(ci): stop reusing jobs waiting on retired runners * feat(plugins): 补齐构建展示、JDT 导入与可选网页共享契约 (#1334) * feat(plugins): 构建系统展示字段与插件自带网页界面契约 - buildSystems[].icon、options[].presentation(toolbar/tree)与 icon、 任务 category(模板默认值,litheBuildModel 中的模型任务可自带, 格式不对时回退模板),供宿主照抄 Maven 窗口为每个构建系统绘制 工具窗口;只影响展示,不进计划 - ui 能力版本 2:ui.toolWindows[].web.entry(包内 .html)与 ui.web 权限; 每个窗口恰好一种内容,ui 2 不带网页窗口会被拒绝 - README 记录展示字段、网页加载规则与 window.lithe 桥接 v1; 新增 web-panel fixture 与 16 条无效清单用例 - 新提案 Note:插件自带网页界面、外壳归宿主;更新构建系统契约、 能力版本与公共扩展契约 Note * test(build): 用真实 Maven/Gradle 输出覆盖两个社区构建插件 新增 Core 测试,读取 lithe-plugin-maven 和 lithe-plugin-gradle 的 plugin.json 以及它们集成测试从真实构建导出的模型和依赖文档,检查校验与安装审查、 检测、模型/任务/测试/依赖计划,以及模型、依赖和诊断解码。 * feat(build): 构建选项通过 languageImport 通用地接到 JDT 导入 - buildSystems v1 新增可选 languageImport:kind(maven/gradle)加上 导入设置到插件选项 ID 的映射;校验映射的选项存在且类型匹配 - 新命令 build.languageImport:按用户存储的选项值返回 lsp.startServer 已接受的 mavenContext 或 javaGradle,宿主转发即可,不认插件名 - JdtGradleConfiguration 增加 offline 与 userHome,仅在用户设置时下发 java.import.gradle.offline.enabled / user.home,并能按 section 查询 - 两个社区插件 fixture 声明 languageImport;新增映射与拒绝用例 - 更新插件契约 README、schema、rust-core-api 和相关 Agent Note * docs(matrix): 记录 API 3 构建导入与可选网页的共享契约 * fix(tests): escape workspace paths in captured build JSON * ci: 撤销自建 Mac mini Runner,macOS CI 全部回到 GitHub 托管 runner (#1332) * ci: 撤销自建 Mac mini Runner,macOS CI 全部回到 GitHub 托管 runner 自建 Mac mini 上的三个 Runner 安装文件与 Xcode 一起消失,没有任何回退 机制,被分到它的 job 一直排队,push 到 preview 的运行更是强制只用它。 现在撤销这套方案,所有 macOS lane 固定使用 GitHub 托管的 macos-26。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * style(rust): 格式化 git/configuration.rs,修复 Rust Core tests 的 cargo fmt 检查 #1323 合并后 preview 上的 rust/lithe-core/src/git/configuration.rs 有三处 未格式化的代码,导致 cargo fmt --check 失败,所有会触发 Rust Core tests 的 PR 都会被拦下。本提交只运行 cargo fmt,不改任何逻辑。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> * test(core): 使用原生绝对路径验证社区构建插件计划 * fix(ci): skip cancelled workflow gates and cover real gate behavior * fix(ci): limit real JDT selection to its platform consumers --------- Co-authored-by: Lichenkang <2188718831@qq.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(ci): cancel historical runs when a pull request closes * fix(ci): preserve reuse of queued hosted jobs * test(macos): bound native fixture startup separately from process events * fix(plugins): 补合原生构建窗口、JDT 与网页能力并修复生命周期和空选项 (#1339) * fix(plugins): 补合原生构建窗口、JDT 导入和插件网页能力 将堆叠 PR 中尚未进入 preview 的最终功能重放为独立提交,保留选项编辑、导入生命周期和网页执行保护的 review 修复。同步契约、能力矩阵、资源复用与已实现笔记,移除过期网页提案。 * fix(plugins): 关闭项目时撤销网页并持久化实例空多选 在会话首次异步退出前关闭插件页面,拒绝保留模型上的迟到请求。保留兄弟实例共享选择,以实例根记录显式空多选,并统一用于检测、指纹、构建计划和语言导入;补充真实关闭路径及 Core/存储回归。 * feat(windows): 对齐项目与提交面板交互并完善 Shelf 恢复 (#1341) * feat(windows): align project and commit panels with macOS (#1257) * fix(windows): preserve Shelf index baseline and nested Maven navigation * fix(test): provide plugin package URL in option persistence fixture * fix(test): mark plugin bridge workspace fixture as a directory * fix(windows): follow editor targets without resetting directory selection * feat(windows): 项目树复制或拖拽文件后可在终端插入路径 (#1313) * feat(windows): 项目树复制或拖拽文件后可在终端插入路径 Windows 项目树的「复制」只写入应用内文件剪贴板(Rust 侧 state), 外部程序无法读取,因此复制一个文件后在集成终端按 Ctrl+V 不会得到 任何内容;把项目树条目拖到终端时,落点会命中编辑器 pane 分支, 结果是在编辑器里打开文件(拖目录则没有任何反应)。 本次改动把文件条目转换成终端可直接使用的路径,且不改变原有复制语义: - 复制行为不变:copy/cut 仍只写应用内剪贴板,系统剪贴板不被覆写。 store 额外只读一次剪贴板文本快照,用于判断「文件复制」是否仍是 用户最近一次操作。 - 终端粘贴:Ctrl+V / Ctrl+Shift+V / 右键「粘贴」优先插入复制条目的 路径;若此后用户又复制了文本,则照旧粘贴该文本,避免插入过期路径。 - 终端拖拽:项目树条目拖到终端时插入路径并追加一个空格,且不再 打开编辑器标签;拖到非终端 pane 仍按原逻辑打开文件。 - 路径规则:工作区内用相对路径并把分隔符统一为 `/`(Windows shell 从工作区根目录启动且不发送 OSC 7),工作区外条目保持完整路径; 含空格的路径沿用终端拖放的引号规则,保证保持为一个 shell 参数。 复用终端既有的引号函数 quoteTerminalPaths,避免两套转义规则漂移。 资源管理器的外部拖拽路径解析(要求绝对路径)不受影响。 验证: - 新增 23 个单元测试(路径格式化、引号、落点判定)全部通过。 - 完整前端套件按基线/含改动两轮对比,失败集合完全一致(各 221), 未引入新的失败。 - tsc --noEmit、lint、verify-test-stability、verify-windows-boundaries、 verify-platform-feature-matrix 均通过。 - 真实 Windows 交互验收尚未执行,矩阵中 verificationStatus 标为 pending。 不在本次范围:系统剪贴板写入文件格式(CF_HDROP),因此桌面/资源管理器 粘贴文件仍不支持;该能力需要 Rust 侧原生剪贴板实现。 * fix(windows): 修正终端路径插入的注入风险、相对基准与 CI 覆盖 回应 review 的三项 findings。 [P1] 相对路径缺少 shell 元字符转义 quoteTerminalPath 原先只在路径含空白、引号或反斜杠时才加引号。绝对 Windows 路径必含反斜杠,因此一直命中引用分支;本次新增入口把路径变成 不含反斜杠的工作区相对路径后,`README&whoami` 这类文件名会原样送到 cmd,`&` 被当作命令分隔符执行。 改为安全字符白名单:只有字母、数字和 `._/\:-` 不引用,其余一律加引号, 覆盖 cmd 的 & | < > ^ ( ) 和 PowerShell 的 ; $ ` { } 等。 顺带修正引号内的转义策略:反斜杠在 cmd / PowerShell 的引号内不是转义符, 不再改成 `\`(旧写法会破坏路径);只把内嵌的 `"` 双写。未加引号的安全 路径现在原样返回,不再被无条件加反斜杠。 [P2] 路径应按目标终端目录相对化,而非工作区根 terminal 已有 currentDirectory(含 OSC 7 更新)。改为由终端在插入时按 自身目录相对化:抓取和拖放都只在事件里传绝对路径,终端用 getSession(sessionId).currentDirectory 决定基准;目录未知时保留完整路径, 因为此时相对路径可能指向错误文件。这修掉了在子目录中打开终端后 `src/Main.java` 被解析成 `.../src/src/Main.java` 的问题。 [P2] 新增测试接入 CI 在 ci-windows.yml 增加 "Test explorer file paths inserted into the terminal" 步骤,用既有有界计时入口运行三个新测试文件,产出 JUnit/HTML 报告。本地已按 CI 写法实跑,36 项通过。 未采纳的 finding: - [P2] 用文本相等判断剪贴板先后。准确修复需要 Windows GetClipboardSequenceNumber,Tauri clipboard-manager 只暴露 read/writeText|Html|Image,没有变更序号或事件 API,必须新增原生 FFI。 这与本 PR 明确排除的 CF_HDROP 属同一前置依赖,留作后续独立改动。 当前启发式已在代码注释说明其局限。 验证: - 新增/更新 36 个单元测试全部通过,含 10 个 shell 元字符注入回归用例 和子目录相对化用例。 - 完整前端套件按基线/修复后两轮对比,失败集合完全一致(各 221), 未引入新的失败。 - tsc --noEmit、lint、verify-test-stability、verify-windows-boundaries、 verify-platform-feature-matrix 均通过。 - 外部拖放(OS 拖入绝对路径)行为经手工探测确认无回归。 * fix(windows): 按目标 shell 引用终端路径并改用绝对路径 回应第二轮 review。两个 P1/P2 经实测确认成立: [P1] 双引号在 PowerShell / Git Bash 中仍会求值 PowerShell 实测:文件名 report$(hostname).txt 用双引号包裹后,解释器 把它展开成 reportchenbk7995.txt 而报找不到文件。Git Bash 同理。 上一版还把旧代码对 $ 和反引号的反斜杠转义删掉了,使既有外部拖放 在 Git Bash 下也发生回归。 改为按 shell 家族选择引用方式:terminalShellFamily 从 session.shell 识别 cmd / powershell / pwsh / nu / bash,然后 - PowerShell、Nushell:单引号,内嵌单引号双写; - Git Bash 等 POSIX:单引号,内嵌单引号用 '\'' 闭合; - cmd.exe:只能双引号(无字面量语法),但保留 %NAME% 可展开的已知局限。 单引号同时保住反斜杠,修掉了 Git Bash 把 C:\work\proj\a.txt 解析成 C:workproja.txt 的回归。实测单引号可正确读到字面文件。 [P2] 启动目录不能当作可靠的当前目录 cmd 与 PowerShell 都不发送 OSC 7,session.currentDirectory 只是启动 目录,用户 cd 后即过期,?? null 识别不出「非空但过期」。 改为不再相对化:路径一律使用完整绝对路径。绝对路径在任何 cd 之后的 当前位置都成立,也不再需要可靠性判断。顺带修掉 [P2] 目录自身被过滤成 空串的问题——绝对路径不会退化为空。 [P2] 内容相等无法证明先后 Tauri clipboard-manager 没有变更序号 API,正确修复需 GetClipboardSequence Number 原生 FFI,与本 PR 排除的 CF_HDROP 同一前置依赖。按建议补充 不依赖启发式的显式入口:终端右键菜单新增「粘贴已复制的文件路径」, 直接插入应用内文件剪贴板的路径,不受系统剪贴板内容影响。 验证: - 32 个单元测试通过,含 PowerShell/Git Bash 的 $() 不求值、反斜杠保留、 单引号转义、cmd 双引号、OS 拖放按 shell 引用等回归用例。 - 手工实测 PowerShell 双引号确实展开 $()、单引号不展开;Git Bash 裸路径丢反斜杠、单引号保留。 - 完整前端套件按基线/修复后两轮对比,失败集合完全一致(各 221), 未引入新的失败。 - CI 步骤按实际写法本地实跑,32 项通过并生成报告。 - tsc --noEmit、lint、verify-test-stability、verify-windows-boundaries、 verify-platform-feature-matrix 均通过。 * fix(windows): 记录实际启动的 shell 并统一路径引用入口 [P1] shell 分类没有接通实际调用链 初始化时 updateSession 只写入 connectionId、currentDirectory 和 remoteConnectionId,没有保存 shell。而 TerminalSlot 的 shell prop 本身 就来自 terminal.shell,因此 getSession(sessionId)?.shell 恒为 undefined, 上一版按 shell 家族引用路径的修复全部回退到 cmd 双引号——PowerShell 与 Git Bash 下 report$(whoami).txt 这类文件名仍会被求值。 修复两处: - updateSession 一并保存实际启动的 shell(沿用创建时同一来源 shell || existingSession?.shell || wslShellId),使 remount、 重新打开以及其它读取 session 的入口都能拿到; - 组件内新增 resolveShell(),优先使用 shell prop(初始化完成后权威), 回退到 session 记录,普通粘贴、显式粘贴、外部拖放和应用内拖放四个 入口统一走它,不再各自读取。 新增 terminal-session-shell.test.ts,直接覆盖这条断点:shell 能经 updateSession 落到 session、与 connectionId/currentDirectory 共存、 后续省略 shell 的更新不会清除它、初始化前为空。该文件已加入 CI 步骤。 [P2] 普通粘贴的内容误判 未修复,属已知局限:正确做法需要 GetClipboardSequenceNumber 原生 FFI, Tauri clipboard-manager 不提供变更序号。按上一轮评审建议,显式入口 「粘贴已复制的文件路径」已提供不依赖启发式的选择;普通 Ctrl+V 仍保留 内容比较并在代码注释中写明其局限。 验证: - 36 个单元测试通过(4 个文件),含新增的 4 个 session shell 用例。 - CI 步骤按实际写法本地实跑,36 项通过并生成报告。 - 完整前端套件按基线/修复后两轮对比,失败集合完全一致(各 221), 未引入新的失败。 - tsc --noEmit、lint、verify-test-stability、verify-windows-boundaries、 verify-platform-feature-matrix 均通过。 * docs(windows): 记录终端粘贴优先级的取舍决策 [P2] 内容相等无法区分「重新复制了相同文本」。在没有 OS 变更序号的前提下 无法正确修复,因此把它作为明确决策固定下来,而不是留作开放问题: 保留普通 Ctrl+V 自动插入文件路径。理由是这条判断两侧代价不对称—— 插入路径正是复制文件的目的,误判需要「相同内容复制两次且中间夹一次文件 复制」才发生,代价只是一次可见、可撤销的插入;而移除自动分支会给每次 「复制文件→终端粘贴」都增加一步手动操作,且并非本 PR 能正确实现(需要 GetClipboardSequenceNumber 原生 FFI)。 - 函数注释改为记录决策依据与两侧代价,不再只描述局限; - 新增一个测试固定该取舍,使未来改动必须同步修改注释中的决策。 仅注释与测试变更,无生产逻辑改动。37 个单元测试与 CI 聚焦步骤通过, tsc 与 lint 通过。 * fix(windows): 覆盖 WSL、MSYS2 与 Cygwin 的 shell 家族 [P1] 原生 shell 目录还提供 msys2、cygwin 和 wsl:<发行版>,三者都运行 bash,但 terminalShellFamily 未覆盖,会回退为 cmd 并生成双引号—— 这些 shell 下 report$(whoami).txt 仍会被求值。base 的外部拖放原本会 转义 $ 和反引号,本次替换使该入口同样回归。 补齐家族映射:wsl:* 前缀、msys2、cygwin 归为 posix。并在注释中写明 映射必须与 windows_shells.rs 保持对齐,以及「落到 cmd 就意味着双引号」 这一失效路径。 新增覆盖:4 个真实 shell id 的分类用例,以及从 shell id 到最终插入文本 的端到端用例(wsl:Ubuntu / msys2 / cygwin / bash / powershell / pwsh 六种均产出单引号字面路径)。 验证:44 个单元测试通过(4 文件);CI 聚焦命令本地实跑 44 项通过并 生成报告;完整前端套件基线/修复后两轮对比,失败集合完全一致(各 221), 新增 0;tsc --noEmit 与 lint 通过。 * fix(windows): WSL 会话转换路径命名空间并补充弯引号覆盖 [P2] WSL 会话路径未转换命名空间 — 成立,已修复 分类为 posix 只解决了引用问题,原样保留的 Windows 盘符路径在 WSL 内仍 不可访问:Linux 把 `C:\work\proj\a.txt` 当作含反斜杠的相对文件名。 新增 windowsPathToWslPath,把 `C:\work\proj\a.txt` 转成 `/mnt/c/work/proj/a.txt`(WSL 默认按盘符挂载);已是 Linux 形式的路径 原样保留;UNC 共享没有可预测挂载点,返回 null 并保留原值,避免插入 指向不到的位置。quoteTerminalPaths 在 wsl: 会话下先转换再引用。 [P1] 弯单引号可逃逸 — 复核后不成立,未改代码 按 finding 逐字节验证 PowerShell 5.1:把 U+2018、U+2019、U+201A、 U+201B、U+FF07、U+2032 分别置于单引号字符串内并尝试注入 `$(Write-Host PWNED)`,六种全部未执行,脚本正常解析。说明这些字符 不是 PowerShell 的字符串分隔符,只有 ASCII `'` 需要双写(已实现)。 为免该假设日后静默失效,新增 6 个用例固定「弯引号保持字面值」。 [P2] 相同文本误判 — 维持决策,修正注释 保留自动插入的取舍不变。原注释称「再次粘贴即可撤销」,经复核不成立 (剪贴板文本与应用内文件剪贴板都仍然有效),已改为准确描述恢复方式。 验证: - 57 个单元测试通过(5 个文件),含 WSL 路径转换 6 例、弯引号 6 例、 wsl: 端到端 2 例;CI 聚焦命令本地实跑 57 项通过并生成报告。 - 完整前端套件基线/修复后两轮对比,失败集合完全一致(各 221),新增 0。 - tsc --noEmit、lint 0/0 通过。 * fix(windows): WSL 工作区的协议路径转换为发行版内路径 [P2] wsl:// 协议路径未转换 — 成立,已修复 上一轮只把 wsl:* 归为 POSIX,并处理了 Windows 盘符路径;但 explorer 的 WSL 工作区根是用 buildWslPath 生成的 `wsl://Ubuntu/home/me/proj`,该 形态既不是盘符路径也不是 Linux 路径,windowsPathToWslPath 返回 null 后 回退原值,Linux 下无法访问。 新增 pathToWslPath(path, distro):命中 wsl:// 时用 parseWslPath 取出 linuxPath,并校验发行版与目标终端一致(跨发行版不可达,返回 null 让 调用方保留原值而不是插入猜测);否则交给 windowsPathToWslPath 处理 盘符路径与已是 Linux 的路径。quoteTerminalPaths 在 wsl: 会话下改用它。 [P1] 弯单引号 — 仍不成立,但改用更强证据并修正了判定方法 上一轮我用 grep 匹配输出中的 PWNED,这个判定有缺陷:字符串内容本身也会 被打印出来,造成假阳性/假阴性。改用 PowerShell 自身的词法分析器 (System.Management.Automation.Language.Parser)直接查看切分结果: 含 U+2019 的路径被解析为**单个 StringLiteral**,errors=0;同样形状换成 ASCII `'` 则切分为 StringLiteral + 独立语句 + 注释。结论不变:弯引号不是 PowerShell 的字符串分隔符,只有 ASCII `'` 需双写。测试注释已改为记录该 词法证据及其判定方法。 验证:64 个单元测试通过(5 个文件),含 pathToWslPath 6 例;CI 聚焦命令 本地实跑 64 项通过;完整前端套件基线/修复后两轮对比,失败集合完全一致 (各 221),新增 0;tsc 与 lint 通过。 * fix(windows): 双写 PowerShell 认可的四种弯单引号 [P1] 弯单引号可逃逸字符串 — **成立**。此前两轮我判定它不成立,结论是错的。 用无歧义的副作用检测(注入语句创建文件,只检查文件是否出现)在 PowerShell 5.1 上复验:把注入串放在单引号字符串内执行, 'report<Q>; New-Item ... 'pwned_XXXX.txt' ...; #.txt' U+2018、U+2019、U+201A、U+201B 四种全部**创建了文件**,与 ASCII `'` 一致;U+FF07、U+2032 未创建。即 PowerShell 收四种弯引号为字符串分隔符, 只双写 ASCII `'` 确实留有命令注入入口。 我此前两次误判的原因,如实记录:第一次用 `grep PWNED` 匹配程序输出, 而字符串内容本身也会被打印,判定不可靠;第二次构造注入串时多插了一个 ASCII 引号,导致引号配对被破坏、结果全部显示为「未执行」。 修复:PowerShell 分支对 `'` 与 U+2018/U+2019/U+201A/U+201B 一并双写。 已用应用真实输出做端到端复验——生成的 `'C:\work\report’’; New-Item ...; #.txt'` 在 PowerShell 中执行后没有 产生文件,且良性文件名往返值保持不变。POSIX 分支不受影响(这些字符在 bash 中不是分隔符,双写反而会破坏路径)。 测试改为按「分隔符 / 非分隔符」两组断言,并注明判据来自真实执行而非 仅比较输出字符串。 验证:65 个单元测试通过(5 文件);CI 聚焦命令本地实跑 65 项通过; 完整前端套件基线/修复后两轮对比,失败集合完全一致(各 221),新增 0; tsc 与 lint 通过。 * fix(windows): 按 Nushell 语法引用路径并记录 WSL 挂载限制 阻塞已解除(上轮结论为「有建议」)。本轮处理剩余 P2: [P2] Nushell 不应沿用 PowerShell 的单引号双写 — 成立,已修复 Nushell 的单引号字符串没有 `'` 转义,双写不会还原为一个引号, `C:\work\it's.txt` 插入后无法访问。改用 Nushell 的 raw string (反引号),它保留引号、`$` 与 Windows 反斜杠: - 常规路径与含 `$()`、单引号的路径统一用 raw string; - 文件名含反引号时 raw string 无法表达,退化到单引号(仅当不含单引号); - 两者同时出现时没有能保持字面的 Nushell 形式,按原样输出而不是 生成 Nushell 会读成别的值的转义。 已补 4 个用例覆盖上述分支。 [P2] WSL 自定义 automount root — 不修复,记录限制 `/etc/wsl.conf` 的 `[automount] root` 可改变盘符挂载前缀,正确解析需要 目标发行版的 `wslpath`,前端没有该能力。已在 windowsPathToWslPath 的 注释和功能矩阵验证说明中明确记录这一前提,避免被当作通用事实。 [P2] 相同文本误判 — 非阻塞,决策不变。 验证:69 个单元测试通过(5 文件);CI 聚焦命令本地实跑 69 项通过; 完整前端套件基线/修复后两轮对比,失败集合完全一致(各 221),新增 0; tsc --noEmit、lint 0/0、verify-platform-feature-matrix 通过。 * fix(windows): Nushell 无法字面表示时丢弃路径而非输出裸文本 [P1] Nushell 回退分支重新引入注入入口 — 成立,是我上一轮引入的。 上一轮为处理「文件名同时含反引号与单引号」,让 quotePathForShell 直接 返回原路径。该分支取消了整条路径的引用:文件名中的 `;` 会被 Nushell 当作命令分隔符,`print C:\work\a; ^whoami; #'`.txt` 会执行 `^whoami`。 修复:quotePathForShell 改为返回 string | null,无法字面表示时返回 null;quoteTerminalPaths 过滤掉 null。即**拒绝插入**而不是输出裸路径。 本次改动前该场景输出裸文本(不安全),改动后不插入任何内容——宁可 不插入,也不能执行文件名里的命令。 同时把上一轮固定「原样输出」的测试改为断言输出为空,并注明原因。 验证: - 实测 无法表示 -> ""(不再输出裸路径);仅含反引号 -> 单引号形式。 - 37 个终端引用用例通过;CI 聚焦命令 69 项通过。 - 完整前端套件基线/修复后两轮对比,失败集合完全一致(各 221),新增 0。 - tsc --noEmit、lint 0/0 通过。 * fix(windows): 拖放路径被全部丢弃时不再插入孤立空格;显式粘贴项补 disabled 自查发现两处不一致: 1. formatDroppedPathsForTerminal 在引用阶段丢弃全部路径时仍会追加 尾部空格,向提示符插入一个孤立空格。formatPathsForTerminal 已有 该保护,两者行为不一致。补同样的空值判断,并加回归用例 (Nushell 下文件名同时含反引号与单引号时,quote 返回 null)。 2. 终端右键「粘贴已复制的文件路径」缺少 disabled={!connectionId}, 与上方「粘贴」不一致,未连接时仍可点击。补齐。 验证:70 个单元测试通过(5 文件);完整前端套件基线/修复后两轮对比, 失败集合完全一致(各 229),新增 0。注意基线从 221 升至 229 是上游 41 个提交自带的失败,与本改动无关,已用同一轮基线验证。 tsc --noEmit、lint 0/0、verify-test-stability、verify-windows-boundaries 通过。 * fix(windows): 用剪贴板变更序号替代文本比较判断粘贴优先级 [P2] 相同文本会让旧文件路径覆盖最近复制的文本 — 已从「记录取舍」改为 真正修复。 原实现比较系统剪贴板的**文本内容**来判断「文件复制是否仍是最近一次 操作」。该判据在「复制文本 → 复制文件 → 再复制同一段文本」时失效: 内容相同,函数仍选文件路径,且重复复制该文本也不会恢复。 Windows 提供 GetClipboardSequenceNumber(),每次任何进程写剪贴板都会 递增,是内容比较无法替代的变更身份。新增 tauri 命令 clipboard_sequence_number(cfg(windows) 下调用该 API,其它平台返回 0): - copy/cut 时读取序号存为 sourceClipboardSequence; - 粘贴时再读一次,序号相同才插入文件路径,不同则说明用户此后复制过 其它内容,照旧粘贴剪贴板文本; - 任一侧读不到序号时回退为粘贴文本,不猜测。 新增 windows-sys 的 Win32_System_DataExchange feature。该 feature 不需要更新 Cargo.lock:src-tauri 的 lock 目前与上游 #1267 引入的 lithe-agent-host 依赖不同步(缺 tungstenite 等),cargo check 会自动 补写;那属于上游 lock 维护问题,不在本 PR 范围内,故未提交 lock 变更。 顺带更新功能矩阵:补充 Rust 侧证据路径,并把验证说明改为覆盖「复制相同 文本」这一纯文本比较无法区分的场景。 验证: - 70 个单元测试通过(5 文件),新增 4 个序号语义用例(含回归: 相同文本二次复制现在正确让位)。 - 实测 GetClipboardSequenceNumber 连续读取稳定(16738/16738),只读、 未扰动剪贴板。 - cargo check --target x86_64-pc-windows-msvc 通过。 - 完整前端套件基线/修复后两轮对比,失败集合完全一致(各 229),新增 0。 - tsc --noEmit、lint 0/0、verify-platform-feature-matrix(172 项)通过。 * fix(windows): 适配上游多选拖拽接口并复用终端路径通道 rebase 到 preview(含 #1341 多选拖拽重写)后的适配: - 终端分支改用 dragState.draggedItems,多选时插入全部路径; - dispatchTerminalPathInsert 现在接收原始路径数组(由终端按自身 shell 引用),不再在此处预先格式化; - 移除未使用的 formatPathsForTerminal 导入。 tsc --noEmit、70 项聚焦测试、lint 通过。 * fix(windows): 剪贴板变更序号随文件条目一同广播 [P2] 跨窗口时条目与序号不同步 — 成立,是我上一轮引入的。 上一轮把序号存在前端 store 的独立字段里,而跨窗口同步只广播条目 (`file-clipboard-changed` 事件与 `clipboard_get` 都只含条目), 于是 `setClipboard` 保留了**接收窗口自己的旧序号**。后果: - 窗口 B 从未复制过文件时序号为 null,粘贴永远回退到系统剪贴板文本; - B 复制过文件时,新条目会与旧操作的序号配对,判断依据错位。 修复:把序号移入 `FileClipboardState` 本身。 - 后端 `clipboard_set` 用 `clipboard_change_counter()` 取得序号并写入 state,随 `file-clipboard-changed` 一起广播;`clipboard_set` 改为返回 该 state,前端直接使用,不再单独读取; - 前端删除独立的 `sourceClipboardSequence` 字段,`setClipboard` 整体 替换 state,条目与序号始终成对; - 粘贴时从 `clipboard.source_sequence` 读取基准序号。 新增回归用例:同一组条目分别用「随条目而来的序号」与「本窗口旧序号」 判定,前者插入路径、后者让位,固定住这个 bug 的形态。 验证:71 个单元测试通过(5 文件);tsc --noEmit、cargo check (x86_64-pc-windows-msvc)、lint、verify-test-stability、 verify-windows-boundaries 通过;完整前端套件基线/修复后两轮对比, 失败集合完全一致(各 317),新增 0。 * fix(windows): clipboard_set 返回记录状态;修正 Nushell 引用并让复制容错 两个 P1 均为我方缺陷。 [P1] clipboard_set 仍返回 Result<(), String>,前端按 FileClipboardState 接收 成功时序列化为 null,`set({ clipboard: state })` 会清空当前窗口条目, 导致复制后立即粘贴看不到文件。CI 的 "Test Project tree selection" 门禁 正是这样红的(5 个用例失败,报 clipboard.entries 为 undefined)。 - host.rs: clipboard_set 改为返回记录下来的 FileClipboardState,并在 emit 时用引用,避免返回值与广播内容分叉; - store: 先本地记录条目,再尽力采纳后端返回的 state。后端调用失败或返回 意外值都不会清空用户刚复制的条目——终端是从这个 store 读条目的。 [P1] Nushell 分支把反引号当作 raw string 定界符 Nushell 的反引号是 quoted identifier,不是字符串字面量,用它包裹路径 会改变含义而非保护路径。改为只用单引号;单引号内无法转义,故文件名含 `'` 时返回 null(丢弃),既不改写路径也不输出裸文本。 验证(均为本地实跑): - CI 门禁 "Test Project tree selection, reveal, and move lifecycle": 修复前 5 失败 → 修复后 40 项全通过; - CI 门禁 "Test explorer file paths inserted into the terminal":70 项通过; - 71 个单元测试、tsc --noEmit、cargo check(x86_64-pc-windows-msvc)、 lint 0/0 通过。 已知无关失败:完整套件中 file-explorer-selection 的 5 个用例仍失败, 根因是 editor 目录的 svg-editor.test.tsx 用 mock.module 把 buffer.store 替换成无 setState 的裸对象,跨文件污染了后续测试。该…
* (MacOS)对齐全局搜索的 IDEA 样式、名称匹配与只读预览 (#1352) * fix(search): 对齐全局搜索并完善只读预览生命周期 * 修复搜索预览所有权和高亮并添加搜索排除设置 按使用方释放预览及待加载请求,避免关闭搜索破坏 Problems 和替换面板。只读预览复用 Monaco 原生无焦点查找;Git 忽略查询传递用户指定可执行文件。 新增搜索专用路径通配符配置,统一全局、侧栏搜索和项目替换,保持树及监听可见。修复 Windows 换行文件名 fixture 和 Swift 顶栏悬浮提示断言范围,并补充共享缓存及真实 WebKit 回归。 * 修复搜索作用域隔离、目录剪枝及缓存淘汰并对齐分支图标 仅全局搜索显式启用生成目录名称;Agent 文件补全始终采用项目可见性,不受搜索排除设置影响。目录规则在扫描入口剪枝,并覆盖直接增量路径。 排除配置变化走搜索专用失效通路,保留不可跳过的失效屏障并限制每根目录的缓存版本数量。补充目录枚举、32 次配置切换和旧索引释放回归。欢迎页分支使用 IDEA New UI 映射的原始 16pt 明暗资源,不修改项目操作。 * 调整全局搜索排除规则入口与交互并对齐项目列表布局 将排除规则移至双 Shift 漏斗面板,独立记忆启用状态,隔离侧栏搜索、项目替换和 Agent 补全。使用独立规则编辑弹窗和主题色应用按钮,统一多行输入焦点边框、原生自动聚焦及空白点击保留选区。 规则行背景包含独立编辑按钮,保留 IDEA 小按钮交互;对齐欢迎页项目图标、标题、路径和分支间距。补充原生深浅主题回归、作用域测试、决策说明和功能矩阵。 * 修复搜索目录枚举容错与预览文档释放 跳过不可访问或已消失的后代目录并保留相对路径诊断,继续传播根目录错误和取消,避免生成目录阻断正常源码及正文搜索。 搜索预览按路径和请求标识释放持有,覆盖切换文件、清空结果与收起预览,保留其他使用方和未保存内容,防止旧请求误清新预览。补充共享加载、连续导航及真实权限回归,同步契约、决策说明和功能矩阵。 * 修复搜索路径回退、按来源索引及辅助功能打开 恢复无斜杠查询的相对路径回退,保持 basename 优先且不绘制错误文件名片段,覆盖 src、Foo、src/Foo 和 Agent 补全。 通过既有分类上限按来源构建索引,Actions 本地匹配,Text 跳过名称索引,Files 与 Agent 仅请求名称,并移除模块激活时的正文预热。补充 2000 个生成文件的冷索引构建和驻留数量回归。 为预览结果添加独立的默认及命名 Open 辅助功能动作,保留鼠标单击预览、双击打开和键盘激活。同步共享 fixture、契约、决策说明和功能矩阵;134 项 Swift、26 项 Rust 回归通过。 * 修复 Unicode 文件名的大小写匹配与 UTF-16 高亮回退 --------- Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn> * feat(windows): Git Log 与项目菜单交互对齐 IDEA 的系列优化 (#1169) * feat(windows): 对齐 IDEA 的 Git Log 新建分支弹窗 - 右键分支“新建分支”改为专用弹窗,标题“从 {引用} 创建分支”,左上角使用应用 logo - 去掉 Checkout / Overwrite 选项,创建后固定检出新分支 - 初始名称沿用 IDEA 规则(远程分支去掉远程前缀),打开即全选 - 输入时清理非法字符(移植 GitRefNameValidator),空格转连字符并保持光标 - 点击创建后才校验空名称、HEAD、与远程分支/本地分支目录冲突、重名,错误显示在输入框下方 - 按钮顺序对齐 IDEA:创建(实心主色)在前,取消(描边)在后 - AppDialog 新增可选 iconNode 以显示自定义标题图标 - 更新 git-branches-remotes 功能矩阵条目 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * feat(windows): 右键菜单定位、删除分支恢复与提示对齐 IDEA - 所有右键菜单对齐 IDEA(Swing JPopupMenu):左上角落在点击点,放不下时 整体平移回窗口内,不再翻到光标上方或左侧;子菜单首行与父行对齐,右侧 放不下时翻到左侧,纵向只平移。覆盖 Base UI 的 ContextMenu 和自绘 Dropdown 的点位菜单,并去掉侧边栏项目点和更新菜单的自定义弹出方向。 - Git Log 删除本地分支不再弹确认框,直接删除;右下角弹出 IDEA 样式的通知 (信息图标、粗体“已删除分支:”加分支名、蓝色“恢复”文字链接、右上角关闭), 点击恢复在被删提交上重建分支且不切换,原上游仍在时恢复跟踪。Core 拒绝删除 (未完全合并、被工作树占用等)时显示 Git 给出的原因。 - 新增 ui/idea-notification 通知卡片,仅用于这类带操作的通知,不改全局 toast。 - 创建分支和 Checkout 成功后不再弹提示,失败时仍显示错误原因。 - 更新平台功能矩阵的验证说明和证据路径,验证状态保持 pending。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * feat(windows): 失效最近项目可移除,对齐 IDEA 的 Reopen Project - 点击路径已不存在或不再是文件夹的最近项目时,弹出确认框, 可选择“从列表中移除”,取消则保留并标记为缺失;原先只弹 toast, 用户无法清理失效条目 - 标题栏项目菜单的最近项目行新增移除按钮(悬浮显示,选中后按 Delete/Backspace 同样移除),缺失项目头像和文字灰显且按钮常驻; 按钮与菜单项并列放置,点击只移除,不会打开项目或关闭菜单 - 新增 recent-folders.store 测试,覆盖确认移除、取消保留并标记缺失、 路径不是文件夹三种情况 - 更新 workspace-open-switch 功能矩阵的 Windows 证据与验证步骤 * feat(windows): 项目下拉不再置灰当前项目并去掉勾选标记 - 当前项目行去掉 bg-selected 灰底和右侧勾选图标,保留 aria-current - 项目切换期间仅禁用其他行,当前项目行保持可用,点击仍为无操作 * feat(windows): Git Log 文本筛选按 Enter 搜索,新增可持久化的 Branch 筛选 对照 IDEA VcsLogClassicFilterUi / BranchFilterPopupComponent。 - 文本筛选框缩短为固定宽度,输入只改草稿,按 Enter 才搜索;清除立即生效, 输入法组词期间的 Enter 不触发 - 文本筛选右侧新增 Branch 下拉:可搜索,按 Local/各远程分组(不含 Tags), 选中后显示 × 一键回到 All - 所选分支按仓库保存(selectedReferenceByRepository),重新打开项目时恢复; 分支已被删除时回退为 All,并只在加载完成后落盘 - 控制器在同一仓库内因 load 变化重跑时保留当前选择 - 通用 Dropdown 打开时把滚轮应用到自身滚动容器,修复鼠标在菜单中部时 有时滚不动 - 项目下拉:没有最近项目时隐藏 Recent Projects 整块 - 补充测试,更新功能矩阵 git-history 与 Windows Git Graph Agent Note * fix(windows): 修复 Git Log 跨仓库筛选串扰与新建分支前缀冲突校验 审查反馈的两个 P2 修复: - use-git-log-controller 在更新 stateRepoPathRef 前先保存旧仓库路径再比较, 切换仓库时改用新仓库自己的恢复筛选(preferredReference),不再沿用上一 仓库的已选分支去加载并回退 All,外层持久化 effect 也不会在 ready 后把 旧仓库的选择写到新仓库的存储键上;同仓库内 load 身份变化(如语言切换) 仍保留用户当前选择 - validateNewBranchName 补齐反方向的 ref 命名空间冲突:候选名的任一 "/" 前缀已是本地完整分支时(如已有 feature 分支时输入 feature/a)在输入框 下方直接报错,不再等 Git 创建失败才暴露;新增 clashesWithBranchPrefix 错误码与中英文案 - 回归测试覆盖 A→B、A→B→A、B 无持久化筛选、恢复的分支已删除回退 All、 同仓库语言变更保留选择,以及分支名目录/前缀两个方向的冲突;两组测试 均已在修复前代码上验证会失败 * fix(windows): 修复评审提出的四项 P2:测试真实定时器、分组菜单键盘高亮、误删翻译键与 CI 注册 - git-commit-table.toolbar 测试用可控 requestAnimationFrame 队列替换 50ms 真实 setTimeout,显式 flush 帧推进滚轮绑定,通过 typescript-real-timer 稳定性门禁 - Dropdown 把键盘全局索引换算为各分组的局部行号传给 MenuItemsList(translateKeyboardFocus, 跳过禁用行),Branch 分组菜单方向键/End/Home 现在有高亮、会滚动到目标,Enter 激活的 行与高亮行一致;平铺 items 路径沿用同一换算消除禁用行错位。dropdown.test 新增跨组 导航、禁用行跳过、scrollIntoView 与 Enter 激活的回归用例 - 恢复中英文 git.log.branchCreated 翻译键,文件树 New Branch 成功提示不再显示原始键名 - 六个新增测试文件接入 Windows CI:toolbar/创建分支弹窗/分支名/分支分组进入 $graphTests 随机分组,recent-folders 并入 file-system lane(原 file-watcher 报告更名), dropdown 与 idea-notification 新增 ui-controls lane - 附带修复 git-log-branch-actions 测试泄漏:GitLogToolWindow ready 后写入的 selectedReferenceByRepository 未恢复,随机顺序下污染 git-log-preferences.store 测试(seed=1 可复现,即 CI gate 此前失败的原因);afterEach 现按快照恢复该 store 验证:graph 分组 20 文件 seed 1/3/7 全过(122×3);受影响 10 文件 51 pass; tsc --noEmit;verify-test-stability(全量与 CI base/head 两种模式); test-stability-windows.ps1 -Scope Frontend(最慢 49ms); verify-platform-feature-matrix-change.sh 与 verify-platform-feature-matrix.sh(156 capabilities)。 * fix(windows): 恢复分支时提示上游跟踪失败的部分成功状态 删除本地分支后的“恢复”先重建分支,再恢复上游跟踪。此前第二步的 失败被静默吞掉,用户只会看到“已恢复分支”,无法知道跟踪配置没有 恢复,后续 Pull/Push 可能要求重新配置上游。 - 重建失败仍显示恢复失败;重建成功但 setBranchUpstream 失败时改为 橙色警告,明确“分支已恢复,但上游跟踪恢复失败”,并附带 Git 原因 - 两种部分成功都不再误报为整体失败,仍刷新历史 - 新增中英文文案与回归用例:覆盖删除、点击恢复、跟踪写入失败, 断言不显示成功/失败 toast,且历史刷新只发生一次 - 清理 rebase 合并时 Git Log 图谱 Agent Note 残留的冲突标记 --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(plugins): 插件市场显示索引中的远程 SVG/PNG 图标 (#1378) * fix(plugins): show remote SVG/PNG icons from the marketplace index SwiftUI AsyncImage cannot decode SVG, so every index icon fell back to the default plug glyph. Download index icons through the marketplace transport, validate them with the same static-SVG/PNG gate used for package icons, and cache the result per URL in the feature model. * fix(plugins): retry and invalidate marketplace icons, add initials fallback - Move index icon state into PluginMarketplaceIconStore. Views read bytes for the entry they currently show, so a late request for a plugin the user has left can no longer paint its icon next to another plugin. - Share concurrent requests per URL; remember only rejections that retrying cannot fix (PluginMarketplaceIconRejected: bad URL, 4xx except 408/429, oversized, invalid format). Network errors, timeouts and 5xx are retried. - Refreshing sources invalidates icons, since Core allows branch refs: shown icons stay until new bytes arrive and pre-refresh results are dropped. - Compare the icon host case-insensitively, like Core. - Cache decoded NSImages in the view layer so rows do not re-decode SVG. - Plugins without a usable icon show an IDEA-style initials avatar reusing ProjectAvatarBadge: two Latin letters or one CJK character, colored by plugin ID. Installed plugins missing from every index use their manifest name. - Update the Agent Note and feature matrix; correct the "pins a commit" and "nothing written to disk" claims. * feat(plugins): 官方 Java 插件后端 SDK(#1351) (#1379) * feat(plugins): 官方 Java 插件后端 SDK(#1351) - sdk/java:零依赖、Java 8 起可用的插件后端 SDK,与 Node SDK 同一套契约、规则和错误语义 (分帧、litheBuild/litheFunctions 协商、取消、进程清理、状态存储) - sdk/java/examples/sample-build:Java 示例插件,与 Node 示例跑同一套 Core 端到端场景 - Core:运行时启动计划的版本探测复用构建运行时参数(java 用 -version),修复 Java 8 后端被判为不可用 - CI:Rust Core lane 跑 Java SDK 测试与端到端(Java 8 运行时、JDK 21 编译) - 新增 sdk-java-v* 标签发布工作流,产出 JAR 与 .sha256 * fix(plugins): Java SDK 按调用用进程组清理工具,隔离取消监听器异常 - macOS/Linux 上每个工具经系统 perl setpgrp+exec 成为进程组组长,Java 8/9+ 行为一致: 取消时整组 TERM→KILL,工具正常退出后立即结束组内遗留的后台进程,不影响并发调用。 - PERL5OPT 不传给 perl、在 exec 前还给工具;启动失败仍抛 IOException。 - Windows 或无 perl 时退回 ProcessHandle,工具退出后也清理仍可达的子孙。 - Cancellation 逐个隔离监听器异常;调用收尾放在 finally,保证请求一定回复。 - 新增回归测试,并更新 README 与 Agent Note 的进程边界说明。 * feat(build): Provider 请求携带 refresh 与宿主解析的构建工具 (#1351) (#1382) - Core: build.modelPlan / build.dependencyPlan 对 provider 来源接受可选 refresh 与 tool.executable,只在设置时写入 params;tool.executable 必须是绝对路径;command 来源忽略两者,不带参数时计划不变 - macOS: BuildSystemService 区分首次加载与重新加载(BuildLoadReason), Provider 计划先由 MacBuildToolResolver 解析 invocation 的可执行文件再 带上路径,解析失败只在 Build Output 记录并省略 tool - 工具窗口刷新/Reload/Retry、依赖 Reload/Retry、网页 build.refresh 视为 refresh;首次加载模型与首次展开依赖不带 - 同步插件契约 README、rust-core-api、build-plans fixture、Node SDK 类型、Agent Note 与平台功能矩阵 * fix(ci): allow Java SDK release in canonical repository (#1384) * fix(macos): 启动时被打断的模块激活不再弹出取消通知 (#1386) * fix(macos): 启动时被打断的模块激活不再弹出取消通知 启动期间模块图会重建,正在进行的激活因此被取消,抛出 CancellationError。 各模块协调器和 Agent 会话激活把它当作失败弹成通知。新增 Error.isCancellation 统一判断,取消不再提示,真正的错误照常提示;同步更新 workbench-notifications 能力记录。 * fix(macos): 语言服务器与运行扩展激活被取消时不再报失败 review 发现启动路径还有遗漏:文档打开触发的 LSP 激活被模块图重建打断时, markActivationFailed 会弹出“Could not start … language server”通知,并把取消 记成启动失败、触发后续重试。现在 markActivationFailed 直接忽略取消。 同样过滤语言运行扩展激活和向 Agent 会话附加文件时的取消。 * fix(macos): 不再需要的语言服务器激活失败不再提示 语言服务器激活失败只在它仍处于被要求激活的状态时提示:工作区里已关闭该 语言服务器、工作区已切换,或触发激活的文档已关闭时,过期的失败既不弹通知, 也不记为需要重试的启动失败。与激活成功路径已有的检查保持一致。 * perf(macos): 优化项目树展开并对齐 IDEA 交互与图标 (#1375) * perf(macos): streamline project tree expansion and IDEA presentation * fix(macos): preserve readable tree rows when chain probes are omitted * feat(windows): 终端支持扩展键盘序列,Shift+Enter 可在 TUI 中换行 (#1362) * fix(windows): 按发行版实际 automount root 转换 WSL 路径 [P2] WSL 盘符转换固定假设 /mnt — 已修。此前判断「需要 spawn wsl.exe 且本机无发行版可验证」是错的:`wsl.conf` 位于发行版内,Windows 可以 通过 UNC 共享直接读取,不需要启动外壳或子进程。 后端(host.rs): - `parse_wsl_automount_root` 解析 wsl.conf 的 `[automount] root` (INI 格式,支持引号、大小写、注释、`root = /` 的根挂载); - `wsl_automount_root` 命令按 `\wsl.localhost\<distro>` 与 `\wsl$\<distro>` 依次尝试读取;发行版名先做校验,拒绝包含分隔符、 冒号、`..` 或控制字符的输入,避免拼进 UNC 路径时逃逸共享; - 任何读取或解析失败都回退到文档默认值 `/mnt`,不阻塞粘贴。 前端: - `windowsPathToWslPath` / `pathToWslPath` 增加 automountRoot 参数, 空字符串表示盘符直接挂在 `/` 下(`C:\x` → `/c/x`); - 新增 `resolveWslAutomountRoot`,按发行版缓存(wsl.conf 只在编辑并重启 WSL 后变化),失败不缓存; - 终端四个入口(粘贴、显式粘贴、应用内拖放、外部拖放)先解析挂载根, 再格式化路径。 验证:Rust 5 个解析用例(默认值、读取、根挂载、引号大小写注释、 跨 section 不误取)全通过;前端 77 个单元测试通过,新增 「使用发行版上报的挂载根」「容忍尾部斜杠」「缺省回退默认」三个用例; 两套 CI 门禁本地实跑 40 项与 77 项全通过;tsc --noEmit、lint 0/0、 verify-test-stability、verify-windows-boundaries 通过。 说明:本机 `wsl.exe` 存在但未安装任何发行版,UNC 读取路径只验证了 「不存在时回退默认」,真实发行版下的读取待实机确认。 * feat(windows): 终端随应用分发 console host,恢复扩展键盘序列 Windows 10 的系统 conhost 不转发 kitty 与 modifyOtherKeys 键盘协议,因此 Shift+Enter 发出 CSI 13;2u 后被丢弃,kimi 一类 TUI 无法换行。Lithe 的发送侧 一直是对的,断点在 console host。 改为随应用分发 Windows Terminal 发布的 ConPTY 组件: - third_party/conpty/manifest.json 固定 NuGet 包 Microsoft.Windows.Console.ConPTY 1.25.2609.30003 的版本、下载地址与 x64/arm64 的 conpty.dll、OpenConsole.exe 校验值,MIT 许可与 LICENSE 一并保留; - scripts/prepare-conpty.ps1 下载并校验包,再按架构解出两个文件到 .artifacts/conpty/,写入 .lithe-conpty.json 身份戳;-BestEffort 供 dev 链路在 离线时降级为警告; - build.rs 把这两个文件复制到可执行文件同目录,portable-pty 以裸文件名加载 conpty.dll 时优先命中该目录;LITHE_REQUIRE_CONPTY=1 让打包构建在缺失时失败; - tauri.conf.json 的 bundle resources 把两者放进安装目录根,并让 dev 的 beforeDevCommand 先准备它们; - build-windows.ps1 / package-windows.ps1 按 RustTarget 选择平台并在打包前准备; - 复用清单注册 conpty 下载缓存,verify-download-cache.mjs 增加对应校验, 只接受 manifest 指定版本的那一个归档。 实测(x86_64-pc-windows-msvc):用 ConPTY 起一个请求 kitty 协议的子进程, 系统 conhost 下只收到 DA1 应答、收不到 CSI 13;2u;换成本组件的 conpty.dll 与 OpenConsole.exe 后完整收到 1b 5b 31 33 3b 32 75。dev 启动已确认先执行准备脚本 并把文件放进宿主 target 目录。 打包体积增加 1,208,984 字节(conpty.dll 119,608 + OpenConsole.exe 1,089,376)。 影响范围不止 Shift+Enter:所有终端会话的 console host 都由系统件换成本组件, 启动序列、光标处理、resize 与长输入路径都随之改变,需按新增功能矩阵行的验证 步骤做完整回归。真实产品交互验收仍为 pending。 * fix(windows): 回应程序的键盘协议协商,只在协商后发送扩展按键 上一提交让 console host 能转发 CSI 13;2u,但程序要先收到能力协商的答复 才会启用增强按键。xterm.js 把 CSI ? u 的 u 当作「恢复光标」的终结字节, 从不答复,因此 kimi 仍走旧键路径。 - 新增 terminal-keyboard-protocol:在原始输出里识别 CSI ?、>、<、= 与 u 组成的 kitty 协商序列,按栈维护当前 flags 并答复 CSI ? <flags> u。 只上报 Lithe 真能兑现的 disambiguate 位,程序 push 更高位时不虚报, 避免它期待永远不会出现的按键。 - use-terminal-connection 在把输出交给 xterm 之前喂给该解析器,答复通过 同一条 PTY 写入通道发回程序;会话重置时清空状态。 同时修掉一处被暴露出来的旧缺陷:terminal-keyboard 无条件发送 CSI 13;<modifier>u,对没有协商的程序(PowerShell、cmd 提示符)等于把 ESC 之后的残留字节当文本打出来,命令行出现 [13;2u。改为仅在 extendedKeyboardActive 时才使用该编码,否则交给终端自身的回车编码。 验证: - 23 个键盘相关单元测试通过,含「协商后发 CSI u」「未协商回落到 passthrough」「kimi 的 push 后 query 得到 CSI ? 1 u」「查询跨 read 拆分」 与「不虚报超出能力的 flags」。 - 完整前端套件基线/修复后两轮对比,失败集合完全一致(各 317),新增 0。 - tsc --noEmit、lint 0/0、verify-test-stability、功能矩阵(174 项)通过。 - 已实测:kimi 内 Shift+Enter 可换行;未协商的 PowerShell 不再打印残留字节。 * fix(windows): dev 启动在 ConPTY 准备失败时降级,并补缓存校验测试 回应 review 的两条建议。 [P2] beforeDevCommand 未启用回退:脚本提供了 -BestEffort,但开发启动没传, 干净且离线的工作树会因下载失败而无法启动。补上开关;打包流程仍保持 LITHE_REQUIRE_CONPTY=1,缺少资源时继续失败。 [P2] ConPTY 缓存校验缺测试:在 test-verify-download-cache.mjs 增加三段 断言——只保留清单指定的包并清掉旧版本、哈希不匹配时删除、以及 reuse-worktree-resources 的 conpty 路由与注册表条目存在。该块放在既有 Bun 用例之前,因为它不依赖 Bun。 校验器行为已用等价脚本独立验证三种情形:保留正确包并拒绝旧版本、 清除哈希不匹配的包、恢复后重新接受。 注:test-verify-download-cache.mjs 在本机整体仍失败,原因是既有的 Bun 用例用 `#!/bin/sh` 垫片模拟 bun,Windows 上不生效,与本次改动无关。 * fix(windows): 修正 ConPTY 资源声明时机与键盘协议/挂载根边界 回应 review 的四条 Finding,均为本次引入。 [P1] 默认资源声明使缺少 ConPTY 的干净构建直接失败 build.rs 先执行 tauri_build::build(),Tauri 处理 resources 里的固定路径时 文件缺失即 panic,早于后面的可选 staging 检查;Windows Rust CI 也没有调用 准备脚本。把这两个文件从 tauri.conf.json 的默认 resources 移到 tauri.jdtls.conf.json(打包专用,与 JDTLS/JDK 同一机制),默认开发与 Cargo 构建不再依赖它们。 [P2] 分片恰好停在 CSI 后时序列丢失 parseKittySequence 在 start >= buffer.length 时读到 undefined,被当作无关 序列丢弃。改为返回 incomplete 让调用方等待后续字节,并补「chunk 停在 ESC [」「push 跨分片」两条回归测试。 [P2] 宣告 disambiguation 位却只编码 Enter legacy 终端里 Tab 与 Ctrl+I 同为 0x09、Enter 与 Ctrl+M 同为 0x0D、 Escape 与 Ctrl+[ 同为 0x1B,程序无法区分。既然答复里宣告了该位,这些 别名组合也改为 codepoint 形式(CSI 105;5u / 109;5u / 91;5u);无修饰的 Tab/Enter/Escape 保持原有字节,shell 行为不变。补三条测试覆盖编码与 未协商时不编码。 [P2] 非 WSL shell 也触发挂载根查询 resolveAutomountRootForShell 对每个 shell id 都切掉固定四个字符, "powershell" 变成发行版名 "rshell" 并触发 UNC 读取,普通粘贴也要等它。 改为先判断 wsl: 前缀(大小写不敏感),其它 shell 直接返回默认值。 wsl_automount_root 同时改为 async + spawn_blocking,把 UNC 读取移出 异步运行时工作线程,避免界面等待无响应分布式的文件访问。 新增 wsl-automount-root.test.ts 覆盖七种非 WSL shell、空值、裸 wsl 前缀 与大小写。 验证:88 个相关单元测试通过;完整前端套件基线/修复后两轮对比,失败集合 完全一致(各 340),新增 0;tsc --noEmit、lint 0/0、cargo check、 verify-test-stability、verify-windows-boundaries、功能矩阵(178 项)通过。 * fix(windows): 按屏幕隔离键盘协议状态,兑现 Escape 编码并给挂载根查询加上界 上一轮评审的四条 P2 建议,逐条处理: 1. 协商消歧位后仍需编码 Escape。裸 0x1B 与所有 CSI/OSC 序列的前缀同形,正是 该位要消除的歧义,因此协商后 Escape 走 CSI 27 u(带修饰时 CSI 27;<mod>u)。 无修饰的 Tab 与 Enter 仍保持原字节:shell 依赖它们。 2. 键盘协议状态按屏幕缓冲区分开。程序在备用屏启用协议、退出后回到主屏,主屏 并未协商过,共享一份 flags 会让主屏对 CSI ? u 回一个它用不了的模式。现在 47/1047/1049 进屏时清空备用屏状态(程序崩溃未 pop 也不会泄漏给下一个程序), 离屏后回到主屏自己的状态。解析器同时识别这些屏幕切换模式。 3. 挂载根查询加有界回退。新增 automountRootNeededForPaths:只有 Windows 盘符 路径才需要挂载根,Linux 形式、协议路径和相对名直接跳过宿主查询,普通文本 粘贴不再等 UNC 读取。真正的查询有 2s 上界,超时按默认值继续;同一发行版的 并发查询只发一次,超时不缓存以便下次拿到真值。 4. ConPTY 许可随二进制分发。prepare-conpty.ps1 把 third_party/conpty/LICENSE.txt 复制为 ConPTY-LICENSE.txt,build.rs 与打包资源一并 stage,package-windows.ps1 在缺该文件时直接失败,不再出现只发 DLL/EXE 不带 MIT 声明的情况。 顺带把功能矩阵里指向 tauri.conf.json 的证据更正为 tauri.jdtls.conf.json 与 prepare-conpty.ps1,资源声明已在前一次提交移出默认配置。 验证: - 相关单测 90 个通过(键盘 14、协议 20、WSL 挂载根 14、文件拖放 42); - 完整前端套件基线/改动后各 361 失败,失败集合一致,新增 0;测试数 2684→2701, 增量为本次新增用例; - tsc --noEmit 干净;lint 0 error,改动文件无 warning; - cargo check 通过;移走 .artifacts/conpty 后仍通过且只给预期警告,降级路径未回退; - prepare-conpty.ps1 实跑,ConPTY-LICENSE.txt 已落到 .artifacts/conpty 与 exe 同目录; - verify-windows-boundaries、功能矩阵(178 项)、verify-test-stability 通过。 * fix(windows): 分离挂载根读取生命周期,给流式解析加上界并处理终端复位 上一轮评审的三条 P2,逐条处理: 1. 挂载根读取的生命周期与调用方超时分开。之前 `race` 的 `finally` 会删掉进行中 记录、缓存写入又落在已失败的 race 之后,结果超时后就丢失复用关系:迟到答 案进不了缓存,下一次粘贴重新发起 UNC 读取。若每次读取都超过 2s,自定义挂 载根会持续回退 `/mnt`,插入的路径指不到东西。 现在 `readAutomountRoot` 记录按自身生命周期管理:只有宿主真正结束后才移除, 成功即写入缓存(即使所有调用方都已放弃等待);等待上界只作用于调用方。 补「迟到成功仍进缓存且不重复读取」「超时后可复用仍在进行的读取」「失败不缓存」。 2. 未终结序列的缓冲与解析成本加上界。之前 `pending` 无上限,且每个分片都从头 重扫,长串数字会持续放大内存并造成累计二次方扫描,位置还在终端输出回调里。 新增 MAX_PENDING_SEQUENCE(32 字节,远大于最长被跟踪序列)、参数位数上限 (4)与参数个数上限(4);超限即丢弃并恢复扫描,不影响后续真实交换。 3. 收到 RIS(`ESC c`)时清除协议状态。xterm 会在 RIS 清掉自己所有模式,解析器 却不跟着清,导致终端复位后按键仍被编码成扩展序列。`feed` 现在逐字节扫描 ESC, 识别 `ESC c` 后清空两屏 flags、栈与屏幕标记;ESC 与 `c` 分处两个分片也成立。 顺带把「末尾单个 ESC 需保留」的判断改为基于扫描位置,避免 reset 与 CSI 混在一 个分片时漏看。 验证: - 协议单测 28 个通过(含 8 个新用例:缓冲区上限、参数上限、RIS 各形态); - WSL 挂载根 16 个通过(含迟到成功、超时复用、失败不缓存); - 穷举校验:`CSI ? 1049 h` + push + query 与 RIS 场景在**每个分片位置**结果一致; - 完整前端套件基线/改动后各 361 失败,失败集合一致,新增 0;测试数 2701→2711; - tsc --noEmit 干净;lint 0 error,改动文件无 warning; - verify-windows-boundaries、功能矩阵(178 项)、verify-test-stability 通过。 * fix(windows): 让 WSL 挂载根查询通过终端能力,而不是被关闭的 wsl 能力 评审指出的这条是真的功能缺陷,不只是测试写法问题: `capabilityForCommand` 把 `wsl_` 前缀一律归到 `wsl` 能力,而 `backend-capabilities.ts` 里 `wsl: false`,于是 `wsl_automount_root` 在发出 IPC 之前就被拒(`待开发: wsl (...)`),解析器永远走 catch 回退 `/mnt`。配置了 `[automount] root = /` 的发行版,插入 `C:\work\a.txt` 得到 `/mnt/c/work/a.txt`,这个路径在发行版里不存在。 问题定位:把路径放进 WSL 提示符属于终端行为,不是 WSL 管理能力。 读 `/etc/wsl.conf` 只决定 Windows 盘符挂在哪里,执行插入的是终端后端, 所以这条命令归 `terminal`(Windows 上为 true)。其余未实现的 `wsl_` 命令继续保持 `wsl` 能力限制,不受影响。 测试也一并纠正:解析器测试之前 mock 了整个 `@/platform/tauri-core` wrapper,恰好绕过了出问题的那一层,所以 16 个用例全绿却掩盖了缺陷。 Bun 的模块注册表在测试文件间共享,改 mock 底层 `@tauri-apps/api/core` 又会依赖文件加载顺序(实测会让 10 个用例随机失败),因此: - 解析器测试保留 wrapper mock,专注缓存/超时/路径判定; - 能力路由断言放进 `tauri-core.test.ts`(该文件自己注册原生 mock), 直接断言 `wsl_automount_root` 能到宿主、`wsl_list_distributions` 仍被 `wsl` 能力拒绝。 已验证修复有效性:撤掉 `tauri-core.ts` 改动后,这两个新断言失败; 恢复后通过。 验证: - `tauri-core.test.ts` + 解析器测试 30 个通过,两个文件同跑仍稳定; - 完整前端套件失败集合与基线**逐条比对完全一致**(340 = 340),新增 0; - tsc --noEmit 干净;lint 0 error,改动文件无新增 warning; - verify-windows-boundaries、功能矩阵(178 项)、verify-test-stability 通过。 * fix(windows): 协商后按协议编码 Alt+Backspace,并让宿主区分读取失败与默认值 上一轮评审的两条 P2: 1. Alt+Backspace 在协商后仍被编码成 Ctrl+W。disambiguation 位宣告后, 旧映射把 Alt+Backspace 发成 0x17 —— 与 Ctrl+W 完全相同的字节,TUI 无法 区分,绑在两者上的操作会被错误触发。现在协商后按协议发 `CSI 127;3u`。 无修饰 Backspace 保持 0x7f(shell 与 readline 的逐字符删除依赖它), Ctrl+W 也保持原控制字节;未协商时 Alt+Backspace 仍走旧映射。 顺带把 codepoint 编码抽成 `encodeCodepoint`,与 Escape 共用同一套修饰位 计算,避免两处各写一遍。 2. 宿主把「读取失败」伪装成「默认值」。`wsl_automount_root` 之前在两条 UNC 都读不到时返回 `"/mnt"`,前端无从分辨,于是把错误值缓存整个前端生命周期: 即使读取恢复,配置自定义 root 的发行版仍持续插入错误路径。 改为返回 `Option<String>`:`None` 表示没有任何 wsl.conf 被读到, `Some` 表示读到并解析完毕(`Some("")` 就是 `root = /`)。 前端只在拿到字符串时写缓存,`null` 视为「没学到东西」,下次仍会重查。 验证: - 键盘 19 个通过(新增 3 条:协商后 Alt+Backspace 编码、plain Backspace 与 Ctrl+W 不受影响、未协商时保持旧映射); - WSL 解析器 18 个通过(新增 2 条:`null` 不缓存且恢复后重查、`""` 作为 `root = /` 的正常答案会被缓存); - Rust 宿主 6 个通过,含新增的分发名逃逸拒绝用例; - 完整前端套件失败集合与基线**逐条比对完全一致**(340 = 340),新增 0; - tsc --noEmit 干净;lint 0 error,warning 数与改动前一致(65); - verify-windows-boundaries、功能矩阵(178 项)、verify-test-stability 通过。 * docs(windows): 记录终端键盘能力在 Windows 上的实测进展 在 dev 实例上复核了 Shift+Enter 的基础行为,把已确认和未确认的边界分开写清楚: 已确认 —— lithe-windows 的模块列表里 conpty.dll 来自构建输出目录(build.rs staging 的那份,非系统 conhost);同目录的 OpenConsole.exe 以 --headless 运行并 挂着 powershell.exe;在该 PowerShell 会话中按 Shift+Enter 行为正常,命令行不再 出现 [13;2u 字面量。 仍未确认 —— cmd / Git Bash / WSL 三种 shell、Tab 补全与 Ctrl+C、resize、超长 命令粘贴(7000 字符回退路径)、Vim/less 全屏 TUI、删除两个文件后的降级路径。 因此 verificationStatus 保持 pending:该状态要求按整行验证方式完成运行时验证, 只覆盖其中一项就标 verified 会与 metadata.json 的定义冲突。矩阵校验通过(178 项)。 --------- Co-authored-by: Lichenkang <2188718831@qq.com> * fix(agent): 修复多项目入口、历史活动时间与加载延迟 (#1355) * fix(macos): route tool window clicks to the active project * fix(agent): use conversation activity time for Codex history * fix(agent): stream history pages and reuse recent session lists * fix(agent): invalidate active history after completed turns --------- Co-authored-by: Lichenkang <2188718831@qq.com> * fix(windows): align MCP open window owner field (#1388) (#1392) * fix(settings): clarify project-local toolchain scope (#817) (#1393) * fix(windows): unify folder terminal entry and retain hidden fullscreen sessions (#1394) * fix(windows): open folder terminals in the shared bottom panel (#793) * fix(windows): retain fullscreen terminal listeners while hidden * fix(macos): make background service exit selection readable and bounded (#1344) (#1398) * feat(macos): 在行号右键菜单中开启和隐藏 Git Blame (#1397) * feat(macos): add Git Blame actions to line-number context menu (#451) * fix(macos): coordinate Blame and breakpoint context menus (#1397) * fix(macos): route Control-click through the line-number menu * feat(windows): 文件树、编辑器与提交视图的 IDEA 细节对齐 (#1390) * fix(editor): 关闭中文全角标点的易混淆字符高亮提示 Monaco 默认开启 unicodeHighlight.ambiguousCharacters,中文行内的全角括号 等标点会被标记为易混淆字符并提示 "could be confused with the ASCII character";该提示中的 Adjust settings 链接在嵌入 Monaco 的场景下没有 可跳转的设置页。全角标点在中文文案中是正常输入而非误敲,关闭该默认高亮。 同步新增 editor-unicode-confusable-highlight 功能矩阵条目(双端 implemented / 待验证),不可见字符检测等其他 Unicode 高亮行为保持不变。 * feat(windows): 移除文件树自动跟随编辑器页签跳转 编辑器切换文件页签时,项目树不再自动展开并滚动定位到当前文件。原行为由 默认开启的 autoRevealActiveFileInFileTree 设置控制,本次彻底移除: - useFileExplorerSync 删除 autoRevealActiveFile 入参与自动定位副作用, 仅保留卸载时使在途定位请求失效的守卫 - 移除设置项 autoRevealActiveFileInFileTree(类型、默认值、设置页行、 树面板下拉开关)并加入 RETIRED_SETTINGS_KEYS,旧安装的持久化值会被清理 - 移除 settings.files.autoReveal 中英文案 - 工具栏"定位当前文件"手动按钮与选择高亮同步保持不变 - reveal 测试改为纯手动定位用例并新增"切换活动文件不得滚动树"回归, 删除自动跟随测试;migrations 增加退役键用例 - 同步更新 2026-10-05 项目树 Agent Note 与 file-explorer 功能矩阵条目 * fix(windows): Windows 编辑器关闭易混淆字符高亮提示 4adb73a6f 只改了共享 frontend/editor 的 workbench(macOS WebKit 入口), Windows 产品使用独立的 monaco-editor.tsx 创建编辑器,提示仍然存在。 本次在两处 create 选项中加入 unicodeHighlight.ambiguousCharacters: false, 并更新 editor-unicode-confusable-highlight 矩阵条目的 Windows 证据路径。 * feat(windows): 编辑器滚动条对齐文件树的细圆头样式 Monaco 编辑器滚动条原为默认 14px 方角滑块,与文件树等应用内滚动条 (约 5px 可见圆头滑块、11px 轨道)视觉不一致: - EDITOR_CONSTANTS 新增 SCROLLBAR_TRACK_SIZE(11),两处编辑器 create 的 scrollbar 选项设置 vertical/horizontalScrollbarSize - monaco-editor.css 用透明边框 + background-clip: content-box 把滑块 收细为约 5px 并加 --app-scrollbar-radius 圆头,与 scrollbars.css 的 应用级滚动条同款;颜色沿用主题已映射的 --app-scrollbar-thumb 系列 - 覆盖主编辑器、Notebook 代码单元与提交差异预览(共用 .monaco-editor-shell) - 新增 editor-scrollbar-style 功能矩阵条目(Windows implemented, macOS 为共享滚动条体系 platform-specific) * feat(windows): 提交文件树排序对齐 intellij-community 提交面板与 Git Log 提交详情的文件树原先用 localeCompare 按字典序排序 (如 file10 排在 file2 前、大小写顺序随系统区域设置变化),与 IDEA 提交对话框的规则不一致。按 intellij-community 的 TreeModelBuilder 对齐: - 新增 natural-file-name-compare.ts,忠实移植 FileNameComparator (= NaturalComparator ignoreCase + likeFileNames 语义):数字按数值 自然排序、忽略大小写、忽略大小写相等时再按大小写敏感复比决断、 '-' 与 '_' 等价(IDEA-80435)、含格鲁吉亚字母大小写折叠与 空格/'#' 区间的传递性修正 - 目录节点先于文件节点(对应 IDEA 排序权重 5 < 6/7,原行为一致) - buildPathTree 新增可选 compareNames 参数,默认保持 localeCompare; git-status-model(提交面板)与 git-commit-file-tree(提交详情, 含首项预览的 firstLeaf 顺序)传入对齐比较器 - 项目树、文件导航等其他 buildPathTree 消费方排序不变 - 新增 7 个比较器/集成测试;同步更新 git-local-changelists 矩阵 条目与 2026-10-16 提交面板同步边界 Agent Note * fix(windows): 提交详情 diff 正文与中央分隔线保留 1px 间距 Git Log 提交详情的双栏独立 Monaco diff 中,两侧编辑器 lineNumbers/ glyphMargin 关闭且 lineDecorationsWidth 为 0,正文首列从编辑器 x=0 开始,直接贴着中央列 tearline 竖线(::before/::after 1px 边线)。 - independent-commit-diff-surface 的编辑器 lineDecorationsWidth 由 0 改为 1,文字与边线保留 1px 间距;两侧同值,水平滚动同步与连接带 几何不变,编辑器盒模型仍与中央区域共享整数布局边界 - 同步更新 2026-10-04 提交差异预览 Note(原记录"代码边界紧邻中央 区域")与 git-history 功能矩阵条目 - independent-commit-diff-surface.test.ts 18 项、typecheck 通过 * fix(editor): 补齐易混淆字符高亮关闭面并统一滚动条几何 代码审核发现的两个一致性问题: - unicodeHighlight.ambiguousCharacters 此前只在 monaco-editor.tsx 两处 create 与共享 workbench.ts 关闭,Notebook 代码单元、Git Log 提交详情 双栏 diff 与共享 diff-review(Windows 统一 diff 视图与 macOS diff 预览)仍会对中文全角标点弹出 "could be confused with the ASCII character" 提示;本次在剩余三个编辑器创建点补齐关闭,矩阵条目的 证据与验证范围同步覆盖 Notebook 与提交差异视图 - 细圆头滚动条样式只在 monaco-editor.tsx 设置 11px 轨道,但 CSS 作用于 .monaco-editor-shell 下全部 Monaco 滑块:Notebook 单元横向轨道仍为 默认 14px(可见滑块 8px),提交差异预览的高特异度规则还覆盖了其自有 1px 边框滑块设计,拆分视图滑块被压至约 2px。本次给 Notebook 补 SCROLLBAR_TRACK_SIZE 轨道尺寸,CSS 作用域排除 .commit-file-diff-preview, 差异预览恢复自有滑块与变更标记轨道设计,矩阵验证文本同步修正 - independent-commit-diff-surface.test 新增双栏关闭易混淆高亮的回归断言 * docs(matrix): 编辑器滚动条与易混淆高亮 Windows 侧实机验证通过 真实 WebView2 深浅主题下核对:主编辑器与 Notebook 代码单元滚动条 5px 圆头滑块、11px 轨道且与文件树一致;含全角标点的文档悬停不再 出现易混淆字符提示(编辑器/Notebook/提交差异视图)。两个条目的 Windows verificationStatus 升级为 verified,macOS 侧保持 pending。 file-explorer、git-history、git-local-changelists 的 pending 覆盖 长期积累的完整验证流程,不随本次局部验证整体翻转。 * fix(macos): 终端画布按预乘语义清屏,修复亮色白边 (#1359) Metal 合成缓冲要求清屏色为预乘值。终端画布把编辑器底色以 alpha 0 交给 SwiftTerm,清屏后得到「有效 RGB + 零 alpha」,文字混合后画布 alpha 等于覆盖度,合成器再叠加一次底层颜色,亮色背景上字缘过曝成白框、正文发浅。 - 无壁纸:画布改为不透明编辑器底色,view 与 Metal renderer 的 `isOpaque` 同步为 true - 有壁纸:清屏色改为预乘合法的透明 `(0,0,0,0)`,保留壁纸透出 - OSC 11 应答与清屏色一致:无壁纸报告编辑器底色,有壁纸报告黑色 - 单测覆盖壁纸、无壁纸、状态切换与 OSC 11 契约 - 新增 terminal-canvas-compositing 能力记录,说明画布透明度与 OSC 11 应答取舍 * feat(windows): make diff block rollback honor discard confirmation (#1329) * feat(windows): make diff block rollback honor discard confirmation Interaction rule change for both block rollback arrow entries: with "Confirm Before Discard" enabled, the hunk rollback now asks once before discarding; with the setting disabled it applies immediately as before. The hook-level confirmation covers the preview surface and the Monaco gutter controls, which both funnel through the same review rollback. The confirmation is bound to what it was opened against: at most one pending dialog (repeat clicks are ignored), and after confirmation the captured snapshot reference is re-checked - a refreshed or switched target (new snapshot, file, or repository) abandons the write and asks the user to operate again on what is now shown instead of rolling back content nobody confirmed. The previous direct-apply behavior was the deliberate product rule recorded in the 2026-10-04 note; this change aligns block rollback with the file and repository level discard protection, updates the setting's description in both locales, and revises the decision note in place. Tests cover confirm-apply, cancel, setting-off immediate apply, dialog- open snapshot refresh, and repeat clicks. * fix(windows): bind rollback confirmation to model state and cover monaco Review fixes for the block rollback confirmation change: - the confirmation identity now reads the review service's model state instead of a render-phase ref: publish() refreshes the service state before React rerenders, so a same-batch refresh plus confirm could pass the stale ref check and discard unconfirmed content. The hook binds the owner reference and the model-level snapshot, and re-checks both after the dialog - the plain Monaco diff hunk actions funnel through the same gate: operations gain an optional confirmDiscard probe supplied by the component (setting check, single pending dialog, shared copy), the action runner consults it before discarding, and an instance disposed while the dialog was open never writes. Callers without the probe keep applying directly - the platform capability matrix records the confirmation semantics and its evidence; the decision note describes the model-level identity and the monaco disposal guard - tests cover cancel, confirm-through, dialog-open disposal, and gate-less callers at the action level; the reviewer's controlled race reproduction passes * fix(windows): localize the rollback dialog and formalize the race test Review follow-ups for the block rollback confirmation: - the monaco confirmation reads the translator through a synchronized ref, so a dialog opened after switching the interface language uses the current locale without rebuilding the hunk-action owner - the controlled same-batch refresh-and-confirm reproduction moves from the ignored .artifacts folder into the tracked suite (use-commit-diff-review-confirmation-race.test.tsx) and joins the Windows CI timing group - the capability matrix entries drop the obsolete 'direct rollback even with confirmation' acceptance wording in favor of the new rule, with the change dated in the note history * fix: surface stale rollback to the UI and deduplicate the race test - the hook-level stale return now sets error: 'stale' on the state, which the preview surface already renders as a user-facing notice; previously the confirmed rollback silently did nothing when the target changed during the dialog - the confirmation race test merges into the main hook test file, removing the 330-line duplicate setup and the separate CI entry * fix: keep a switched target clear of the stale rollback notice A confirmation opened for one file used to publish the stale error onto whatever file the review had switched to by the time it was confirmed. Only the same owner with a refreshed snapshot still shows the notice; a switched owner drops the confirmation silently. The channel test now renders the hook inside LocaleProvider with discard confirmation off, matching the merged hook's localization and default-on confirmation. * fix(macos): 设置窗口 OK/Cancel 偶发失效 (#1399) ## 背景 - 共享设置窗口的关闭回调依赖 `settingsBindingID` 校验;该值此前不发布,视图可能持有过期 binding,OK/Cancel 因此静默失效而标题栏关闭不受影响。 - 设置窗口的 NSWindow 引用只在 `SettingsWindowAccessor` 的一次异步回调里赋值;回调落在视图挂载到窗口之前时 `performClose` 拿不到窗口且没有重试。 ## 改动 - `settingsBindingID` 改为 `@Published`,每次重绑定都刷新可见设置窗口捕获的 binding - `SettingsWindow` 恢复捕获本次打开的 binding 用于关闭校验,过期回调不得关闭新打开的设置窗口 - `SettingsWindowProbe` 在 `viewDidMoveToWindow` 时重新赋值窗口引用并配置 chrome,消除一次性赋值竞态 ## 验证 - `LitheCoreLogicTests`:旧 binding 拒绝关闭、当前 binding 允许关闭(237 tests / 4 suites 通过) - 平台能力矩阵门禁通过 Co-authored-by: Lichenkang <2188718831@qq.com> * docs: update README WeChat group QR code (#1400) * feat(settings): 按设计稿重做 macOS 设置界面,支持插件注册设置页 (#1395) * docs(design): add plugin settings UI mockup Reference mockup for the macOS settings window redesign: sidebar groups, card sections, info tips, value pills, and plugin-contributed pages. * feat(settings): rebuild macOS settings UI with plugin-registered pages - Restyle the settings window after docs/design/plugin-settings.html: sidebar groups, card sections, info tips, value pills, banners. - Plugins register settings pages through plugin.json (page, section, scope, effect, settingActions); the host only provides generic registration points and controls, no per-tool pages or buttons. - Settings v2: project/global/default layering resolved by Rust Core, project values stored in <project>/.lithe/plugin-settings.json, "immediate" settings pushed via workspace/configuration. - Plugin detail view with tabs; Java Support moves to plugin API 3 and places its language server settings on the Java language page. - Merge Git settings into one page; add workbench background preview. - Remove per-frame GeometryReader rebuilds and card shadows that made window resizing stutter. - Move explanatory text on all settings pages behind info tips and record the rule in the develop-lithe skill. * fix(settings): close plugin settings review findings * fix(settings): harden project settings file and align settings UI rules - Refuse a project settings file that is undecodable instead of overwriting or deleting the team's shared values; refuse symlinks at .lithe or at plugin-settings.json itself, dangling or not; cache the parsed document by modification date and size. - Match Rust Core value checks: Cc-only control characters and Windows absolute paths (C:\ / C:/). - Text and integer fields for immediate/reload settings commit on Return or focus loss instead of on every keystroke. - Restore Defaults clears only the layer each row edits. - Settings sidebar uses litheSelectionRow; Features caption moves into an info tip; Settings tab count includes setting actions. - Tests for damaged-file refusal, symlink refusal and Rust-aligned checks. --------- Co-authored-by: arkleselect <166632698+arkleselect@users.noreply.github.com> Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn> Co-authored-by: 若水 <frankw.wang@qq.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: waani <kuun993@163.com> Co-authored-by: muchen <145200703+Mucheen@users.noreply.github.com> Co-authored-by: 十二翼堕落天使 <61737634+icefery@users.noreply.github.com> Co-authored-by: Y.Hill <3046829330@qq.com>
chore(release): 发布 Lithe v0.6.4
docs(release): prepare v0.6.5 stable release
…redit docs(release): credit v0.6.5 process-lifecycle coauthor
* fix(macos): 运行 Node 脚本时补齐启动 PATH (#1455) (#1492) * fix(macos): 运行 Node 脚本时补齐启动 PATH (#1455) 从 Finder 启动的 Lithe 只继承 launchd 的最小 PATH,pnpm/npm/yarn/tsx 的 #!/usr/bin/env node 找不到解释器,运行 package.json 脚本直接报 env: node: No such file or directory。 - RunLaunchEnvironment:启动前把发现到的 node 目录和解析出的可执行文件目录 前置到子进程 PATH,按小写去重;项目内 node 与项目根目录不注入,避免仓库 文件劫持后续系统命令。 - RunExecutableResolver:.toolchain 与 .command 共用同一条环境组合路径, 覆盖主进程和预启动步骤。 - RunLaunchEnvironmentTests:6 个用例覆盖补齐、项目内排除、wrapper 排除、 去重与顺序、缺失 PATH、resolver 实际接线。 - 新增 Agent Note 与平台特性矩阵 run-node-launch-path 记录。 * fix(macos): 保留运行配置显式 PATH 优先级,补齐 Node 工具链覆盖 - 启动 PATH 改为追加:原有条目(含运行配置显式 PATH)保持优先级,自动发现 的 node 与启动器目录追加在后;Finder 启动时 PATH 本就没有 node,追加同样生效。 - 新增「显式 PATH 保持优先级」与 .toolchain("project-node") 接线测试,共 8 例。 - 修正 Agent Note 与特性矩阵中「两端都排除项目目录」「与 Windows 一致」的不准确 表述,补充 fnm multishell 等发现范围限制与 Windows 排序差异。 * feat(macos): AI 设置资源库、Agent 上下文长度与压缩阈值、对话多标签与性能、ACP 适配器升级 (#1490) * feat(macos): AI 设置资源库折叠、Agent 上下文长度与自动压缩阈值、对话多标签与性能、ACP 适配器升级 设置 - 设置 › AI 下新增可折叠的“资源库”,收纳指令、技能、Hooks、MCP 配置;面包屑为 AI › 资源库 › 页面,搜索和跳转自动展开。 - 设置页内容区随窗口宽度伸缩,去掉各页 900/860/760 的宽度上限,调大窗口不再留右侧空白。 - Agent 对话详情栏与上下文面板的说明文字收进 ⓘ。 Agent 上下文 - 设置 › Agents 新增“上下文”卡片:上下文长度、自动压缩阈值(支持 200K / 1M / 200000,留空沿用 Agent 默认值,占位值为 Agent 自己上报的大小)。 - Codex 写入 model_context_window / model_auto_compact_token_limit;Claude Code 只有一个压缩窗口开关,阈值(否则上下文长度)作为 CLAUDE_CODE_AUTO_COMPACT_WINDOW 传入。 - 圆环分母按配置封顶(Claude 回合内会在配置值和模型值之间来回上报),阈值与圆环不同时在弹窗多一行“自动压缩阈值”。 ACP 适配器与观测 - codex-acp 1.13.1 → 2.2.2,claude-agent-acp 0.81.2 → 0.95.0,配套 CLI 最低版本随依赖提高。 - Codex 2.x 把 401 当作“需要登录”且不再发失败更新,中继在信封保留原始类别并对适配器改成通用类别,宿主仍按永久错误立即取消。 - Claude 订阅经本机透传代理观测(ANTHROPIC_BASE_URL,请求原样转发,不读取令牌),Claude Code 起标题请求标记为 auxiliary,只计 Token 不计步数(Windows 同步)。 - 附件路径含百分号编码时额外带一行 📎 真实路径,避免模型读 %20 失败;斜杠命令不追加。 Agent 对话 - 编辑区对话改为每个对话一个标签(EditorTabItem.agentConversation(UUID)),新对话在新标签打开,当前标签为空时复用。 - 点开/收起思考过程不再重算整条对话(展开状态移入引用存储),已完成轮次的分组与导航索引缓存,每次刷新只重算当前一轮。 文档与矩阵 - 更新 Agent Note、设置归属 Note、rust-core-api 契约、功能矩阵(新增 agent-context-limits)。 * fix(agent): address PR #1490 conversation and usage regressions Bind editor tabs to Agent/session pairs and clean discarded prepared sessions while retaining drafts. Count all observed requests separately from conversation steps, preserve auxiliary-only usage, and retain legacy statistics compatibility. Make attachment URI tests platform-aware, align CLI version fixtures, and add deterministic regressions, owning notes, and feature matrix updates. * fix(settings): preserve resets and enforce source-backed configuration Invalidate context-limit drafts on external changes and Restore Defaults, including empty overrides with unsaved input. Guard blur and page-exit commits against stale snapshots and cover the native lifecycle. Deny camera and microphone requests in Agent visualization pages through the existing shared delegate and register the entry in media coverage tests. Document discover-edit-confirm-save-readback settings behavior, secret protection, and the scope of native configuration writes; keep feature evidence current. * fix(agent): 处理 PR 1490 评审发现的问题 - Claude 订阅在用户配置了自定义 ANTHROPIC_BASE_URL 时不再改走本地统计代理 - 斜杠命令只识别单个 /word,绝对路径开头的消息不再跳过附件路径行;含控制字符的路径不追加 - Rust 端把自动压缩阈值限制在上下文长度以内 - 会话命名请求只检查 system 的第一个块,不再序列化整个 system - 上下文长度输入拒绝十六进制和指数写法 - 只设压缩阈值时仍刷新 Agent 默认上下文长度 - 修正被新代码拆开的两处文档注释 * fix(macos): 新对话复用空会话时不再解绑标签;缺少 PATH 时保留系统目录 - 聚焦标签已绑定可复用的空会话时直接返回,避免解绑后又被 reconcile 绑回 - 启动环境缺少 PATH 时以 /usr/bin:/bin 为基础追加已解析目录,env 类 shebang 启动器可用 - PATH 去重改为区分大小写,不再丢弃区分大小写卷上的不同目录 * fix(macos): 设置页和窗口标题跟随应用语言而不是系统语言 (#1418) String(localized:) 按系统语言选语言包,locale 参数只影响格式,应用语言为英文而系统为中文时会漏出中文。 改为 AppLanguage.localizedString/localizedFormat,Text 字面量则交给环境 locale。 - 设置窗口和软件更新窗口标题 - 工作台背景图占位文字(设置页与工作台两处) - 终端默认 Shell 的“系统默认 · …” - 终端回滚行数的“N 行” - AI 供应商用途文字、设置搜索词、欢迎窗口标题 * fix(macos): 界面文案统一按应用语言取词,词条全部收进 shared/i18n (#1494) (#1496) * fix(macos): 界面文案统一按应用语言取词,词条全部收进 shared/i18n (#1494) - 新增 L10n.string / Bundle.appLanguage(LitheModuleAPI),由设置里的语言驱动 - 约 500 处 String(localized:) 与 NSLocalizedString 迁移到 L10n - 补齐约 370 条缺失的中英词条(错误、弹窗、Java 调试页、更新窗口等) - 新增 verify-app-language-localization.mjs 防退化并接入 verify-service-boundaries.sh * docs(agent): 要求界面文案必须走 shared/i18n 与 L10n,审查时核对 * fix(macos): 端口、退出码、HTTP 状态码不再被本地化数字格式加千分位 * fix(macos): 打开项目时可选本地或远程,远程开发窗口随窗口缩放 (#1487) (#1499) * fix(macos): 打开项目时按已保存的 SSH 连接选择本地或远程,并让远程开发窗口随父窗口缩放 (#1487) * fix(macos): 已保存 SSH 连接时,打开项目改为统一的本地/远程选择面板 (#1487) * fix(macos): 打开面板内置本地文件夹浏览,不再弹系统访达面板 (#1487) * fix(macos): 打开面板文件列表显示修改时间与大小,默认尺寸更大且不再随点击缩小 (#1487) * fix(macos): 远程开发窗口的主机地址行不再撑出窗口,长位置名截断显示 (#1487) * fix(macos): 远程开发窗口的地址行改为两行,位置信息换行完整显示 (#1487) * docs(matrix): 同步打开项目面板与远程开发窗口自适应的能力记录 (#1487) * fix(macos): 打开面板本地目录异步加载、路径校验与空目录提示,修复 review 反馈 (#1487) * docs(debug): #1210 统一调试内核、三层能力与调试适配器 Registry 设计 (#1500) * docs(debug): propose JSON-composed debugger plugin design (#1210) * docs(debug): narrow registry proposal and separate platform extensions (#1210) * docs(debug): redesign #1210 around a unified debug engine (#1210) - Replace the incremental Registry note with a unified Rust Core DAP engine plan: one kernel for both platforms, Swift session and per-language factories removed after P0 baseline parity (P0-P5). - Define required / recommended / optional capability tiers; #1210 closes on the required tier plus one third-party adapter (GDB DAP or lldb-dap) on both platforms. - Turn the native projections note into an optional extensions note covering all optional groups (breakpoints, expressions, stepping, sources, native, modules). - Add a session projection v2 draft schema with accept/reject examples: optional source/line/column, string addresses, presentationHint passthrough, stop generation and capability snapshot. - Update README and public extension note links. * refactor(macos): remove unused legacy editor code (#1498) * fix(macos): prevent Git Log filter labels from overlapping (#1342) (#1489) * feat(debug): #1210 P0/P1 调试行为基线、Core v2 投影与旧 Swift 会话删除 (#1508) * feat(debug): #1210 P0/P1 调试行为基线与 Core v2 投影,旧 Swift 会话删除 - P0:shared/fixtures/debug/v1-baseline.json 记录 15 项调试行为基线, scripts/verify-debug-v1-baseline.mjs 校验证据测试与 fixture 真实存在, 并接入 verify-shared-contracts.sh - P1:Rust Core 新增 v2 投影(source 可选、地址为字符串、开放 presentationHint、 stopGeneration、能力快照),共用 projection-v2-examples.json - P1:支持 DAP startDebugging 反向请求(debug.startDebuggingResponse), 仅在宿主声明 supportsStartDebuggingRequest 时启用;Node source map 位置透传 - macOS:新增 DebugProjectionV2,Core 会话与 fixture 对齐 - 删除旧 Swift DebugAdapterProtocolSession,Java、Python、Rust 全部走 Core 会话 - 移除宿主内置 Go(Delve)与 Node(js-debug)调试,之后由语言插件提供 - 更新提案笔记与 debug-adapters-1210 README * feat(debug): #1210 基础层能力快照、扩展注册表、过期引用、子会话聚合与 v2 投影输出 * docs(debug): #1210 提案笔记更新基础层进度 * fix(ci): #1210 补调试能力矩阵记录,修正 HTML 预览笔记的失效路径 * fix(debug): #1210 评审修复:停止代数竞态与按线程失效、过期栈帧、能力事件、子会话停止去重、v2 路径与栈帧校验 * chore(debug): #1210 decode_projection 仅测试使用 * chore(debug): #1210 去掉仅测试使用的导入警告 * fix(debug): #1210 父会话销毁时级联销毁子会话,统一父子生命周期 * feat(debug): #1210 macOS 多会话:startDebugging 子会话、统一生命周期与会话标签条 (#1509) * feat(debug): #1210 macOS 多会话:startDebugging 子会话、统一生命周期与会话标签条 * feat(debug): #1210 子会话默认复用 provider 会话工厂,宿主总是声明 startDebugging * refactor(debug): #1210 移除内置 Python、Rust stdio 调试器,只保留 Java,其余交给语言插件 * test(debug): #1210 投影 v2 夹具按文件位置定位,不依赖工作目录 * feat(debug): #1210 多会话 UI 改为折叠模式,会话切换并入线程选择器 * docs(matrix): #1210 调试功能矩阵补充多会话与内置调试器移除 * fix(debug): #1210 语言目录不再为 python、rust 声明内置调试适配器 * fix(debug): #1210 子会话启动前重放已保存断点,登记多会话平台矩阵 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(debug): #1210 子会话不抢选择、停止清理去重、会话菜单走 i18n Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * refactor(macos): 移除内置 Rust 调试器遗留的 lldb-dap 工具发现 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> * feat(debug): #1210 debugAdapters 声明校验与插件 API 4 契约 (#1510) * feat(debug): #1210 debugAdapters 声明校验、插件 API 4 契约与拒绝用例 * fix(debug): #1210 评审修复:onDebug 激活事件进 schema、API 4 以下拒绝 debugAdapters、安装检查覆盖适配器可执行文件 * fix(debug): #1210 安装检查跟随符号链接到最终普通文件(悬空、指向目录、循环均拒绝) * fix(debug): #1210 评审跟进:runtime 启动的 entry/packagedRuntime 纳入安装检查、路径规范化、空 debugAdapters 与 Core 一致 * fix(macos): 修复工作树列表与操作按钮 UI (#1503) (#1516) * fix(macos): restore worktree UI layout and action styles (#1503) * test(macos): isolate breakpoint cleanup from the default debug catalog * feat(debug): #1210 macOS 调试适配器宿主:声明式 Provider、调试控制台与插件热激活 (#1512) * feat(debug): #1210 debugAdapterID 启动计划与 debug.adapters.startArguments 命令 * feat(debug): #1210 macOS 声明式调试适配器 Provider(stdio launch) * test(debug): #1210 插件调试适配器传输与启动配置回落测试,补 Agent 笔记 * refactor(debug): #1210 移除调试启动解析器里遗留的内置 Rust / Python 分支 * feat(debug): #1210 调试适配器支持 systemCommand 启动,工具发现覆盖 Xcode 工具链 * fix(core): 清理 git 模块在非测试构建下的两个编译警告 UNTRACKED_DIRECTORY_SUMMARY_THRESHOLD 只有测试使用,重导出加 #[cfg(test)]; create_line_history_scratch 在 unix 分支里的外层 builder 不需要 mut。 * feat(debug): #1210 调试控制台提示符与补全,调试适配器可执行文件作为插件设置 调试控制台 - 控制台底部新增提示符输入行和补全弹窗,补全由适配器的 completions 请求提供, 首词只保留可执行的候选(过滤 lldb-dap 混入的 C++ 关键字和类型)。 - 插件可在 debugAdapters[].console 里声明 commandPrefix 与命令列表, 宿主按插件声明给出命令补全和前缀转换,不再按适配器名字写特殊分支。 - Core 新增 DAP completions 请求的转发与能力检查。 可执行文件设置 - debugAdapters[].configurations.launch.executable { setting, candidates[] } 与 targetBindings.program = "target.executable" 成对出现; 用户在设置里填的路径永远优先,填了却不可运行是终止错误,不回落候选。 - Core 新增 debug.adapters.executablePlan,只产出计划不碰文件系统; debug.adapters.startArguments 的目标事实新增 executable,必须是绝对路径。 - 宿主新增 MacPluginDebugExecutableResolver,按候选顺序检查文件系统; 设置页回显实际生效的路径和来源,找不到时在 ⓘ 里说明如何安装或编译。 - 契约、schema、fixture、README 和 rust-core-api.md 同步更新, 两项均加在尚未发布的插件 API 4 debugAdapters v1 内。 附带补充了中英文词条、两篇 Agent 笔记和对应的 Rust / Swift 测试。 * feat(plugins): #1210 调试适配器插件热激活,装完即用不用重启 插件的贡献在启动时一次性装进模块图,运行期没有再登记或撤回的路径,所以每次装插件都要重启。 这次只放行后端已经有运行期实现的插件,判断由宿主写在 PluginDescriptor.canActivateWithoutRestart, 不是 plugin.json 字段,插件契约不变。目前只有纯调试适配器插件满足条件,其余插件仍写成 .updateStaged,重启后生效。 - 新增内存实时注册表 MacLivePluginRegistry:后台线程用只读 store 扫描已安装目录,主线程读不可变 快照;扫描失败保留上一次的登记;generation 只在内容变化时加一 - 调试器查找、语言目录每次读取实时快照;debug-only 语言声明只给已有语言加 .debugAdapter,不改 名字、语言标识和语言服务器;装调试器不会重启正在跑的语言服务器 - 插件包被替换、移除、停用前先撤回,停掉它服务的调试会话 - 多个项目窗口各有一个注册表,用 litheLivePluginsDidChange 通知互相重扫 - MacPluginManager 的安装、更新、回退、卸载、启用/停用走实时路径,不再设置需要重启标记 - 修复 ValidatedPluginCatalog 按 id 排序遍历时 debug-only 声明可能先占住语言、让语言包被判成重复 的顺序问题 - 补 Agent 笔记和 PluginLiveActivationTests(19 个) * fix(debug): #1210 适配器拒绝请求时显示它自己的解释,而不是笼统提示 DAP 的失败响应有两段文字:message 是给客户端解释的简短原因,body.error.format 才是给用户看的说明(带 {变量} 占位符)。lldb-dap、debugpy 等把有用的信息只放在 后者,Core 之前只读 message,缺失时回落成英文笼统提示。 现在 Core 优先取 error.format 并用 error.variables 填充占位符,再回落到 message; 没有任何文字时 Swift 端的兜底提示也走 L10n(补齐中英词条)。 * test(debug): #1210 可执行文件绑定测试在 Windows 上改用平台原生绝对路径 Path::is_absolute 与平台有关,Windows 上 /work/main 不是绝对路径,Core 正确地拒绝了它,导致 Windows Rust 测试失败。测试改为按平台选择绝对路径,生产逻辑不变。 * fix(debug): #1210 评审修复:按请求与目标类型选适配器、拒绝未支持的传输、会话按插件停止、传递被禁用的能力 - 选择:文件启动只考虑支持 launch 且 targetKinds 覆盖 file 的 selector;语言归属(languageIDs)与启动选择(fileLaunchLanguageIDs)分开,只声明 attach 的适配器不再被选来启动文件 - 传输:宿主只能拉起 stdio,声明 tcpPort/tcpAnnounced 的适配器在启动进程前以 plugin.launch.unsupportedTransport 拒绝,并给出本地化说明 - 能力:capabilities.disabled 经 debug.createSession 的 disabledCapabilities 传给 Core - 会话:会话记录所属插件,更新、卸载、停用只停该插件拥有的会话,同语言其他插件的会话不受影响;在模块设置里停用调试模块时同样停止 - 文案:启动解析的拒绝原因走 L10n,补齐中英词条 - 文档与矩阵:更新插件热激活 Agent Note 与 rust-core-api.md,新增 plugin-debug-adapters 功能矩阵记录(macOS 已实现、Windows 未接入) * docs(debug): #1210 设计笔记补充 macOS P4 进展,更正适配器启动方式的过期描述 (#1518) * chore(ci): add Bot PR workflow for GitHub App identity (#1531) --------- Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn> Co-authored-by: muchen <145200703+Mucheen@users.noreply.github.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: arkleselect <166632698+arkleselect@users.noreply.github.com>
* feat(debug): #1210 tcpLanguageServer 调试传输:调试适配器随插件语言服务器运行(Java 迁入插件的第一步) (#1520) * feat(debug): #1210 tcpLanguageServer 调试传输:调试适配器随插件语言服务器运行(Java 迁入插件的第一步) debugAdapters 新增 tcpLanguageServer 传输,用于调试服务寄居在同一插件语言服务器里的适配器(Java Debug Server 之于 JDT LS)。该传输没有 launch.process,endpoint 只有 {languageID, command}:languageID 必须是同一插件 languageServers[] 里声明过的,command 限 [A-Za-z0-9._:-]{1,128}。宿主不拉起进程,而是启动该插件的语言服务器,用 workspace/executeCommand 执行 command,把返回值解析成 1…65535 的端口后连接 127.0.0.1。 Rust Core:DebugLaunch.process 改为可选(其他传输仍必填),新增 DebugTransport::TcpLanguageServer 与 DebugEndpoint 校验;programs() 产出 languageServerDebugAdapter,命令变化需要重新批准;debug_adapter_launch_plan 对无进程适配器返回插件语言服务器的启动计划和 debugAdapter 描述符。 macOS:DebugAdapterProcess 换成 DebugAdapterLaunch(host 为 .process 或 .languageServer);MacJavaDebugAdapterTransport 改名 MacHostedPortDebugAdapterTransport,端口来源由宿主注入,不再知道 Java;LanguageToolingSessionManager 新增 startHostedDebugAdapter,校验语言服务器确由该插件拥有,内置 Java 语言服务被拒绝;端口解析抽成 debugAdapterPort(from:)。tcpPort、tcpAnnounced、attach 和 runSelectedRuntime 仍被拒绝,拒绝文案改为只支持 stdio 与语言服务器承载的适配器。 契约与文档:plugin-manifest.schema.json、契约 README、rust-core-api.md、声明草案和 #1210 Agent Note 同步,新增 debug-adapter-language-server 契约 fixture;功能矩阵补充证据与验证说明。i18n:3 条 Java 专属文案改为通用文案,新增 3 条,调整传输拒绝文案,并重新生成产物。 测试:Rust 新增 3 个 Core 测试;Swift 新增解析器、传输、端口解析(16 个用例)与语言服务器归属测试。 * fix(debug): activate hosted language servers and cancel stale adapter starts * fix(ci): respect runtime boundaries and stabilize native regression tests * Merge pull request #1534 from 1lck/codex/remove-bot-pr-workflow chore(ci): remove unused GitHub App Bot PR workflow * feat(debug): #1210 远程 attach 契约与普通 TCP 生命周期边界 (#1525) * feat(debug): #1210 tcpLanguageServer 调试传输:调试适配器随插件语言服务器运行(Java 迁入插件的第一步) debugAdapters 新增 tcpLanguageServer 传输,用于调试服务寄居在同一插件语言服务器里的适配器(Java Debug Server 之于 JDT LS)。该传输没有 launch.process,endpoint 只有 {languageID, command}:languageID 必须是同一插件 languageServers[] 里声明过的,command 限 [A-Za-z0-9._:-]{1,128}。宿主不拉起进程,而是启动该插件的语言服务器,用 workspace/executeCommand 执行 command,把返回值解析成 1…65535 的端口后连接 127.0.0.1。 Rust Core:DebugLaunch.process 改为可选(其他传输仍必填),新增 DebugTransport::TcpLanguageServer 与 DebugEndpoint 校验;programs() 产出 languageServerDebugAdapter,命令变化需要重新批准;debug_adapter_launch_plan 对无进程适配器返回插件语言服务器的启动计划和 debugAdapter 描述符。 macOS:DebugAdapterProcess 换成 DebugAdapterLaunch(host 为 .process 或 .languageServer);MacJavaDebugAdapterTransport 改名 MacHostedPortDebugAdapterTransport,端口来源由宿主注入,不再知道 Java;LanguageToolingSessionManager 新增 startHostedDebugAdapter,校验语言服务器确由该插件拥有,内置 Java 语言服务被拒绝;端口解析抽成 debugAdapterPort(from:)。tcpPort、tcpAnnounced、attach 和 runSelectedRuntime 仍被拒绝,拒绝文案改为只支持 stdio 与语言服务器承载的适配器。 契约与文档:plugin-manifest.schema.json、契约 README、rust-core-api.md、声明草案和 #1210 Agent Note 同步,新增 debug-adapter-language-server 契约 fixture;功能矩阵补充证据与验证说明。i18n:3 条 Java 专属文案改为通用文案,新增 3 条,调整传输拒绝文案,并重新生成产物。 测试:Rust 新增 3 个 Core 测试;Swift 新增解析器、传输、端口解析(16 个用例)与语言服务器归属测试。 * feat(debug): #1210 远程 attach 契约:attach 配置声明 connection 绑定,适配器在远端的设计 Note - attach 配置的 targetBindings 新增 connection:host+port 或 address,目的地是适配器参数里的点分路径(最多 4 段),可选 pathMappings(objects/first 两种形状) - 声明期拒绝目的地冲突(与其他目的地、processId/cwd 参数或默认 arguments 重名/包含),运行期 set_argument 只写空位 - debug.adapters.startArguments 支持 connection 目标,校验主机/端口/映射,返回 connection:{host,port,remote};回环只按字面量判断,其余一律 remote:true - 适配器没有路径映射绑定而目标带了映射时拒绝,而不是悄悄丢弃 - plan 描述符新增 remoteAttach:{pathMappings},宿主据此决定界面,不按适配器名字判断 - 不新增权限,debug.attach 已覆盖;契约 README、schema、rust-core-api、fixture(含 22 条新拒绝用例)、功能矩阵同步 - 新增 Agent Note:适配器运行在远端——经 SSH 的 stdio 调试(仅设计,待确认四项默认选择后再实现),并更新统一调试 Note * feat(debug): #1210 远程 attach 兼容性审计:路径映射补 dictionary / pairs 两种形状,缺口清单与路线图 按各调试器上游文档核对“附加到远端程序”的参数写法后,路径映射就四种写法: - objects:对象列表(debugpy pathMappings、delve substitutePath) - first:唯一一条映射写成两个字符串(js-debug localRoot/remoteRoot) - dictionary:以 local 或 remote 一侧为键的对象(CodeLLDB sourceMap、PHP pathMappings) - pairs:二元数组列表,order 为 remoteLocal 或 localRemote(lldb-dap sourceMap) 形状装不下用户给的映射就拒绝,不截断:first 只接受一条(此前只取第一条,与 “不悄悄丢映射”的原则矛盾,属于未发布 API 4 内的行为修正),dictionary 在键的 一侧不能出现同一个根两次,违反返回 debug.target.invalid(target.pathMappings)。 plan.debugAdapter.remoteAttach 增加 maxPathMappings,宿主据此决定最多显示几行。 契约与 fixture:schema 增加两个 oneOf 分支;remote-attach fixture 增加 keyed、 paired 两个适配器(共 6 个);拒绝用例新增 6 条(共 28 条)。 Note:#1210 统一 Note 新增“兼容性审计”,逐个适配器标注“已核对 / 待核验”,列出 G1–G11 缺口(空闲端口占位符、tcpConnect、监听 attach、URI 目标、命令模板等)的 现状、决定和触发条件,并更新后续路线;SSH Note 说明适配器原生映射与 Core 路径翻译 是叠加的两层,远端适配器必须由 Core 翻译。 * docs(debug): separate network paths from TCP lifecycle scope * feat(debug): #1210 内置汇编级调试:反汇编、指令步进、指令断点、寄存器与只读内存 (#1527) * feat(debug): #1210 内置汇编级调试:反汇编、指令步进、指令断点、寄存器与只读内存 内核按适配器能力开放汇编级调试,插件只负责启动 lldb-dap/gdb 等适配器;能力快照 supported = 适配器声明 ∧ 已注册扩展 ∧ 已授权。 - 无源码栈帧:栈帧不伪造文件和第 1 行,显示函数名与地址,暂停后自动打开反汇编 - 反汇编:debug.inspect disassemble 与反汇编视图,高亮当前指令,保持最小滚动,剩余不足时向后续读 - 指令步进:debug.execute 增加 granularity,仅适配器声明 supportsSteppingGranularity 时生效;反汇编打开时步过/步入按指令前进,面板头部与按钮提示同步变化,不支持时提示仍按源码行前进 - 指令断点:debug.setInstructionBreakpoints,点击地址栏设置或移除;只属于当前会话,不持久化、不重放 - 寄存器:作用域 presentationHint registers 显示为寄存器标签;宿主不内置 CPU 寄存器表 - 内存:debug.inspect readMemory,接受地址或保存着地址的表达式,从目标前 64 字节读起并分页;目标字节在十六进制和 ASCII 两侧高亮并滚入可见区;右侧显示设置可切换进制、每格字节数、每行字节数、字节序与 ASCII 列;读不到的字节显示为缺失;只读,不开放 writeMemory - 单步局部刷新:next/stepIn/stepOut/stepBack 保留现有检查数据并原地替换,线程、调用栈、变量、反汇编、内存与 JSON 视图不再整面板清空,变化的内存字节被标出;继续、暂停、结束才清空 - 变量 JSON 视图:修复顶部空白带,key/value 分色高亮 - i18n:新增词条走 shared/i18n 并生成;功能矩阵新增 debug-disassembly(Windows 待实现);设计笔记补充真实 lldb-dap 验证结论 * fix(debug): #1210 guard retained inspection across steps and cancellation Freeze the old variable tree before the next stop reloads scopes and keep inspection controls read-only until replacement. Retire disassembly and memory callbacks before synchronous cancellation, and reject stale disassembly retries after session changes. Clear retained inspection when transport fails or the session terminates. Label memory offsets relative to the requested reference, use shared text-input and font owners, and update the owning decision note and platform verification steps. Add four deterministic regressions reproduced against the original PR. Validation: 152 selected Swift tests and 72 Rust debug tests passed; i18n, shared contracts, platform boundaries, test stability, Agent Notes, matrix gates and runtime bundle immutability passed. Real GUI and Windows runtime validation remain pending. * feat(debug): #1210 实现普通 TCP 调试连接与有界生命周期 (#1538) * feat(debug): #1210 implement direct TCP adapter lifecycle Unify hosted and external DAP byte streams behind a replaceable connection provider; reserve the seam for future network routes without adding proxy or tunnel behavior. Add explicit endpoint validation, per-connection remote consent, a one-shot launch/attach entry, bounded startup/write buffering, generation-fenced callbacks, and bounded disconnect draining. Keep the debuggee target separate and external resources user-owned. Cover routing, cancellation, queue limits, cleanup and real loopback Core DAP initialize/attach/disconnect. Update shared fixtures, localization, architecture notes and the platform capability matrix. Windows host and real debugger acceptance remain out of scope. * fix(debug): #1210 修复 TCP 调试连接评审问题 - 被拒绝或不可达的端口立即以系统原因失败,不再停在 .waiting 等满超时 - 端点发现与建连各自独立计时:发现 120 秒(语言服务器冷启动),建连 10 秒 - 外部适配器会话初始化期限改为 10 秒建连加 10 秒握手,不再抢在建连之前结束 - 连接对话框在连接启动前保持打开,失败原因留在对话框内并保留已填内容 - connectExternalDebugAdapter 返回失败原因,不再静默丢弃请求 - 当前文件没有调试提供方时,"连接调试适配器…"菜单项不可用;主机名先去除首尾空白 - 删除宿主端口传输中无人使用的错误分支 - 补充发现/建连两段期限与真实回环拒绝连接的测试,同步 Agent Note 与功能矩阵 * refactor(debug): #1210 将 TCP 调试连接生命周期下沉到 Rust Core 连接状态转换、取消规则、代次令牌与过期结果拒绝、只结束一次、 建连/写入/排空期限、待发字节与消息预算、单个在途写入,原先都写在 macOS 的 MacTCPDebugAdapterTransport 里,Windows 接入要重写并重新 证明同一套规则。现在这些规则由 Core 的独立状态机持有,平台只做 I/O。 Core(rust/lithe-core/src/debug/transport_lifecycle.rs) - 与 DAP 协议状态机独立,按 transportId 登记。 - 新增命令 debug.transport.policy / handle / release:平台发送事件, Core 返回新代次、阶段、结果和有序效果(发现端点、设置或取消计时器、 连接、写入、投递数据、关闭、报告失败、通知终止)。 - Core 没有时钟,只决定期限长短和到期后的转换;待发数据只以字节数 越过 JSON 边界,真实字节、socket 与计时器句柄留在平台。 - 共享 fixture shared/fixtures/debug/transport-lifecycle-v1.json 覆盖 约 28 个场景,Rust 逐步回放;已登记到 v1-baseline。 macOS - 新增 RustDebugTransportCore.swift 类型化桥接。 - MacTCPDebugAdapterTransport 只拥有 NWConnection、端点发现任务、待发帧 字节和系统计时器,并执行 Core 返回的效果;core 参数贯穿托管端口、 插件和外部端点三条传输,会话初始化期限改读 Core 策略。 - 计时器触发后也释放句柄,避免排空计时器继续持有传输。 - Core 调用本身失败时本地静默拆除并向所有者报告一次。 已接受的行为差异:观察者在错误输出回调里调用 stop() 时,终止通知 现在仍会送达(旧实现把它当作生命周期被替换而吞掉);重启仍会使旧 通知作废。 文档:更新 Agent Note、功能矩阵与 rust-core-api 契约。 * feat(plugins): Java Support 独立分发、迁移与按需安装 (#1483) * feat(plugins): 支持 Java 签名安装与双架构独立发布基础 * feat(plugins): 完成 Java Support 迁移与按需分发入口 * fix(plugins): suggest Java restoration after completed removal * docs(plugins): inventory Maven and Java migration for #1495 (#1513) * fix(run): 统一跨平台启动环境、容错扫描与构建事件过滤 (#1543) * fix(run): share launch environment and resilient workspace policies * fix(run): stop shared Java enumeration at its source limit * docs(plugins): plan macOS public APIs and SDK documentation (#1548) * feat(plugins): #1495 原生 Provider 工作流与只读工程模型共享 (#1517) * feat(plugins): execute native build tasks in workspace providers (#1495) * feat(plugins): discover and execute native provider tests (#1495) * feat(plugins): prepare and persist provider application runs (#1495) * feat(plugins): prepare native provider debug sessions (#1495) * feat(plugins): share read-only provider model inputs (#1495) * fix(build): isolate producer revisions and own run saves * feat(plugins): Java Support 独立分发、迁移与按需安装 (#1483) * feat(plugins): 支持 Java 签名安装与双架构独立发布基础 * feat(plugins): 完成 Java Support 迁移与按需分发入口 * fix(plugins): suggest Java restoration after completed removal * docs(plugins): inventory Maven and Java migration for #1495 (#1513) * fix(run): 统一跨平台启动环境、容错扫描与构建事件过滤 (#1543) * fix(run): share launch environment and resilient workspace policies * fix(run): stop shared Java enumeration at its source limit * docs(plugins): plan macOS public APIs and SDK documentation (#1548) --------- Co-authored-by: Lichenkang <2188718831@qq.com> Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn> * fix(macos): 修复 Java 启动竞态、插件启动参数与无限重试 (#1526) * fix(macos): stabilize Java startup and plugin launch (#1523, #1524) * test(macos): bound language startup regression task waits * test(macos): allow disk image creation margin within integration budget * fix(macos): revoke deferred language activation when project session closes * test(macos): cover production language launch and navigation evidence * fix(ide-host): include ttlMs and cacheScope in MCP tools/list (#1545) (#1546) The helper advertises protocol revision 2026-07-28 through server/discover. For that revision ListToolsResult extends CacheableResult, where ttlMs and cacheScope are required, but building the result with ..Default::default() left both fields absent. Clients validating the negotiated wire shape rejected the whole server with INVALID_RESULT (ZCode 0.17.0, Qoder). The catalog describes live IDE state, so the result is immediately stale (ttlMs 0) and private to the connected client. Co-authored-by: jiaqizhang258 <321343564+jiaqizhang258@users.noreply.github.com> Co-authored-by: Lichenkang <2188718831@qq.com> * fix(mcp): 稳定 Windows 请求调度与授权生命周期 (#1549) * fix(mcp): stabilize Windows request delivery and protocol discovery * fix(mcp): recover independent notifications and enforce monotonic deadlines * fix(macos): 独立多 Diff 标签与连续滚动、工作树管理体验 (#1555) * fix(macos): support independent diff tabs and continuous Git browsing - isolate diff sessions, editor groups, focus, navigation and async reads - auto-load disassembly, Git/worktree history, VCS and MCP discovery lists - preserve scroll anchors and suppress background Git command noise - add worktree change management and shared localized actions - organize develop-lithe guidance in Chinese and update capability records - repair per-toolchain SwiftPM resource caches and add regression coverage - align affected macOS code with the pinned Swift 6.3.3 compiler Refs #1210 * fix(macos): 工作树更改页即时暂存、工具栏精简与 Git 控制台取消过滤 工作树「更改」页 - 勾选复选框后立即显示目标暂存状态(乐观显示),Git 完成后以实际结果为准; 仅等待本工作树状态扫描完成即恢复可点击,不再被全项目刷新阻塞。 - 工具栏只保留有实际动作的按钮:刷新、暂存全部、丢弃所选、显示 Diff; 移除灰显无作用的占位按钮,启用条件与选区/可暂存项一致。 - 提交历史页脚在加载中/失败/空闲都有固定行高内容,不再留空白带。 - 概览动作改为自然宽度的单一换行流,宽窗口详情自适应两列。 Git 控制台 - 在任何命令启动前就被取消(被后续请求取代)的请求不再显示为失败行; 已启动命令的取消仍保留并标注原因。同步更新共享契约、fixture 与 Windows journal。 其他 - Git Log 筛选弹窗/图/Diff 的布局与滚动细节调整,补充对应测试与中英词条。 - 同步 git-worktrees 平台能力记录。 * fix(macos): 修复多 Diff 标签刷新、历史重试、反汇编宽度与保存更改比较的评审问题 - 状态刷新只在本次真正读取过状态的仓库内才把"缺席"当作文件已干净;链接工作树的标签不再被 工作区刷新误关,由该工作树自己的状态读取(refreshWorktreeChanges)决定是否关闭 - 工作区/目录比较刷新内容未变时不再给会话的 @published 属性赋值(不重绘、不丢滚动位置); 新增 GitRepositoryDiffSession.updateDocument,同时比较补丁与行(与 HEAD 的比较没有补丁文本) - 目录比较刷新改为就地更新(showDirectoryDiff 增加 refreshingConfirmedRoots),不再清空行并闪现加载态 - 提交历史加载失败后的显式重试按已加载条数重新打开窗口,不缩回首页、不移动选择 - 反汇编列表只对最长候选行做文字测量,不再每次 body 求值都测量全部行 - 保存更改比较恢复"快照属于当前仓库"的校验,并在打开标签前校验版本与文件,避免留下空标签 - 补充回归测试,并更新两份 Agent Note * fix(remote): #1507 远程工作区、构建与插件执行适配 (#1515) * fix(remote): adapt workspace I/O and plugin execution for #1507 * fix(remote): continue #1507 common backend lifecycle and plugin validation Integrate PR #1515 onto the preview baseline, preserving plugin live activation and shared i18n changes. Reserve pending process, terminal and watch starts before dispatch; retain cleanup ownership across cancellation, worker saturation, disconnect and session shutdown. Add deterministic lifecycle and declarative remote launch regressions; isolate the empty connection registry test, fix Swift fixture shadowing and synchronize terminal resize with shell readiness. Update contracts, Agent Notes and partial/pending capability evidence. Java/JDT integration remains out of scope. * fix(remote): own plugin snapshots and isolate upload I/O Add session-owned run directory allocation and cleanup with retryable errors, original-session macOS deployment cleanup, and per-upload I/O isolation. Cover lifecycle and upload ordering regressions, update contracts/resource boundaries and capability evidence, and record optional transfer/environment candidates without expanding Agent or Java scope. * fix(remote): preserve repository identity and consolidate remote crate Keep remote Git repository roots and external metadata bound to their original host, including parent repositories and symlink roots. Consolidate client, protocol and server into lithe-remote with isolated client/server features, preserving the standalone server binary. Update consumers, packaging, CI selection, resource validation, contracts and regression coverage. * fix(remote): 修复合并后的 Agent Notes 路径,补齐能力矩阵并收紧远程扫描失败判定 - 两条 proposed 笔记的适用范围仍指向已合并的 rust/lithe-remote-client, 改为 rust/lithe-remote/src/client/,修复 Verify Agent Notes。 - 能力矩阵:remote-development-workspace 增加 BuildSystemService 与共享扫描证据, 写明运行配置发现尚未接入远程(Core 对 runConfig.inspect 返回 NotSupported, 仅 runConfig.selectJava 可用);run-discovery 增加同一说明。状态不变。 - 远程共享运行扫描只在链路取消、超时或中断时整体失败;主机对单个目录报告的 错误仍记为扫描不完整,与本机一致。判断集中到 workspace_io::is_transport_failure, detectors/scan.rs 与 workspace_scan.rs 共用,修正此前两处不一致。 - 新增集成测试:读取主机目录树且占位目录保持为空、单目录错误记为不完整、 根目录之下链路中断时扫描失败。 * fix(macos): avoid reentrant workbench hit testing (#1542) (#1557) * chore(scripts): 按作用语义整理 scripts 目录层级 (#1563) * chore(scripts): 按作用语义整理 scripts 目录层级 把 scripts/ 根目录下 127 个平铺脚本移入分类子目录,根目录不再放任何脚本。 全部使用 git mv,历史可追溯。 新目录: - ci/{common,cancel-closed-pr-runs,update-repo-charts}:CI 脚本,按工作流名分目录 - macos/{build,package,prepare,test,verify,perf,probe} - windows/{build,prepare,package,test,verify} - release/{sparkle,macos,autobuild,windows,notes} - rust-core、architecture、i18n、agent-notes、platform-feature-matrix、 plugins、remote、ide-mcp、editor、git-graph、agent、resources 同步修改: - classify-ci-changes.sh 路径模式、plan-ci-lane-reuse.mjs 基础设施规则、 对应测试夹具(夹具复制脚本时按新目录深度建目录) - ci-macos.yml 的 scripts/**/*.sh 循环、verify-i18n.yml 等工作流路径与 paths 过滤 - sparkle 的三个 Ruby 脚本改为 require_relative "../autobuild/autobuild-identity" - tauri.conf.json 的 beforeDevCommand / beforeBuildCommand - README、docs、Agent 笔记、Skill 和 Fonts NOTICE 中的脚本路径 - develop-lithe Skill 新增“脚本放置与分类”一节,AGENTS.md 增加入口提醒: 脚本必须在 scripts/ 下按作用分类,不得放在 scripts/ 根目录 验证: - 127 个脚本在旧分类器/新分类器下的 lane 结果一致,未知路径仍然 fail closed - 127 个脚本的规划器基础设施规则一致 - 受影响的 node/bun/shell/ruby/python 测试与 i18n、特性矩阵、Agent 笔记、 共享契约、模块/服务/编辑器边界、运行时 bundle 只读校验均通过 * fix(scripts): 修复 scripts 分类整理的评审问题 - Windows 前端安装测试移到 scripts/windows/build/,与被测脚本同目录, 测试夹具里复制脚本的路径、ci-windows.yml 的运行命令、分类器 windows 分支 和 Agent Note 里的路径同步更新 - 分类器空分支删除 3 个已不存在的平铺脚本名,避免过期名字被误当成已登记 - 规划器的 Windows 规则改为按目录匹配(windows/、release/windows/), 并单独登记 ide-mcp/build-windows-ide-mcp.mjs,补齐测试期望, 与分类器的路由保持一致 - develop-lithe Skill 补充:平台专属脚本留在所属跨平台领域目录的例外、 手工验收脚本放 test/、tauri.conf.json / package.json / official-plugins.json inputPaths / worktree-resources.json 里硬编码脚本路径的检查清单 * fix(windows): 补全 JavaSelectionRequest.requirements,修复 Windows 安装包构建 (#1507) (#1565) #1515 给 lithe-core 的 JavaSelectionRequest 新增了必填字段 requirements, 但 Windows 的 select_project_java 仍按旧字段构造,导致 Release AutoBuild 的 Windows 安装包步骤报 E0063 编译失败。 - windows/tauri/src-tauri/src/run.rs:Windows 传 root,requirements 与 root 互斥,所以填 None - develop-lithe Skill:补充 lithe-core 公开 Rust 类型/签名也是兼容面, Windows 直接链接 Core,改动时要同步检查调用点并给出检查方法 * docs: refresh WeChat community QR code (#1569) --------- Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn> Co-authored-by: muchen <145200703+Mucheen@users.noreply.github.com> Co-authored-by: arkleselect <166632698+arkleselect@users.noreply.github.com> Co-authored-by: jiaqizhang258 <549728022@qq.com> Co-authored-by: jiaqizhang258 <321343564+jiaqizhang258@users.noreply.github.com>
* fix(ci): align AutoBuild macOS release timeout budgets (#1572) * fix(macos): 修复硬链接文件打开并提供三种保存选择 (#1419) (#1575) * fix(macos): support explicit hard-link save choices Allow regular hard-linked documents to open and require a fresh per-save choice to detach the current path, update shared contents, or cancel. Pause autosave, retain conflict and object-identity guards, and reconcile open aliases after shared writes. Classify document access failures with actionable localized messages, preserve drafts on cancellation and write failures, and add native/workflow/router regressions with updated decision notes and platform evidence. Fixes #1419 * fix(macos): continue explicit hard-link saves after autosave checks * fix(ci): decouple AutoBuild publication from plugin mirrors (#1576) * Merge pull request #1497 from frankxii/windows-optimise-1025 fix(windows): 对齐 Commit 面板与 macOS,并支持隐藏变更列表和父仓库引用选项 * fix(macos): 工作树状态刷新、历史撑满与独立提交面板 (#1579) * fix(macos): 改进工作树历史与状态刷新并复用独立提交面板 * fix(macos): preserve worktree status exclusions and diff commit locking * fix(macos): #1550 缓存 LSP 设置页语言摘要并减少主线程布局 (#1551) * fix(macos): #1550 缓存 LSP 设置页语言摘要并减少主线程布局 * docs: update LSP cancellation validation script paths --------- Co-authored-by: Lichenkang <2188718831@qq.com> * fix(git-host): launch Git through forward-slash paths and report empt… (#1574) * fix(git-host): launch Git through forward-slash paths and report empty version probes On some Windows hosts (disk-encryption or endpoint-security filters), a Git started through a backslash path prints nothing to a captured pipe, while the same executable started through a forward-slash path behaves normally. The version probe therefore returned an empty string, which validate_version reported as "Git 2.31 or newer is required" even for Git 2.48.1, leaving every repository unreadable regardless of the selected executable. - Normalize the resolved executable path to forward slashes on Windows, keeping UNC and verbatim paths untouched. - Treat a successful but empty version probe as a probe failure with its own message instead of a too-old Git, and do not cache it. - Cover the path normalization with a unit test. Refs #1566 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(git-host): cover Windows executable resolution with forward slashes Add a Windows-only test that executable() returns the selected path with forward slashes, so the launch-path normalization cannot be dropped silently. The test fails when the normalization is removed. Refs #1566 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> * perf(windows): 消除 Windows 端 UI 卡顿与补全卡死的根因 (#1577) * perf(windows): deliver LSP diagnostics as one batch per Core drain Each publishDiagnostics event used its own frontend `emit` (a full IPC round trip broadcast to every window) and its own diagnostics store update, which copied both maps per file. Importing a large Java project published hundreds of files at once and the editor stalled behind them. The adapter now keeps the newest set per URI within one `lsp.waitEvents` drain and emits a single `lsp://diagnostics` batch, flushing before a lifecycle change so ordering is kept. The LSP client resolves workspace state once per batch and applies every file with one store update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(windows): render large Markdown previews without repeated work Code-block highlighting replaced each block with `String.replace` over the whole document, rescanning and copying it once per block: a document with a thousand fences took about 1.9 s, and code containing `$&` or `$1` was corrupted by replacement-pattern expansion. The blocks are now substituted in one pass with a replacer function (about 7 ms). The preview also swapped in the unhighlighted HTML on every edit and then the highlighted HTML, rebuilding and laying out the whole preview twice. It now keeps the current preview until the edited document is highlighted; only an empty preview shows plain HTML first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(windows): run blocking host commands off the WebView2 UI thread Tauri runs a synchronous command inline on the thread that dispatches IPC, which on Windows is the WebView2 UI thread. Commands that read or write files, walk or delete directories, start processes or register native watches froze painting and input and queued every other invoke while they ran: Java language-server launch resolution (fingerprint, JDT LS and java probes, cache cleanup), toolchain discovery, run configuration resolution and writes, file reads and writes, clipboard paste, terminal and Agent creation, plugin rescans and launches, and document watch registration. These commands are now async and run their body through a shared `run_blocking` helper on Tauri's blocking pool. The develop-lithe skill records the rule together with the batching rule for frequent events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(windows): move PATH searches and plugin settings I/O off the UI thread Profiling the Windows build showed `get_tool_path` called thirty times while a project opens, each searching every PATH directory on the WebView2 UI thread, and cheap commands such as `plugin:event|listen` waiting up to 1.4 s behind such work. `get_tool_path`, the declarative plugin settings, run/test plan and web file commands, disk-install cancellation and the Agent panel settings commit now run through `run_blocking` as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Merge pull request #1497 from frankxii/windows-optimise-1025 fix(windows): 对齐 Commit 面板与 macOS,并支持隐藏变更列表和父仓库引用选项 * perf(mybatis): index only mapper-named Java files and rebuild on mapper edits The MyBatis index tree-sitter-parsed every Java file in the workspace, and both hosts rebuilt it on every Java edit. On ruoyi-vue-pro this ran 11 times (108 s total, 22 s max) while typing, starving completion requests. - Core reads mapper XML first and parses only Java files whose stem matches a namespace segment (a.b.Outer.Inner names Outer.java). - Windows and macOS rebuild only when an XML mapper or a Java file already paired with a statement changes; newly opened buffers still reload. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(markdown): skip layout for off-screen preview blocks Opening an 86k-line preview spent 26 s in native layout. Top-level text and code blocks now use content-visibility: auto with an intrinsic size hint; tables are excluded because paint containment would clip their overflow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(markdown): drive preview highlighting with a controlled highlighter The preview test waited on a real setTimeout, which the test-stability gate rejects. useHighlightedMarkdown now takes the highlighter as an optional argument (defaulting to highlightMarkdownCodeBlocks), and the test completes each highlight itself. It also asserts that the previous highlighted preview stays visible while an edit is being highlighted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(macos): 工作树状态刷新、历史撑满与独立提交面板 (#1579) * fix(macos): 改进工作树历史与状态刷新并复用独立提交面板 * fix(macos): preserve worktree status exclusions and diff commit locking * fix: preserve settings transactions and queued agent lifecycle * fix(windows): guard background saves, clipboard and terminal ownership --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: 若水 <frankw.wang@qq.com> Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn> * docs: 添加 APINEBULA、TIMI CC 和 Zeus 赞助商 (#1583) * docs: add APINEBULA as the third sponsor banner * docs: add TIMI CC and Zeus to sponsor tables * docs: move Zeus below CCSub and shorten sponsor copy * test(macos): expect the typed symlink error in agent edit rollback (#1582) #1575 made document reads open with O_NOFOLLOW and report a symlink as DocumentFileAccessError.symbolicLink instead of a CocoaError. The rollback test that swaps the created file for a symlink during the trash operation still expected CocoaError, so Swift tests failed on preview. The test now expects the typed error; its checks that the link and its target are left untouched and the recovered copy is removed are unchanged. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * docs: refresh README product screenshots (#1585) * docs: lead README gallery with IDE workflows (#1587) * docs: remove IDEA comparison annotations from README screenshots (#1588) * docs: 调整 README 徽章并修正发行版链接 (#1589) * docs: center trending badge in README * docs: point release links to current repository --------- Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn> Co-authored-by: 若水 <frankw.wang@qq.com> Co-authored-by: lincoco <77844710+lin-coco@users.noreply.github.com> Co-authored-by: AACS111 <103710223+AACS111@users.noreply.github.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* perf(lsp): stop copying open documents and draining events on the main actor The engine copied the whole client state for every request, document change, and server message while holding the session locks. That state holds the full text of every open document, so a jdtls project import, which publishes thousands of messages, kept completion and navigation waiting behind the copies. Open document text is now shared (Arc<str>, still a plain JSON string), and each server message is parsed once, outside the state lock, instead of up to three times. macOS drained Core's event queue on the main actor every 10 ms while requests were pending, waiting on the same session lock. The drain now runs off the main actor; a send waits for a drain already in flight, so a drain still never returns a reply before its operation is registered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(jdt): key the workspace on build structure and tune the jdtls JVM The JDT -data fingerprint no longer includes build-file mtime or size. jdtls already detects pom and Gradle script edits itself (MavenProjectImporter.needsMavenUpdate, GradleProjectImporter. checkGradlePersistence), so switching to a fresh -data directory on every edit only turned an incremental update into a full re-import. The Gradle wrapper distribution stays part of the key because jdtls does not check it. jdtls now launches with the GC and logging defaults vscode-java and the upstream CI use (ParallelGC with GCTimeRatio=4 and AdaptiveSizePolicyWeight=90, -Xlog:disable, DetectVMInstallationsJob disabled). A plugin option with the same key replaces each default, and a plugin collector choice replaces ParallelGC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(matrix): record the JDT workspace key and jdtls JVM defaults Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(run): keep detected run configurations in memory, not in the workspace Identifying a project wrote .lithe/run/generated.json, toolchains/ requirements.json, project.json and .gitignore into the user's workspace, and Run and Debug stayed unavailable until the user pressed "Identify project". Core now owns the detected layer: - runConfig.generate stores its result per workspace in process memory (execution/generated_layer.rs); inspect, resolve, user-configuration id checks and toolchain diagnostics read it from there. - An optional cacheDirectory records the result in the application cache so a new session can list JDT's previous Java entry points before JDT answers. A .lithe/run/generated.json left by older versions is only read as that seed, never written. - resolve picks the default configuration (framework service first, else the first detected entry other than Current File) when project.json names none. - selectJava derives the project JDK minimum from pom.xml / .java-version / the Maven wrapper before any generation. Hosts stop writing detection files and identify automatically: - Windows removes run_write_generated; the run store identifies a project on load when inspect reports missing, without the entry-count notice. - macOS removes MacRunConfigurationStore.writeGenerated, passes the cache directory, identifies after the workspace snapshot is applied, and drops the "regenerate broken generated.json" action. - UI copy no longer mentions generated.json (shared i18n regenerated). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(run): restore detected entries alongside saved tasks after restart * Merge pull request #1568 from 1lck/codex/macos-global-style feat(macos): 补齐全局编辑器样式与 VS Code/IDEA 语法配色 * Merge pull request #1567 from 1lck/codex/issue-1564-global-search fix(search): 修复搜索布局并支持文件名优先展示与滚动自动分页 * feat(editor): 类方法跳转默认开启并新增 Java 关键字跳过查询设置 (#1561) * feat(macos):完善类方法跳转与悬停导航交互 * fix(macos): 稳定慢查询期间的 Command 悬停光标 * fix(editor): present Java files after initial import folding * fix(editor): delay Command hover hints and cancel pending hints on leave * fix(editor): show Command navigation feedback before semantic lookup * fix(editor): exclude non-code tokens from Command navigation * fix(editor): color Java comment delimiters as comments * feat(macos): preserve navigation toggle implementation for integration * fix(macos): unify welcome actions and clone remote panels * feat(java-support): own optional class and method navigation lifecycle * fix(navigation): sync plugin opt-out across projects and preserve other providers * fix(i18n): preserve catalog ordering after preview merge * test: align Java generator host capabilities and pin Git fixture branch * fix(remote): resolve daemon startup before attaching concurrent clients * fix(windows): provide the optional Java requirements snapshot * feat(editor): 类方法跳转默认开启并新增 Java 关键字跳过查询设置 - 撤销插件级 classMethodNavigation / editorNavigation 开关(设置、策略表、校验和契约 fixture)。F12、Command 点击、悬停提示和 implementation 回退对所有语言默认生效,由宿主统一实现。 - 新增宿主设置“Java 关键字不查询定义”(设置 → 编辑器,默认开启):关键字位置不再发送定义查询,避免语言服务器对 static、switch 等关键字等待约 7 秒。 - Java 库类跳转优先读取本地 -sources.jar(~/.m2、~/.gradle 缓存),找不到时回退到 JDT LS 反编译。 - 删除已废弃的开关截图,新增关键字设置截图。 Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> * fix(matrix): 移除已删除的 editor-navigation fixture 证据路径 Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> * fix(navigation): 仅对 jar 内库类异步查找 sources jar 非 jar 的虚拟文档保持同步请求语言服务器,避免选择器接受目标后的源码请求被推迟; 合并 preview 并修复 Java 实现选择器相关回归测试。 Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> * fix(navigation): 撤回 sources jar 快速路径并保留 this/super 构造器跳转 - 撤回本地 sources jar 快速路径:文本与 JDT 返回的坐标不一定对应,且 jar 文件名无法确认依赖身份,统一回到语言服务器虚拟文档。 - Java 关键字过滤不再包含 this 和 super,它们对应构造器调用,仍会发送定义查询。 Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> * test(macos): align rollback symlink assertion with document errors * test(git): 为子模块测试的 git submodule add 放宽超时 Windows runner 上 git submodule add 克隆子模块超过辅助函数写死的 10 秒, 进程被取消,导致 watch_context_resolves_a_submodule_git_directory_outside_its_workspace 失败。该测试的时间预算已在 test-stability-windows.ps1 中放宽到 30 秒, 这里把命令超时与预算保持一致,其余 git 命令仍使用 10 秒。 Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> Co-authored-by: lick <2188718831@qq.com> * fix(run): 只将已确认的 Java 应用识别为 Spring 服务 (#1593) * fix(run): require confirmed Java entries for Spring services * docs(run): align launch boundary with confirmed Spring entries * test(run): require confirmed services in persistence fixtures * fix: 连续输入时刷新两端 LSP 补全候选 (#1592) * fix(lsp): preserve completion refresh context across editor hosts * fix(completion): type trigger mapping and adapter expectations --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * 统一 Java 启动准备并补齐保存到构建的同步 (#1594) * Unify Java launch preparation and notify language servers after saves * fix(windows): refresh buffers before launch save notifications --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * fix(windows): 启动反馈、Blame 闪烁、导入进度与全局 Maven 设置 (#1600) * fix(windows): startup feedback, blame flicker, import progress and global Maven settings - Agent host subprocesses (environment probe, subscription quota, MCP probe) start with CREATE_NO_WINDOW so the Agent panel no longer flashes consoles. - Windows are created with the last applied theme background, stored in the app local data directory, instead of WebView2's white until first paint. - Inline Git blame refreshes only for file or history changes, keeps the previous annotation while reloading, ignores index-only rewrites, and is off by default for new installs. - The status bar shows Java import percentage, current module and download, then language-server background tasks; navigation during import reports the import progress and slow requests show a pending notice. - The Maven settings page edits <localRepository> of the user's own ~/.m2/settings.xml without a project, with revision-checked writes. - New "Import Java projects on open" setting: automatic, ask or manual. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(windows): honour the import policy in run discovery and translate Maven settings errors - Automatic run-configuration generation on project load no longer starts the Java import when the user chose to be asked or to import manually; an explicit generate still starts it. - The Maven user-settings host returns error codes that the settings page maps to translated messages; OS errors are shown inside a translated frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(windows): drive the Maven user settings draft through the injected picker Typing relied on React's input-event plugin seeing this file's DOM, which fails when another test file loaded react-dom first in the same process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(windows): serialize window background writes and keep linked settings.xml - Windows applying a theme at the same moment shared one temporary file; writes now take turns under a process-wide lock. - Saving the user Maven settings writes through a symlinked settings.xml instead of replacing the link with a regular file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(windows): keep the shared navigation notice until the last slow request settles Each navigation dismissed the shared "Finding…" notice when it finished, hiding it while an earlier slow request still waited. The notice now counts the requests showing it and closes after the last one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(windows): drop background tasks when a language server process restarts A recovered process never ends the previous process's work, so its tasks would stay in the status bar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * feat(macos): 补齐提交文件操作、批量回滚确认与初始布局 (#1591) * feat(macos): complete commit file actions and rollback confirmation * fix(git): publish file mutations before workspace recovery * fix(macos): refresh open commit panels independently of project reloads * test(macos): drive native rendering while awaiting LSP snapshot updates * fix(macos): 目录删除前避开 Provider 歧义根并重新发现仓库根 - Git 未跟踪目录删除的资格检查纳入 Provider 的歧义根,嵌套但未选定 VCS 的工作副本不再随父目录移入废纸篓 - Git 与插件的未版本化目录废纸篓删除在执行前有界地重新发现 Provider 根;结果与缓存不一致、被截断或失败时拒绝并触发重新发现 - 补充歧义根与确认期间新增嵌套根的回归测试,更新提交文件操作 Agent Note * feat(macos): 设置页新增网络代理,支持跟随系统/不走代理/自定义服务器 (#1571) * feat(macos): 设置页新增网络代理,支持跟随系统/不走代理/自定义服务器 新增「外观与行为 › 网络」设置页,管理 Lithe 自身 HTTP 流量的代理策略: - 三档模式:跟随系统(默认,即现状行为)、不走代理(显式禁用)、自定义代理服务器 - 自定义档完整字段:代理类型(HTTP/SOCKS5)、服务器地址、端口、 可选用户名与密码(密码存 Keychain,经 SecureStore 端口读写, 不入偏好存储)、逗号分隔的排除列表(kCFNetworkProxiesExceptionsList) - 测试连接:经端口 NetworkProxyChecking 由 MacNetworkProxyTester 执行, HEAD github.com、10 秒有界超时,成功显示耗时或失败显示原因 - 统一接入点 MacNetworkSessionProvider:按 NetworkProxyPreferences 快照缓存会话,配置变化时旧会话 finishTasksAndInvalidate;提供 applyPolicy 供自带超时的稳定版回滚下载复用同一策略;自定义未填完整时按跟随系统处理 - 四个 URLSession 出口接入:插件市场传输与下载、GitHub 传输、AI HTTPS 传输、 MacStableRollback;三个传输的 session 参数改为按请求解析的 sessionProvider, 设置变化对新请求生效,无需重建服务 - 明确不接管并在设置页说明:Sparkle 更新(框架无会话注入 API, SPUDownloader 写死 defaultSessionConfiguration,天然跟随系统代理)、 AI 明文 HTTP 的 NWConnection 分支、终端 git/Agent 子进程、JVM 依赖下载 - 新增 NetworkProxySettingsTests(16 例)与 MacNetworkSessionProviderTests; 更新 SettingsSidebarLayoutTests;词条进 shared/i18n 真源并重新生成; 功能矩阵新增 network-proxy-settings(macOS implemented/pending, Windows platform-specific) * feat(macos): 网络代理自定义配置增加重置按钮 与保存成对:放弃未保存的草稿,把类型/地址/端口/用户名/排除列表 恢复为当前已保存生效的值;密码框不从 Keychain 回显,重置一并清空; 之前的测试连接结果随旧草稿一并清除。复用现有 native.reset 词条。 * chore(matrix): 网络代理设置 macOS 实机验收通过,转 verified * refactor(network): 代理策略下沉 Rust 内核并修复评审缺陷 按维护者方向把双端可复用的代理逻辑下沉 Rust 内核,Swift 只保留 前端绑定与平台映射: - 新增确定性命令 network.proxyPolicy(rust/lithe-core/src/network/): 归一化(trim、排除列表清洗、密码保形)+ 校验(未填完整的 custom 归一为 system),共享 fixture proxy-policy-v1.json 预钉跨平台契约, 契约文档补索引与 Network proxy 小节 - Swift 侧新增 RustCoreBridge+NetworkProxy 桥接;MacNetworkSessionProvider 改持 policyResolver(组合根注入桥接,测试注入静态计划),CFNetwork 字典映射保留为平台专属部分,以 Rust 返回的 plan 为唯一事实来源 修复评审 4 项缺陷: - P1 初始化同步:updateNetworkProxyPreferences 移到 init 真正末尾 (原先误落在 restoreDefaults),重启后快照恢复已存策略;补重建设置 对象后检查快照的回归测试 - P1 凭据隔离:凭据仅绑定到其所属代理(质询主机/端口需与配置一致), 系统/直连会话不挂凭据 delegate,杜绝凭据发给其他系统代理 - P2 测试连接使用有效密码:草稿为空时回退已保存密码 - P2 Keychain 写失败保留密码草稿与重试入口 复用现有 native.reset 词条的重置按钮行为不变;Swift 侧归一化去重, 归 Rust 权威。 * fix(network): 隔离代理凭据并修复会话与连接测试生命周期 将密码与代理身份同存 Keychain,由 Rust 归一化策略拒绝跨端点复用;旧版无身份密码需重新输入。以覆盖响应消费的会话租约避免设置切换时提前失效,并让稳定版回滚复用完整认证会话工厂。连接测试增加资源总超时、取消和过期结果隔离。补共享 fixture、回归测试、中英提示与决策笔记。验证:Swift 85 项、Rust 1373 单元及 32 集成测试、i18n 35 项及相关静态门禁通过;真实代理产品验收保持 pending。 --------- Co-authored-by: Yao Jingxi <23722032@bjtu.edu.cn> * feat(icons): add common project file glyphs and bot Agent icon (#1606) - macOS/Windows: dedicated icons for .gitignore/.gitattributes, go.mod/go.sum, Makefile, package.json, lock files, README and LICENSE (#1584) - Windows icon generator accepts lithe: sources for original icons; PowerShell icon moves under it so regeneration keeps it - Agent tool-window entry uses the Lucide bot glyph on both platforms * feat(plugins): macOS 公共宿主 API、纯命令与后端生命周期补全 (#1595) * docs(plugins): 按 preview e8c4e9f 刷新 macOS 插件 API 计划 #1517(原生 Provider 工作流)和 #1515(远程工作区适配)都已合并, 计划里"在途/未合并"的说法已过时。本次只改文档,不改运行时代码、 schema、SDK 和功能矩阵状态。 基线与现状 - 盘点基线:Lithe 更新为 preview e8c4e9f;#1517 记为已合并;新增 #1515 (阶段性实现,范围与缺口见 API-40);记录插件文档仓库 main 仍是 be779d2000e3,且其契约锁落后主仓库 4 个触及 plugins/v1 的提交 - 能力版本:对照 PluginTypes.swift 与 capabilities.rs,补上 buildProviders 1–6、buildModelInputs 1、debugAdapters 1/2; Core 与 Mac 唯一差异是 serverProcess(Core 1/2,Mac 1) - API-29、API-31、API-35、M4、DOC-12、5.1 SDK 行:去掉对 #1517 在途的依赖, 改为已合并后的文档、SDK 对齐与端到端验收 新增条目(编号接续 API-39,不改动既有编号) - API-40 工作区 authority(M0):远程工作区仍是本机空占位根,backend:1 与 Web bridge 不识别远程绑定;未实现的 authority 必须明确拒绝。API-05、 API-35 同步指向它 - API-41 激活事件与启动预算(M0/M1):现有 activationEvents 只与已声明的 Provider/窗口命令一一对应;应用没有工作区信任概念,M0 需决定 - API-42 内置 Git 只读快照(M3):Git 不在统一 VCS 层,API-31 只覆盖插件 VCS - API-43 documents.onWillSave(M3):保存路径没有保存前钩子 - API-44 Agent 侧贡献(后续):Skills/Hooks/MCP 是用户管理的原生配置, 没有插件来源 - 同步 2.1 现状表、4.1/4.2 评审清单、阶段表 M0/M1/M3c/M4/后续、 DOC-02/04/07/13 以及新增 DOC-18/19、来源索引 S20–S22 公共扩展契约提案(proposed Note) - 修正"内置 Git 与插件 VCS 共用同一统一模型",与 2026-10-22 评审一致: Git 暂不接入统一层 - #1517 改为已合并,补 #1515 的范围;新增 authority/激活/保存前事件/ Agent 侧贡献一节,说明本 Note 不预设答案 * 插件后端 2 与函数协议 3:工作区上下文、能力发现与宿主错误码 - requires.backend 新增版本 2:可由 onWorkspaceOpen 或插件命令启动,不再必须有网页;后端可以是插件唯一内容;backend 1 语义不变 - 新权限 workspace.metadata(仅 backend 2)授予 workspace 宿主服务;拒绝 onStartupFinished 等常驻启动事件 - 插件函数协议新增版本 3:lithe/host/getCapabilities 由 Core 直接回答,subscriptions/dispose,workspace/listContexts、getContext、getFolders - 宿主方法改为表驱动(HOST_METHODS),后续文件、编辑器、窗口服务按行接入 - lsp.functionRequest 可携带 context,仅 v3 后端收到 params.context - lsp.hostResponse.error 可带 code,按白名单映射为 contextExpired、authorityUnsupported、versionConflict、limitExceeded、cancelled、timeout 等 - 后端可用 $/cancelRequest 取消自己的宿主请求,Core 立即回复 cancelled 并发出 hostRequestCancelled 事件 - 同步契约 README、manifest schema、正反例 fixture 与 Rust 单元测试 * feat(macos): 插件后端 backend 2 的工作区上下文、激活事件与宿主服务分发 - hostCapabilities 提供 backend [1, 2] - 新增 PluginWorkspaceContexts:每窗口一个上下文,contextID 加 generation,本地/远程 authority,rootID 与状态目录摘要 - 新增 PluginHostServiceDispatcher 与 PluginHostServiceHandling 扩展点,统一错误码、授权与上下文核验、订阅回收与宿主请求取消;凭据与 workspace 服务接入 - MacPluginBackendSessions 支持 onWorkspaceOpen 与 onCommand 激活(串行、不阻塞),调用携带工作区上下文 - RustCoreBridge 传递 lsp.functionRequest.context 与 hostResponse.error.code,会话处理 hostRequestCancelled - 新增界面文案词条并重新生成;新增 Agent Note 记录设计、第 4 节回答与威胁模型,写明工作区信任暂不引入 * test(macos): 补上上下文测试缺少的 throws 声明 * feat(macos): 为插件 API-09/10 提供宿主内部文档与编辑器服务 实现 macos-plugin-api-plan 中 API-09(documents.list/getSnapshot、 editor.getActive/getSelections)和 API-10(editor.applyEdits/ replaceSelections/insertText)的 Mac 宿主内部服务,暂不对插件公开, 等 M0 分发层接入。 - EditorDocumentService:调用方必须显式传入窗口与工作区范围和文档 ID, 不回退到当前活动窗口;读取的是含未保存修改的内存缓冲区。 - 新增 EditorDocument.contentVersion 作为版本来源:每次文本变化单调 递增,不受保存/冲突决策改写,没有 WebView 时也存在,WebView 重载 后不归零。 - 坐标:行、列都从 1 开始,列按 UTF-16 码元计数;CR/LF/CRLF 各算 一次换行。只在 LSP 适配边界换算成从 0 开始。 - EditorTextEditPlanner 先校验整批编辑(越界、反向、拆开代理对、 重叠),全部通过才下发;插入的换行沿用文档首个换行符。 - Monaco 适配:同步比对桥接 revision;JS 端再核对 revision 和未确认 输入,有 IME 组字、只读、冻结或关闭中时拒绝;用前后两个 undo stop 加 pushEditOperations 作为一个撤销步骤应用;编辑消息带 origin, 用来回报这一批产生的精确版本。 - SourceText.apply 支持按批次指定 EOL。 - 补充 Swift 单测(emoji、组合字符、CRLF、中文、多选区、版本冲突、 只读、越界、重叠)和 bun 单测。 * feat(macos): 新增插件工作区文件访问的宿主内部服务(API-06/07/08) 尚未暴露为插件公共 API,也未改动 shared/contracts、capabilities.rs 和 hostCapabilities; M0 分发层负责授权并把插件请求映射为显式根和调用方身份。 - Core/Ports/PluginWorkspaceFileAccess.swift:服务协议与值类型。每次调用显式携带 工作区根(root ID、目录、authority、generation、可见性规则)和调用方身份,不回退到活动窗口; 资源 ID 为 root ID + 以 / 分隔的 NFC 相对路径,结果中不出现系统绝对路径; 错误分类、集中的预算常量及每个取值的依据。 - MacWorkspaceSecurePath:路径词法校验(拒绝绝对路径、空段、.、..、NUL、超长段和超长路径), 逐段 NFC 规范化;从根描述符逐段 openat(O_NOFOLLOW) 解析,末段用 fstatat(AT_SYMLINK_NOFOLLOW) 或 O_NOFOLLOW|O_NONBLOCK 打开,防止 .. 越界、任意段的符号链接以及检查后换成链接的 TOCTOU; 注释写明能防和不能防的范围(硬链接、持有描述符期间被移出的目录、挂载点)。 - MacPluginWorkspaceFileService: - readDirectory 用不透明游标分页(游标绑定根、generation 和目录,记录最后一个排序键), 单页上限和单目录扫描上限;排序与项目树一致(目录优先、自然文件名序), 隐藏规则、符号链接和嵌套 linked worktree 的省略也与项目树一致。 - stat 报告链接本身。readFile 有字节上限、编辑器同款编码探测、二进制结果、截断标记, 未截断时附带 SHA-256 身份。 - findFiles/findText 复用现有搜索 owner(Search Everywhere 文件提供者和项目文本搜索), 支持取消、偏移游标分页和截断标记,结果标明只来自磁盘、不含未保存缓冲区。 - 拒绝非本地 authority,以及被标为本地的远程占位根(unsupportedAuthority); 旧的或已关闭的 generation 返回 staleWorkspace。 - 阻塞工作在宿主队列上执行;按调用方限制并发;任务取消时立即返回 cancelled。 - MacPluginWorkspaceWatchHub:复用 DirectoryWatcherFactory/DirectoryChangeSource, 同一根 generation 的订阅共享一个变更源并做引用计数;订阅归属调用方和工作区, 在 dispose、releaseResources、closeWorkspace 或新 generation 取代时释放; 高频事件按订阅合并,超出待处理上限或源报告丢失时折叠为“需要重新扫描”; 旧 generation 的迟到事件按键丢弃,不会到达新订阅;dispose 返回后不再投递。 - MacWorkspaceSnapshotBuilder.isNestedLinkedWorktree 改为 internal 以复用。 - PluginWorkspaceFileServiceTests 覆盖:越界与路径校验、根外符号链接、 链接互换竞态(含中途换链接)、分页游标与篡改、超大目录、隐藏规则、二进制文件、 超限截断、NFC 名称、watcher 释放/合并/溢出/旧 generation、远程 authority 拒绝、 搜索分页与不可用、取消与并发预算。 * feat(macos): 增加插件宿主的编辑器打开、HTML 预览、外部浏览器和窗口消息内部服务 实现 docs/development/macos-plugin-api-plan.md 中 API-15、API-16 和 API-17 最小部分的宿主内部服务。只提供 Swift 协议和实现,不对插件公开,不修改插件契约、 Rust capabilities 和 PluginTypes 的 hostCapabilities,授权与调用分发留给 M0。 作用域与资源 - 每次调用显式携带插件、窗口、工作区和工作区代际,不回退到当前活动窗口。 - PluginHostScopeGate 在窗口缺失、远程工作区、工作区或代际变化时拒绝,并在每个 等待点之后再次校验,窗口关闭或工作区替换后不再放光标、不再启动浏览器。 - 资源使用“根 ID + 工作区相对路径”,在符号链接解析后按带尾部斜杠的前缀比较, 拒绝路径逃逸、兄弟目录前缀、控制字符和超长路径。 editor.open / reveal - 复用 documentFeature.openFileAsync 和文档 owner:已打开的文档只激活不重载, 未保存缓冲区保持原样;没打开才从磁盘加载一次。 - activation 为 select 时调用 selectEditorTab,等同点击标签,把后台标签切成前台 标签,编辑器切片读选区、改文本前需先走这条路径;background 不改前台标签、 不放光标。结果中 isActive 表示标签在前台,windowIsForeground 表示窗口在前台。 - 后台窗口只在自己的窗口内工作,不提升窗口、不激活应用。 - range 只落到起点光标并在结果里明示;可替换预览标签暂不支持,明确拒绝。 - reveal 要求文件已打开,否则返回 documentNotOpen。 preview.openHTML - 仅接受 .html/.htm,走 editor.open 的 select 路径,内嵌预览使用当前缓冲区。 - 仅预览模式是标签视图的 @State,暂不支持,明确拒绝。 browser.openExternal - 网址只允许 http/https,必须有主机名,禁止用户信息、空白和控制字符,限长 4096 字节;其它 scheme 一律拒绝,不追加内容、不执行脚本。 - 本地文件只接工作区内的 .html/.htm,让系统浏览器读磁盘;打开前先让编辑器交出 未报告的输入,缓冲区脏或编辑器未确认都按“有未保存修改”处理。调用方可选择 openSavedFile 并在结果里明示,或 requireSaved 返回 unsavedChanges。 - PlatformUI 新增 openWebURLInBrowser;MacHTMLBrowserOpener 新增 openWeb, 自身再次校验协议和主机,只向 Launch Services 查询处理浏览器。 window.showInformation / Warning / Error - 每个窗口一个 PluginHostMessageFeatureModel,WorkbenchView 左下角用 PluginHostMessageStack 原样显示插件文字和按钮,不走会翻译文案的宿主通知栈。 - 最多同时显示 3 条,其余排队;返回用户选择的按钮序号或关闭、窗口关闭、 工作区替换、调用取消等结束原因,每条消息恰好结束一次。 - 限额:同一插件每窗口 10 秒 5 条、同时 3 条,每窗口共 10 条;文字 2000 字符, 按钮 3 个、每个 40 字符。超频返回 rateLimited 并向用户提示一次,队列满返回 messageQueueFull;限频时间由调用方注入。 - 宿主自己的 20 条文案补齐 shared/i18n 中英词条并重新生成。 HTML 预览与 plugin bridge 隔离 - 核对结论:预览使用全新的 WKWebViewConfiguration,唯一脚本处理器是应用内容世界里 的 litheScrollbarFrame;lithe 消息处理器和 lithe-plugin 协议只在 MacPluginWebPage,项目页面和外部浏览器都拿不到 bridge,无需改代码。 - 新增 HTMLPreviewBridgeIsolationTests 作为回归测试。 测试与文档 - 新增 PluginHostEditorServiceTests、PluginHostBrowserServiceTests、 PluginHostMessageServiceTests(含限频器与编辑器同步等待)、 HTMLPreviewBridgeIsolationTests,并扩展 HTMLBrowserOpenerTests;测试使用假窗口、 注入时钟和有界等待,不依赖 sleep。 - 新增 Agent Note 2026-10-30-plugin-host-open-preview-services.md,记录决策、 前台标签与前台窗口的区别、未保存语义、bridge 隔离证据、运行期不写发行包、 已知限制和被否方案。 本次未在本机编译或运行 Swift 测试。 * fix(macos): isolate editor flush request to the main actor * feat(plugins): give each host error its own JSON-RPC code from protocol 3 Record the backend workspace context and host services in the platform feature matrix, and require one-to-one error codes in develop-lithe. * fix(macos): make the editor flush callback sendable * feat(core): add host notifications, failure details and finer host error codes * feat(macos): push host notifications to plugin backends and tighten workspace contexts - Push lithe/host/workspace/didChangeContexts to running backends granted workspace on every context open, change, or close. - Deliver lithe/host/commands/didRun to a backend 2 plugin when its command runs: at once when ready, after the start when starting, and only on its own onCommand:<id> when stopped. - Send subscription events with a per-subscription sequence through lithe/host/subscriptions/notify; notifications to one backend stay in order and are cancelled with the session. - Start onWorkspaceOpen backends on enable or register when a workspace is already open. - Grant a backend only the host services this host has handlers for, so getCapabilities lists nothing that fails for want of one. - Switching a window to another workspace closes its context and opens one with a new contextID; generation counts changes of the same workspace. - Make rootID an HMAC keyed per plugin with a host secret kept in Application Support/Lithe/PluginHost/root-id.key (0600, created once). - listContexts no longer returns or creates stateDirectory; getContext does. - Add notFound, readOnly, unsupportedOption, preconditionFailed, busy and rateLimited host error codes and structured failure details. - Fix the dispose error message, document the protocol 3 notifications, details, error-code range, and context semantics in the contract, the Rust Core API, the Agent Note, and the feature matrix. * feat(plugins): extend protocol 3 additively instead of new versions - From protocol 3, new host services, methods, notifications, options, result fields and failure codes are added within the version and found with getCapabilities; only a change an existing backend would misread needs a new protocol version. - Core answers a field a host method does not define with plugin.host.unsupportedOption (-32018) and details { option } for a version 3 session, before the host sees the request; version 2 keeps plugin.host.invalidParams. - Document the extension rule and the backend's duties (call only listed methods, ignore unknown fields and notifications, treat unknown numbers as host failures) in the contract README, the outcomes table, the Agent Notes, and the feature matrix; add fixture and engine tests. * feat(plugins): connect public host APIs and harden backend lifecycle * fix(plugins): preserve older backends when host notifications are unsupported * test(macos): stabilize Agent popup clicks and record API-01–44 completion - Agent selector/activity tests: fix the hosting view size only where the layout needs it, display windows before synthesized clicks, and compute click points from LitheDropdownMetrics in flipped and unflipped documents. - macOS plugin API plan: add the per-API completion table for PR #1595 and a summary of the public host methods with their permissions. * fix(macos): restore settings window sessions after relaunch (#1599) (#1601) * perf(windows): 修复文档漂移并大幅降低大文件打字成本 (#1605) * fix(lsp): replay document changes in the order they happened Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(editor): stop TextMate tokenizing once the rule state converges Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(windows): register the folder drop listener once Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(windows): rebuild Spring and MyBatis indexes on the autosave pause Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(windows): answer Java definitions from syntax while importing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(windows): measure frontend interactions against budgets Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(windows): cover recoloring far below a multi-line edit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(macos): cover CR positions through the source change path sourcePositionAt no longer exists because positions now come from the piece tree. Assert the same CR line counting on SourceText changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(windows): start a fired autosave only once The task stays queued until its write settles, so a blur during the claim ran the same closure again. Both runs shared an operation id and could both write, turning the second into a false conflict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(java): resolve syntax member references from their scope The whole-tree search returned the first same-named member, so a jump could land in a nested type. A lookup now stays on the named type, and a reference walks outward from where it is used, answering nothing when an inherited name or a local could change the binding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(windows): count the work typing leaves behind Per-key metrics now share one window, and the final autosave and index rebuild are reported separately once the host goes quiet. The new Windows document sync, syntax navigation and perf statistics tests join CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * perf/fix(windows): 文件树交互与图标、文件菜单设置入口、Git 推送弹窗、工作区扫描提速 (#1586) * fix(windows): 文件树单击仅选中、双击打开,并支持 Delete 键删除(始终二次确认) - 单击文件只选中并高亮,不再打开或新建预览页签;双击或 Enter 才打开,与单击目录行为一致 - 选中后按 Delete 弹出删除确认框,多选时一次确认并逐项删除; 即使“删除前确认”设置关闭也始终确认,工作区根目录与带修饰键的 Delete 不触发 - 补充选择与 Delete 键的组件测试,并更新跨平台功能矩阵说明 * fix(windows): Git Log 文件列表选中行跟随 Diff 预览的上一/下一文件导航 - Commit files 列表监听预览标签页当前显示的文件并同步选中行; 仅当预览属于当前所选提交或范围时才同步,避免过期预览改变选中 - 同步选中时自动展开被折叠的父目录,并仅在纵向滚动到可见位置,不改变横向滚动 - 抽出 commitFilePreviewHash 与 selectedCommitFilePath,发布预览与观察预览共用同一标识 - 补充选中跟随与折叠目录自动展开的组件测试,并更新跨平台功能矩阵说明 * fix(windows): 推送弹窗按钮对齐 IDEA 样式并修复强制推送下拉被弹窗遮挡 - 推送按钮组改为 IDEA 默认选项按钮样式:实心主色底、白字,1px 分隔线上下内缩; ButtonGroup 新增 primary 变体,禁用时整组一起变淡 - 下拉箭头悬停和菜单展开时不变色;Button 带 tooltip 会被包一层 span, 分组的直接子元素选择器无法命中,箭头改为自带样式 - DropdownMenu 定位层从 z-50 提到 z-10070,与 context-menu、popover、select 一致; 此前弹窗(z-9999)会盖住强制推送菜单 - DropdownMenuContent 支持透传 anchor,强制推送菜单锚定整个按钮组,宽度与按钮组一致 * feat(windows): 文件菜单新增设置入口 针对 #1560 的第 1 点:点击左上角“文件”后,菜单里找不到设置入口。 - 文件菜单在“关闭标签页”上方新增“设置”项,齿轮图标加文字,上下以分隔线隔开, 显示 Ctrl+, 快捷键提示;点击走已有的 menu_open_settings 事件,打开设置对话框 - 新增共享词条 menu.settings(设置 / Settings),重新生成 Windows i18n 资源 - 补充菜单源码断言测试:设置项位于“关闭标签页”和“退出”之前 - 新增功能矩阵条目 windows-file-menu-settings(Windows 已实现、待验证,macOS 不适用) 未覆盖:#1560 的第 2 点(菜单只有“退出”、没有“重启”)尚未实现, 因此只引用 issue,不关闭。 Refs #1560 * feat(file-tree): 补齐 Windows IDEA 图标主题并新增 jsonl/wbmp/Office/i18n 图标 - Windows IDEA Icons 主题补齐 macOS 已识别的类型:Kotlin、Rust、Go、Python、 Ruby、Scala、PHP 图标(取自 IDEA,明暗各一份),以及 .m/.hh/.hxx/.mm/.fish/ .svelte/.pom/.ini/.cfg/.conf/.env/.db/.sqlite/.markdown/.adoc/.tsv/.tiff/.icns、 .class/.jar/.so/.dylib/.dll/.pdf 等扩展名,和 .classpath/.project/ .gitattributes/.dockerignore/compose 文件等文件名 - .kts 改用 Kotlin 图标,.gradle.kts 仍用 Gradle 图标,与 macOS 一致 - 两端新增:.jsonl/.jsonlines/.ndjson/.ldjson 用 JSON 图标,.wbmp 用图片图标, .doc/.docx/.ppt/.pptx 用 IDEA Native 类型的 custom 图标,.strings 用 i18n 图标 - macOS LitheIconKind 新增 .i18n、.document,补充 custom/i18n 资源与 NOTICE 来源说明 - 新增 macOS FileTypeIconKindTests,并在 Windows 主题清单测试中覆盖新映射与资源 - 更新功能矩阵 file-explorer 的证据与验证说明 未覆盖:.env.*、dockerfile.* 这类前缀文件名在 Windows 主题里无法表达; macOS 侧未在本机编译验证(当前环境为 Windows),验证状态保持 pending。 * perf(windows): 去掉项目文件树行的 hover 高亮 滚动时指针会连续扫过大量文件行,每行 hover 都会重绘整行覆盖的 ::before 伪元素, 造成滚动卡顿。 - file-explorer-tree.css 新增规则,在 .file-explorer-shell 内让行的 hover 背景保持透明; 选中、焦点样式和缩进线不变 - Git 状态面板与提交文件树共用同一套样式,不在 .file-explorer-shell 内,hover 保持不变 - file-explorer-surface.test.ts 增加样式断言,防止该规则被误删 * perf(core): 工作区扫描默认跳过 Python 环境和字节码,Windows 快照只取文件清单 Python 项目里虚拟环境和 __pycache__ 占了绝大多数文件(一个典型项目约 3.2 万个文件中 约 2.7 万个),而打开项目时 Windows 会连续请求多次整库快照,每次都重复扫描并序列化 这些路径。 - Rust Core 内置隐藏名单增加 .venv、venv、__pycache__ 目录和 *.pyc 文件:这些目录整个 不再被读取,也不进搜索索引、文件监听和 Git 仓库发现 - macOS FileVisibilityRules 同步增加同样四项,保持设置页显示的内置规则与实际规则一致 - Windows 的 fffListFiles 和 Lombok 导航请求 workspace.snapshot 时带 includeTree: false, 不再让 Core 构造并序列化没人使用的整棵目录树(macOS 已在 #1245 这样做) - 新增 Rust 测试覆盖快照、只要文件清单、目录列举和监听事件,并保留名字相近的目录可见; 新增 Windows 测试断言快照请求只取文件清单 - 更新契约文档、lazy-project-tree 笔记,新增 Agent Note,补充功能矩阵 workspace-files 未覆盖:Windows 文件树仍按前端设置读磁盘目录,.venv 在 Windows 文件树里仍可见; 名字不同的虚拟环境不会被识别。macOS 侧未在本机编译验证(当前环境为 Windows), 验证状态保持 pending。 * fix(tests): 图标资源断言脱离应用 bundle,file-search 测试接入 Windows CI - FileTypeIconKindTests 不再经 ideaImage 依赖 Bundle.main(单元测试宿主 没有应用资源包,返回 nil 导致 Swift tests 失败):新增 LitheIcons.ideaAssetPath(for:) 只读访问器解析目录映射,测试从源码 Resources/IDEAIcons 断言明暗 SVG 存在,与 IDEAIconRasterizationTests 的源码路径先例一致 - GitCommitTreeStyleTests 的 Localizable.strings 断言从 .plainText 更新 为 .i18n,同步本 PR 的 .strings 图标映射变更 - ci-windows.yml 为 file-search-api.test.ts 新增独立计时步骤(该套件装 进程级 Tauri 边界 mock,需与其他套件隔离执行);接入后暴露 mock 缺少 isTauri/transformCallback 导出,按 tauri-core.test.ts 的 ...nativeCore 展开模式修正 * fix(tests): 图标清单断言跟随 upstream #1606 新增的 AgentIcon 合并 upstream/preview 后,CI 的 "Test Agent panel and capability gate" 批次失败:application icon mappings > exports the complete icon inventory 断言 216 个图标导出,但 #1606 在 icons.tsx 新增了 AgentIcon(bot 图标), 导出数变为 217,且该 PR 合并时 CI 被取消未暴露此问题。 将断言更新为 217,本地完整重跑该批次 242 个测试全部通过。 * feat(windows): 行内 Git Blame 对齐 IDEA annotate(行号注释、Git Log 定位、右键菜单) (#1602) * feat(windows): 行内 Git Blame 对齐 IDEA 行号注释 - 行号列渲染注释:作者与绝对日期浮在行号左侧,同一提交块只在首行显示, 行号列随之加宽到 26ch 并在关闭后恢复 - 右键行号栏 Annotate with Git Blame / Hide Git Blame 按文件开关, 删除全局 enableInlineGitBlame 设置(原行尾 widget 一并移除) - 点注释用 openCommitDiffBuffer 打开该行提交的单文件 diff 并定位命中行 - 修正 core-result-adapter 的 total_lines:Core 每行一条记录, 旧值让每条记录覆盖整文件,导致任意行显示别的提交 - 新增 git.blame.* 共享词条并移除旧设置词条 * fix(windows): Git Blame 注释按 IDEA 每行标注并右对齐 - 每行都显示作者与日期,不再按提交块合并(空行会被读成缺失归属) - 标签右对齐紧贴行号,去掉贴最左 + 大段空隙的排版 - Annotate/Hide 入口只在行号区右键菜单出现,内容区菜单不再显示禁用项 - 图标改为作者语义的用户图标 * fix(windows): Git Blame 日期补零为 08/08/2026 月份与日期改为两位,避免注释列在个位数日期上抖动;月份顺序仍跟随应用语言 (中文界面为 2026/08/08)。 * fix(windows): Git Blame 标注改 yyyy/M/d + 日期在前,行号右键精简为行级菜单 - 日期改为不补零的 yyyy/M/d(与 macOS 一致),标签顺序改为「日期, 作者」 - 行号区右键改用独立精简菜单(Annotate/Hide Git Blame + Show Line History), 不再弹出完整编辑器菜单;内容区菜单保留行历史、不再出现 Annotate - 新增 gutter-context-menu 构建器与单测 * feat(windows): 行号 gutter 菜单对齐 IDEA annotate 菜单并扩大命中范围 - 菜单项按 IDEA 分组:Annotate/Close Annotations、Show Diff、Copy Revision Number, 分隔线后是 Show Line History;提交相关项只在已注释且该行有提交时出现 - 关闭注释改名为 Close Annotations / 关闭注释,新增 showDiff/copyRevision/revisionCopied 词条 - 右键命中范围从行号列扩大到整个 gutter(行号、变更标记列、字形边距) - gutter-context-menu 单测覆盖分组顺序与可见性条件 * fix(windows): Git Blame 注释去掉日期与作者之间的逗号 标签改为「yyyy/M/d 作者」,两者之间只留一个空格;行号列仍整体右对齐。 * fix(windows): Git Blame 注释标签改为左对齐,行号保持右对齐 标签贴注释列左侧、超长省略号截断,行号仍贴列右边缘(与 macOS 布局一致)。 * fix(windows): Git Blame 日期与作者间留两个空格,注释列宽按最长标签自适应 - 标签改为「yyyy/M/d 作者」(两个空格),去掉逗号感 - 行号列宽不再固定 26 字符:取最长标签宽度(中文按双宽)+ 4 个行号格, 夹在 12–26 之间,短名字不再白占一列 - 新增 gitBlameColumnChars 与中日韩双宽计算的单测 * feat(windows): 注释点击定位到 Git Log,内容菜单新增 Git 子菜单 - 点注释改为打开 Git Log 并选中该行提交(新增 git-log-reveal store 传递请求, 日志按页向前加载直到命中,最多 20 页) - 行号右键菜单移除 Show Line History,只保留注释与提交动作 - 内容区右键新增 Git 子菜单:Annotate/Close Annotations、Show Diff、 Copy Revision Number、Show Line History - 补充 reveal store、gutter 菜单与编辑器 Git 子菜单单测 * fix(windows): 只读 diff 视图内 Ctrl+C/Ctrl+X 交回 Monaco 原生复制 只读 diff(提交预览、工作树差异、独立 diff 面)里的选中文字此前无法复制: 编辑器 keymap 在捕获阶段拦下 Ctrl+C 并执行源编辑器的 editor.copy, 复制的是源编辑器模型(通常为空),原生复制被 preventDefault 掉。 - diff 面根节点标记 data-readonly-diff - keymap 在命中该区域时不再拦截 copy/cut,交给 Monaco 原生处理 - 新增 shouldDeferClipboardToReadOnlyDiff 与单测(含粘贴/带 Shift 不受影响) * chore(windows): review 收尾——常量移出 import 区,补齐矩阵证据与验收项 * docs(matrix): Windows Git Blame 记为实现并已验证 2026-10-30 维护者在 Windows 实机确认:行号右键精简菜单、每行 yyyy/M/d 作者 注释 与自适应列宽、点注释跳转 Git Log、Show Diff 两侧复制、未跟踪与只读预览不出现入口。 * fix(windows): Git Blame 注释列补一格余量,避免最长标签被省略号截断 Monaco 的行号列宽按 cells × maxDigitWidth 四舍五入,而标签宽度受 CSS 的 calc(100% - 4ch) 限制;余量为 0 时最长标签会超出不到 1px 而被省略号截断 (截图里 2026/10/29 的日期被截成 chenb…)。 - 列宽改为标签格数 + 行号格数(按行号位数取 max(4, 位数))+ 1 格余量 - gitBlameColumnChars 改为接收条目 Map,以便按最后一行判断行号位数 - 补 5 位行号与余量的单测 * fix(windows): Git Log 定位请求在翻页无进展时结束,不再挂起 评审观察项 1:当 hasMore 为真但分页游标为空(一次失败的翻页会留下这种状态)时, loadMore() 静默返回、effect 不会重跑,待处理的定位请求会一直挂着,可能在之后 一次刷新时突然跳到旧提交。 - useGitLogController 的 load()/loadMore() 改为返回"本页是否新增提交"; refresh() 维持 Promise<void> - 定位 effect 在 loadMore 解析为 false 时清空请求 - 补 integration 测试:分页返回是否推进 + 耗尽后返回 false * fix(windows): locate-current-file ignores active paths spelled differently from the tree (#1578) * fix(windows): match locate-current-file against the tree's path spelling Add toRootedPath, which respells a path inside the workspace root with the root's own prefix and separator, and use it when revealing the active file in the project tree. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Add tests for toRootedPath function Added tests for the toRootedPath function to ensure it correctly respells paths with the specified root prefix and separator. * fix(windows): reveal the active file using the tree's path spelling Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(windows): locate resolves a forward-slash path against a backslash tree Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * docs(matrix): record Windows locate-current-file path handling Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: lick <2188718831@qq.com> * perf(windows): 优化文件打开与编辑器交互性能 (#1607) * perf(windows): 优化文件打开性能与编辑器生命周期 - 复用 Monaco 编辑器表面与模型,保留隐藏标签布局并按可见性调度语言服务 - 缓存主题定义、静态编辑器样式和输入配置,减少全窗口样式与布局计算 - 仅为未保存编辑发送 Spring、MyBatis 索引覆盖,合并扫描并跳过无 XML 映射的工作区 - 稳定文件树、快捷键和拖放回调,减少布局测量、重绘与原生监听注册 - 文件读取使用原始二进制响应,合并前端日志 IPC 并保留上游异步文件操作 - 优化标签菜单渲染,新增最近最少使用关闭策略,默认标签上限调整为 20 - 修复模型复用后的浮层位置解析,同步国际化、能力矩阵与回归测试 * fix(windows): 合并标签上限实现并修复编辑器复用的泄漏与状态问题 - 标签上限只保留 selectBuffersOverTabLimit 一份逻辑:store 不再保存设置副本, 改为读取真实设置和关闭策略;标签栏不再关闭终端和 Agent 标签;0 表示不限制 - 默认上限定为 30,并按测量结果说明理由;已保存的配置不变 - Monaco addCommand 的处理函数不再捕获创建 effect 作用域,修复每个销毁的 编辑器被留在内存里的泄漏(leaks 场景回到与 preview 相同) - 卸载时先做模型清理再销毁编辑器,保证视口状态能保存 - 文件切换时关闭行号和行历史菜单;文本未就绪时不挂 Vim;模型绑定后补设诊断 - 新增 fileOpen 性能场景和预算,新测试接入 Windows CI,补功能矩阵和 Agent Note Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: zhengfuping <fuping.zheng@onmicro.com.cn> Co-authored-by: lick <2188718831@qq.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * fix(windows): 在 Quick Open 中搜索 Spring 接口路由 (#1475) (#1522) * fix(windows): 在 Quick Open 中搜索 Spring 接口路由 (#1475) - 默认 Quick Open 合并 Spring 接口与文件结果,复用现有 spring.index,不新增注解解析器 - 支持按路由精确/前缀/包含、控制器、处理函数和 HTTP 方法组合搜索 - 接口结果参与统一键盘导航,回车打开控制器注解行;@/# 模式不混入接口 - 校验 Spring 索引与当前工作区根一致,补充 i18n、能力矩阵、Agent Note 和回归测试 * test(windows): 同步 Quick Open 接口搜索文案断言 * fix(windows): 补齐 Spring 路由搜索边界 (#1475) - 多 HTTP 方法分别与路由组合匹配,避免仅单个方法可命中 - Quick Open 在索引非 ready 状态隐藏旧接口结果 - 补充多方法查询和刷新失败回归测试并同步 Agent Note * fix(workspace): avoid main-thread linear lookups on external file batches (#1598) External file-change refreshes checked project membership with a linear scan over the whole inventory, standardizing URLs on every comparison. On large workspaces this kept the main thread busy after each batch. - Keep standardized file paths and ancestor directory paths in sets, rebuilt only when the project inventory changes. - Deduplicate changed URLs with a set instead of repeated contains checks. - Record external-change history in one actor call per batch, pruning expired snapshots only until the first snapshot is written. - Add regression tests for a 4000-file edit batch, batched history recording with skipped files, and cancelled batches. Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> * fix(run): 读取登录 shell 环境并按项目 Java 版本精确挑选 JDK (#1612) * fix(run): 读取登录 shell 环境并按项目 Java 版本精确挑选 JDK 从 Finder 启动的 Lithe 只继承 launchd 的最小 PATH,mise/SDKMAN/asdf/fnm/Homebrew 安装的 Maven、JDK、Node 都找不到;自动选 JDK 时 JAVA_HOME 只要不低于项目版本就胜出, Java 8 项目会跑在 JDK 21 上。做法参考 OpenIDEA(Apache-2.0),出处见 NOTICE。 - macOS:启动时读取 $SHELL -ilc 的环境;只把 PATH 缓存到 Caches,热启动用缓存并后台刷新; 其余变量只在内存中补齐缺失键,经 MacRuntimeLocator、MacManagedProcess 与 JDT 发现生效。 - Core:select_java_candidates 改为同主版本优先、其次最旧的更新版本,来源优先级只在同版本内比较; 更新共享 fixture 与契约文档。 - 发现:macOS 增加 mise/asdf/~/.jdks JDK 与 SDKMAN/mise/asdf Maven,跳过 shims; Windows 增加 mise/asdf/Scoop/Semeru/OpenJDK JDK 与 mise/asdf/SDKMAN/Scoop Maven。 - 新增 NOTICE、Agent Note、功能矩阵条目与测试。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(run): end the login shell's process group on timeout and log read outcomes - Read the login shell through MacManagedProcess so a timeout or shell exit also ends jobs the rc file left running; keep stdout as raw bytes and discard stderr so one non-UTF-8 greeting cannot void the read. - Record each startup/refresh read (shell name, source, duration, variable count; never values) in the application log, buffering the startup record until the log writer attaches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * fix(macos): 更新下载断点续传,失败提示区分原因 (#1609) * fix(macos): 更新下载断点续传、区分失败原因,本地历史限制 100MB - Sparkle 下载经本机回环转发 UpdateDownloadRelay:Range + If-Range 续传,断点存 Caches, 跨会话保留;206 时自行核对 ETag/Last-Modified,防止 GitHub CDN 无视 If-Range 拼出坏包 - 下载失败区分超时、无法连接、服务器错误,并提示已下载数据会保留、重试可继续 - 启动时清理已完成或废弃的回退暂存目录 - 本地历史每个项目上限 100MB(基线最多 50MB),基线跳过生成目录与嵌套仓库, 保存时清理旧版本遗留的基线,超限按基线→编辑→标签由旧到新淘汰 - 新增 scripts/release/sparkle/test-sparkle-relay-e2e.sh:本地服务器 + 真实 Sparkle 五场景端到端 * chore: 本地历史上限拆到 #1610,本 PR 只保留更新下载改动 --------- Co-authored-by: lick <2188718831@qq.com> * fix(core): 本地历史每个项目限制 100MB,基线跳过生成目录 (#1610) - 每个项目上限 100MB(按 4KB 分配块计,占用量进程内缓存),其中项目基线最多 50MB - 基线跳过 node_modules、.venv、target、.claude、.uv-cache 等生成目录和嵌套 Git 仓库 - 保存时清理过期条目和旧版本遗留的排除目录基线;超限按基线→编辑→标签由旧到新淘汰 Co-authored-by: lick <2188718831@qq.com> * feat(macos): 设置中可配置正式版更新源 (#1611) * fix(macos): 更新下载断点续传、区分失败原因,本地历史限制 100MB - Sparkle 下载经本机回环转发 UpdateDownloadRelay:Range + If-Range 续传,断点存 Caches, 跨会话保留;206 时自行核对 ETag/Last-Modified,防止 GitHub CDN 无视 If-Range 拼出坏包 - 下载失败区分超时、无法连接、服务器错误,并提示已下载数据会保留、重试可继续 - 启动时清理已完成或废弃的回退暂存目录 - 本地历史每个项目上限 100MB(基线最多 50MB),基线跳过生成目录与嵌套仓库, 保存时清理旧版本遗留的基线,超限按基线→编辑→标签由旧到新淘汰 - 新增 scripts/release/sparkle/test-sparkle-relay-e2e.sh:本地服务器 + 真实 Sparkle 五场景端到端 * chore: 本地历史上限拆到 #1610,本 PR 只保留更新下载改动 * feat(macos): 设置中可配置正式版更新源 - 外观与行为 > 更新新增「更新源」,默认是仓库最新 Release 下载目录 - 镜像需平铺提供同名 appcast-<arch>.xml 与更新包,Sparkle 仍校验签名 - 输入先测试连接(读取清单并 HEAD 最新归档),成功后才能应用;可恢复默认 - 下载失败与连接测试的提示带出镜像主机名 - AutoBuild 安装或选择 AutoBuild 渠道时禁用,始终用官方源 --------- Co-authored-by: lick <2188718831@qq.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: arkleselect <166632698+arkleselect@users.noreply.github.com> Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn> Co-authored-by: 大德 <zher52@aliyun.com> Co-authored-by: lincoco <77844710+lin-coco@users.noreply.github.com> Co-authored-by: 若水 <frankw.wang@qq.com> Co-authored-by: waani <kuun993@163.com> Co-authored-by: AACS111 <103710223+AACS111@users.noreply.github.com> Co-authored-by: zhengfuping <fuping.zheng@onmicro.com.cn> Co-authored-by: puppyben1 <136492871+puppyben1@users.noreply.github.com>
docs: update WeChat QR code and add Compshare sponsor (#1705)
docs(release): prepare v0.6.7 release notes
- 把 docs/assets/sponsors/apinebula-banner.jpg 从 800×400 的模糊旧图换成 2896×1448 的高清版;两者同为 2:1 比例,文件名不变,README.md 与 README.zh-CN.md 的引用路径和 width="720" 布局因此无需改动。 - 新图采用赞助方最新设计:副标题下多一个「查看定价」按钮,其余文案、 模型列表、指标数据和底部 CTA 与旧图一致。 - 该图片只出现在 README 展示层,不参与构建、打包或运行时资源解析, 不影响 macOS/Windows 代码路径,也不会改变 app bundle 的字节基线。
docs(readme): 赞助商横幅换成高清版 APINEBULA 图
1lck
marked this pull request as ready for review
November 15, 2026 07:33
1 task done
31 of 37 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
无。按维护者要求,将 main 独有的历史发布资料同步回 preview。
PR 类型 / Type
改动说明 / What changes
背景 / Why
main 中发布后新增的历史说明和 Homebrew 配方没有全部回到 preview。通过从最新 preview 创建的分支合并 main,让 preview 补齐发布资料并包含 main 的提交历史,为后续统一开发基线提供依据。
改动 / Changes
不在本 PR 范围内 / Out of scope
切换默认开发目标、修改分支权限与 CI 门禁、切换 AutoBuild 来源均不属于本次同步。没有恢复旧客户端代码或工作流,没有更新当前 Viva 版本,没有创建标签或发布新版本。
合并建议:使用 Create a merge commit,以保留 main 已经成为本分支祖先的关系;squash/rebase 不会保留本次历史同步关系。
类型专属:release
版本号:历史发布 v0.6.2、v0.6.3、v0.6.5、v0.6.6、v0.6.7;Homebrew 指向已发布的 v0.6.7。
上一个稳定版 tag:N/A,本 PR 不准备或发布新版本。
五份同步的历史发布说明均通过
validate-stable-release-notes.mjs,保持 main 原文。内容直接来自 main 已合并的发布 PR,没有重新撰写功能、兼容性或已知限制。
Homebrew 下载文件名与 v0.6.7 Release Assets 一致,两个架构的 SHA-256 与线上校验和文件逐字一致。
[N/A] 贡献者名单重新核验:仅原样同步已发布说明,包括既有署名修订,没有新增或修改名单。
[N/A] actionlint:没有改工作流。
不创建 tag、不触发发布工作流、不编辑线上 Release。
范围检查 / Scope checks
功能矩阵 / Feature matrix
N/A:没有宿主能力或跨平台行为变化,无需修改矩阵条目。现有 191 项能力校验通过,没有提交生成视图。
插件归属 / Plugin ownership
UI 验证 / UI evidence
N/A:没有应用界面或交互变化。
统一日志系统 / Structured logging
N/A:没有新增生命周期、操作终态或失败路径。
界面文案 / i18n
N/A:没有应用界面文案变化。
逻辑归属 / Logic placement
N/A:没有业务逻辑变化。
性能与内存 / Performance and memory
N/A:没有运行时代码、依赖或缓存变化。
设置 / Settings
N/A:没有设置变化。
插件契约 / Plugin contract
N/A:没有插件契约或宿主方法变化。
发行包与资源 / Bundle and resources
N/A:仅同步已发布 Homebrew 配方的版本和哈希,没有新增资源路径、下载实现或缓存。运行时 bundle 只读静态检查通过。
无用代码与重构 / Dead code and refactoring
N/A:没有实现代码变化,没有发现需另行提交的清理或重构项。
验证 / Verification
node scripts/release/notes/validate-stable-release-notes.mjs <file>ruby -c Casks/lithe.rb./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh./scripts/desktop/verify/verify-runtime-bundle-immutability.shgit diff --cached --check(提交前)git merge-base --is-ancestor origin/main HEAD未能执行的检查和原因: 没有运行应用全量构建和平台运行时测试;本次仅同步历史发布资料及已发布 Homebrew 配方。
提交前确认 / Final checks