Repository navigation
fix(desktop): 接入工具链忽略文件自忽略规则 - #2328
Closed
lithe-support[bot] wants to merge 1 commit into
Closed
lithe-support[bot] wants to merge 1 commit into
lithe-support[bot] wants to merge 1 commit into
Conversation
21 tasks done
Contributor
Author
|
Lithe Review — 当前属于阻断 Desktop CI 的主线兼容问题,建议优先更新此 PR
|
This was referenced Nov 23, 2026
1lck
added a commit
that referenced
this pull request
Nov 23, 2026
1lck
added a commit
that referenced
this pull request
Nov 23, 2026
* fix(viva): avoid named keys on text and spacer leaf widgets * fix(viva): remove identity keys from static text, paragraphs, and wraps * fix(viva): use keyed growable containers instead of unnamed Spacer leaves * fix(viva): leave breadcrumb, toolbar, and keyed-row text and icons anonymous * fix(viva): eliminate keyed leaf widgets in run, remote, and tab views * fix(viva): avoid keyed text and icons in run config, notifications and legacy views * fix(viva): complete keyed leaf cleanup in settings and remaining workbench views * fix(viva): remove unused loop indices after leaf key cleanup * fix(viva): avoid leaf identity keys on remote and configuration display text * fix(viva): preserve parent context for keyed rows and drop unused loop indices * fix(viva): remove unused hex row index after anonymous text migration * fix(viva): use anonymous leaf text in keyed modal and list rows * fix(viva): upgrade fork pin, fix remaining key leaks, and absorb #2328 ignore tests --------- Co-authored-by: lithe-support[bot] <356900028+lithe-support[bot]@users.noreply.github.com> Co-authored-by: lick <2188718831@qq.com>
Owner
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提交并重新验证,之后才能 ready / 合入。PR 类型 / Type
改动说明 / What changes
背景 / Why
保存工作区工具链 pin 会生成
.lithe/.gitignore,旧固定 Core 仅保证本机 pin 文档被忽略,生成的忽略文件自身仍出现在 Git 未跟踪列表中。只合入 Core 修复不会改变桌面行为,因为桌面固定读取独立的 Core 修订。改动 / Changes
dcb3d77f7a56e58f3d7c0aceea5b7df6986ed2e2升到 Core 【建议】mac端的UI优化建议 #179 的审查提交4ce02a3f77bb0225488f513c5f92e18abb29e144,并在构建脚本注明合入顺序与替换为 main SHA 的条件。Core 使用有效 Git 忽略语义,只补齐根锚定的/.gitignore和/toolchains/local.json。SavePin和固定 Core 写出文件,用隔离全局配置的git check-ignore确认仅忽略生成的.lithe/.gitignore与本机 pin;团队共享配置和嵌套.gitignore仍可提交。pending状态。不在本 PR 范围内 / Out of scope
忽略匹配和编辑计划在 Core #179 实现;宿主继续使用现有原子写入适配器,没有新增 Go 匹配规则、恢复退役运行文件模式或改变整目录的忽略策略。没有 UI、插件协议或 API 字段变更。
类型专属:fix
复现与根因
/toolchains/local.json,.lithe/.gitignore仍未被 Git 忽略。期望仅补齐忽略文件自身,保留团队文件可提交。prepare_ignore的单条规则维护逻辑,始于9bd06ef3ea732ff1d7db6e6f37280c29dab6b25e(feat(toolchain): plan bounded native pin source edits)。Core 【建议】mac端的UI优化建议 #179 修复该逻辑;本 PR 解决固定版本的实际消费。检查项
SavePin/SavePins、Core dispatcher、fixture 及所有现行.lithe/.gitignore维护入口;唯一规则真源在 Core。范围检查 / Scope checks
功能矩阵 / Feature matrix
plugin-injected-toolchains.json的能力与验证动作;macOS / Windows 验证状态维持pending。cc160028/ head336c2597的变更门禁通过,确有对应能力行为更新。.artifacts/下生成视图。插件归属 / Plugin ownership
UI 验证 / UI evidence
N/A:没有界面布局、控件、用户可见文案或交互状态改动。Git 未跟踪列表中的文件变化通过实际 Git 命令验证。
统一日志系统 / Structured logging
N/A:沿用既有保存与失败边界,未新增日志事件、失败类型或生命周期。宿主旧日志生成与使用门禁已经移除,未将缺失脚本记为通过。
界面文案 / i18n
N/A:没有新增用户可见文字。
逻辑归属 / Logic placement
toolchains.editPinSources,无工具或插件专属分支。性能与内存 / Performance and memory
N/A:没有新增生产进程、线程、依赖、缓存或后台工作。新增 Git 调用仅位于集成测试,每个命令最多 5 s、管道回收上限 1 s;只运行空模板的本地初始化和
check-ignore,不调用 hooks 或子工具。Core 多检查一个有界路径的成本在配套 PR 说明。设置 / Settings
插件契约 / Plugin contract
N/A:没有插件协议、能力版本、宿主方法、通知、SDK 或 API 字段变更。Core 修订与共享 fixture 的实际消费通过 Go→C ABI 回归验证,见下表。
发行包与资源 / Bundle and resources
无用代码与重构 / Dead code and refactoring
验证 / Verification
环境:Linux amd64,Go 1.27.4、Rust 1.100.0、Git 2.56.1;宿主基线
cc16002831ac916ec0f6c2ed98ab891de72f315f。所有 Go 检查经scripts/desktop/desktop-go.sh读取固定 Core,不以本地 override 替代 pin。test -json -count=1 -p=1 -parallel=1 -timeout=120s ./internal/toolchaintest -json -count=1 -p=1 -parallel=1 -timeout=120s -run '^TestToolchainPinSourcesMatchSharedFixture$' ./internal/coretest -json -race -count=1 -p=1 -parallel=1 -timeout=120s ./internal/toolchainverify-test-stability.sh静态入口(工作树及精确 base/head)gofmt、构建脚本bash -n、git diff --check与插件归属自查Go 命令统一通过
.agents/skills/write-stable-tests/scripts/run-go-tests-with-timing.mjs --suite-timeout-ms 600000 --report <report>.json -- bash scripts/desktop/desktop-go.sh ...执行,资源控制为CARGO_BUILD_JOBS=1 GOMAXPROCS=2 GOGC=50 GOMEMLIMIT=2GiB,没有并行运行构建。旧 pin 的-run精确选择上述三项保存回归。实际读取的固定 Core checkout 为4ce02a3f77bb0225488f513c5f92e18abb29e144。逐项 JSON / HTML / JUnit / 原始日志位于
.artifacts/test-stability/issue-1670-desktop-{before,toolchain,ffi,race}.*;工件不提交到源码分支。Go 报告同时记录父测试和子测试,不把它们的时间相加当作墙钟时长。范围与限制: 新增 Git 集成已完成独立人工交叉复核,核对环境隔离、空模板、两类文件的忽略结果及进程 / 管道期限;无阻塞项。原生 macOS / Windows、原生 GUI 和发行包验证未执行,矩阵继续保持
pending。共享契约旧门禁verify-shared-contracts.sh已移除,不将缺失门禁记为通过。本 PR 本地桌面测试限定为完整 toolchain 包、其 race 和 pin fixture,未运行./...,也不借用其他分支的全量结果作为本分支证据。提交前确认 / Final checks