Repository navigation
feat(core): #1662 车道 A Git 流程下沉(GIT-24/25/28/29) - #1753
Merged
Merged
Conversation
1lck
force-pushed
the
feat/issue-1662-a-git-flow
branch
from
November 5, 2026 06:46
a78d643 to
ca7f9a4
Compare
This was referenced Nov 5, 2026
…28 两端接入) - 新增 Core 命令 git.normalizeChangeTargets / git.rebasePlanPreview / git.referenceTree / git.updatePlan / git.historyWindow,附共享 fixture 与测试 - 执行日志归约与统一保留预算进入 execution_events(GIT-25 Core 部分) - GIT-28:macOS 与 Windows 的 Shelf、删除、回滚、提交目标去重改走 Core,删除两端旧实现 - 新增文案 git.changeTargets.prepareFailed(中英) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…续 PR 连同两端接入一起做 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…view,删除两端旧推导 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…关用例失败与套件超时 提交/暂存流程现在先经 Core 归一化目标;测试里该命令落到真实 Tauri invoke 而失败。替身按共享 fixture 的规则返回索引,断言与超时均未放宽。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
本地验证(代替 GitHub macOS / Windows CI)本 PR 与 #1760、#1755、#1753、#1759、#1756、#1758、#1757 一起,在本地集成分支 macOS(本机,macOS 26.6 arm64)
Windows(lithe-dev,Windows Server)
合并前每个 PR 已 rebase 到最新 preview,并重新执行编译、i18n、 |
1lck
force-pushed
the
feat/issue-1662-a-git-flow
branch
from
November 5, 2026 09:31
04eb5dc to
ddb8c13
Compare
1lck
marked this pull request as ready for review
November 5, 2026 09:31
This was referenced Nov 5, 2026
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.
Refs #1662(车道 A:Git 流程)。按条目拆成独立提交,每项两端都已切到 Core 并删除旧实现,不留 fallback。
GIT-28
git.normalizeChangeTargetsCore 去掉“已选未跟踪目录摘要 + 其下已列出子文件”的重复目标。macOS(Shelf/删除/回滚/提交/worktree 变更)与 Windows(暂存、删除、右键删除可用性)改走 Core;删除 Swift
coveringUntrackedDirectoryContents、TSresolveGitStatusDeletionPaths。Core 拒绝时 macOS 提示新文案、Windows toast,不再对未归一化的集合继续。GIT-29
git.referenceTreeCore 决定
/分组与同级排序(引用先于纯分组,收藏优先,自然序)。WindowsloadGitReferenceTree/useGitReferenceTrees与 macOSGitReferenceTreeNode.plan只负责展开、缩进和行 id。删除两端旧分组排序;行为变化:两端树结构与顺序一致。GIT-24
git.rebasePlanPreview校验码、每步消息、start steps、输出提交数全部来自 Core(与启动时同一套
planned_messages)。WindowsuseGitRebasePlanPreview、macOSGitRebasePlanDraft只保留顺序/动作/用户覆盖文本。行为变化:默认 squash 统一裁掉前一条末尾换行;Core 未应答前 Start 不可用;macOS 校验文案新增 4 条中英 i18n。GIT-25 执行日志
Core 事件新增
requestStarted.retention(统一预算,单条 32768)、finished.state、requestFinished.unconfirmedInvocations/failureRecord;两端 journal 只存储与按预算裁剪,不再各自推导状态,也不再对事件文本二次脱敏(GitConsoleEntry对非 Core 来源条目的脱敏保留)。Core 补全 query 凭据脱敏名单。console-lifecycle-v1.json、execution-events-v1.json已更新。已撤出,留给后续
GIT-14
git.updatePlan、GIT-15git.historyWindow:UI 接入过大,且没有消费方的 API 不应合入;其 Core 命令、fixture、测试已从本 PR 撤掉,后续连同两端接入一起做。新 API
git.normalizeChangeTargets、git.referenceTree、git.rebasePlanPreview(纯规划器,不启动 Git);GIT-25 的新增事件字段。功能矩阵git-multi-repository-references、git-rebase-stash、git-history已追加说明。验证
通过:
cargo test --lib git::(223)、verify-rust-core-comments、verify-shared-contracts、verify-windows-boundaries、verify-platform-feature-matrix(244)、i18n--check与 app-language、Windowstsc、macOStest-macos.sh(GitModuleTests/GitExecution/GitInteractiveRebase/GitReferenceRows/GitConsole 共 261 项)。Windowsbun test src/features/git整目录 55 个既有失败(跨文件 mock 泄漏),与基线逐项相同、无新增,涉及文件单独运行全过。未通过(非本 PR):
verify-core.sh、verify-service-boundaries.sh报AppModel+CodeNavigation.swift627 行,是 preview 上已有问题,将另开 PR 修。verify-rust-core.sh的cargo fmt --check报既有文件(lithe-agent-host 等)格式问题,未改。未执行:cargo check --bin lithe-windows。补充修复
git-workspace-status-panel.test.tsx有 7 个用例(含changing workspace cancels pending commit preparation...)失败并拖到套件超时:GIT-28 让提交/暂存流程先调用git.normalizeChangeTargets,测试的 invoke 替身没覆盖该命令而落到真实 Tauri。已在测试替身中按共享 fixture 规则补上该命令,未放宽断言或超时。风险点
requestStarted(携带预算)之前不裁剪。GitModuleTests里normalizeChangeTargets的测试替身是手写的,真实规则只由 Core 测试与共享 fixture 保证。🤖 Generated with Claude Code