Skip to content

fix(AutoStockpile&QuantizedSliding): 修正target offset长宽错误#1905

Merged
MistEO merged 1 commit intov2from
fix/auto-stockpile
Apr 3, 2026
Merged

fix(AutoStockpile&QuantizedSliding): 修正target offset长宽错误#1905
MistEO merged 1 commit intov2from
fix/auto-stockpile

Conversation

@single-ptilopsis
Copy link
Copy Markdown
Contributor

@single-ptilopsis single-ptilopsis commented Apr 3, 2026

哈哈还有铸币(ocz

Summary by Sourcery

调整量化滑动的目标点击偏移配置,并对相关文档进行对齐更新。

Bug Fixes:

  • 将目标负偏移边距从 5 单位增加到 10 单位,以修正量化滑动覆盖场景下的点击目标尺寸。

Documentation:

  • 更新英文和中文的量化滑动开发者文档,以反映修正后的 target_offset 配置。
Original summary in English

Summary by Sourcery

Adjust target click offset configuration for quantized sliding and align related documentation.

Bug Fixes:

  • Increase negative target offset margins from 5 to 10 units to correct click target sizing in quantized sliding overrides.

Documentation:

  • Update English and Chinese quantized sliding developer docs to reflect the corrected target_offset configuration.

Copilot AI review requested due to automatic review settings April 3, 2026 13:23
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嘿,我已经审查了你的修改,看起来很棒!


Sourcery 对开源项目是免费的——如果你觉得我们的评审有帮助,欢迎分享 ✨
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续的评审。
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 修正了 QuantizedSliding 与 AutoStockpile 中使用 target_offset 时的宽高偏移计算错误,避免点击区域因 offset 计算不对而发生偏移。

Changes:

  • target_offset[5, 5, -5, -5] 更正为 [5, 5, -10, -10](对应 x/y 内移 5 后,w/h 需要缩小 10 才能保持左右/上下对称收缩)。
  • 同步更新中英文开发文档中的示例值。
  • 同步更新 AutoStockpile 的 pipeline 配置与 go-service 动态覆写逻辑。

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
docs/zh_cn/developers/quantized-sliding.md 更新中文文档中 target_offset 示例为正确的宽高缩减值
docs/en_us/developers/quantized-sliding.md 更新英文文档中 target_offset 示例为正确的宽高缩减值
assets/resource/pipeline/AutoStockpile/Entry.json 修正 AutoStockpile 点击节点使用的 target_offset 配置
agent/go-service/quantizedsliding/overrides.go 修正 go-service 模板点击覆写中 target_offset 的宽高参数

@MistEO MistEO merged commit 1deb69f into v2 Apr 3, 2026
22 checks passed
@MistEO MistEO deleted the fix/auto-stockpile branch April 3, 2026 14:10
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.

3 participants