Skip to content

fix(build): keep implicitValue beside a user override - #121

Merged
1lck merged 2 commits into
mainfrom
fix/implicit-value-with-override
Nov 19, 2026
Merged

1lck merged 2 commits into
mainfrom
fix/implicit-value-with-override

Conversation

@1lck

@1lck 1lck commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

关联 Issue / Linked issue

PR 类型 / Type

  • fix

改动说明

#120 只在选项未设置时返回 implicitValue。接入桌面端“覆盖”复选框时发现了问题:用户覆盖并保存后,重新打开对话框,Core 不再返回工具的值,复选框也就不再显示,覆盖撤不掉。IDEA 的 PathOverrider 在已覆盖时仍然保留复选框和默认值,取消勾选就回到默认值。

  • build.resolveOptions 对没有声明 default 的 text、file、directory 选项,用户覆盖时也返回 implicitValue,表示撤销覆盖后会回到的值。声明了 default 时仍不返回。
  • 契约 README 中 build.resolveOptions 的说明同步更新;插件协议更新记录在 2026-11-19 新增一行。

验证

  • model_reports_the_implicit_value_of_unset_path_options 改为断言用户值旁边仍有 implicitValue。cargo test -p lithe-core 中构建系统相关测试通过,cargo fmt --check 和 verify-docs.mjs 通过。
  • 桌面端的覆盖、撤销往返由配套桌面 PR 的 TestPathOptionShowsTheToolValueUntilOverridden 验证。

🤖 Generated with Claude Code

1lck and others added 2 commits November 19, 2026 04:34
The host's Override checkbox needs the tool's value while the user overrides
it too, as what unchecking returns to; without it a reopened dialog could not
remove the override. Only a declared default replaces it.

Refs 1lck/Lithe-IDEA#2152

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@1lck
1lck marked this pull request as ready for review November 19, 2026 12:34
@1lck
1lck merged commit 5e0c2b5 into main Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant