Skip to content

fix(baker): 🐛 调整 baker 中事务通讯联系人检测方式以处理无红点时无法检测问题#1121

Merged
MistEO merged 1 commit intomainfrom
fix/baker_TaskHintChange_blade
Mar 8, 2026
Merged

fix(baker): 🐛 调整 baker 中事务通讯联系人检测方式以处理无红点时无法检测问题#1121
MistEO merged 1 commit intomainfrom
fix/baker_TaskHintChange_blade

Conversation

@HBLADEH
Copy link
Member

@HBLADEH HBLADEH commented Mar 8, 2026

  • 调整 baker 中事务通讯联系人检测方式以处理无红点时无法检测问题

因为没有可供测试的样本,所以使用颜色匹配的方案。

事务通讯中小竖条的颜色会根据任务有不同的颜色,后续要是有新颜色的任务需要跟进适配

Summary by Sourcery

调整 BAKER 流水线配置,以在交易沟通联系人检测中处理没有通知指示器的情况。

Bug Fixes:

  • 修复在 BAKER 中,当不存在通知/红点指示器时的交易沟通联系人检测问题。

Enhancements:

  • 将 BAKER 中的交易沟通联系人检测切换为基于颜色的方案,以便处理不同任务颜色的情况。
Original summary in English

Summary by Sourcery

Adjust BAKER pipeline configuration for transaction communication contact detection to handle cases without notification indicators.

Bug Fixes:

  • Fix transaction communication contact detection in BAKER when no notification/red-dot indicator is present.

Enhancements:

  • Switch transaction communication contact detection in BAKER to a color-based scheme that can handle varying task colors.

@HBLADEH HBLADEH requested a review from MistEO March 8, 2026 13:32
Copy link
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.

Hey - 我在这里给出了一些整体反馈:

  • 由于现在的检测依赖于特定的颜色值,建议将这些颜色集中管理:要么定义为具名常量,要么在 BAKER.json 中放在一个清晰分离的配置块中,这样未来新增或修改颜色时更易维护、也不容易出错。
  • 如果颜色匹配逻辑涉及容差阈值(例如为了适应抗锯齿或轻微的视觉差异),建议在流水线定义中将这些阈值配置化,而不是在代码中硬编码,这样当 UI 渲染发生变化时调整会更方便。
面向 AI Agent 的提示
Please address the comments from this code review:

## Overall Comments
- Since the detection now relies on specific color values, consider centralizing these colors as named constants or a clearly separated configuration block in BAKER.json so that future color additions or changes are easier to manage and less error-prone.
- If the color-matching logic involves tolerance thresholds (e.g., for anti-aliasing or minor visual variations), make those thresholds configurable in the pipeline definition rather than hardcoding them to simplify adjustments when UI rendering changes.

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

Hey - I've left some high level feedback:

  • Since the detection now relies on specific color values, consider centralizing these colors as named constants or a clearly separated configuration block in BAKER.json so that future color additions or changes are easier to manage and less error-prone.
  • If the color-matching logic involves tolerance thresholds (e.g., for anti-aliasing or minor visual variations), make those thresholds configurable in the pipeline definition rather than hardcoding them to simplify adjustments when UI rendering changes.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Since the detection now relies on specific color values, consider centralizing these colors as named constants or a clearly separated configuration block in BAKER.json so that future color additions or changes are easier to manage and less error-prone.
- If the color-matching logic involves tolerance thresholds (e.g., for anti-aliasing or minor visual variations), make those thresholds configurable in the pipeline definition rather than hardcoding them to simplify adjustments when UI rendering changes.

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.

@HBLADEH HBLADEH linked an issue Mar 8, 2026 that may be closed by this pull request
"desc": "事务通讯的小红点",
"recognition": "TemplateMatch",
"desc": "事务通讯的小竖条, 从匹配红点变成匹配小竖条",
"recognition": "ColorMatch",
Copy link
Contributor

Choose a reason for hiding this comment

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

这玩意的问题不是识别,是会死循环啊

红点 点一下就没了,绿条一直有,就会一直点这个绿条

举个例子画面上有三个 “未读”,这样改完会变成,点第一个 未读,然后把里面的对话正常完成,然后又继续点第一个(刚刚已经完成对话了),然后循环点第一个

Copy link
Contributor

Choose a reason for hiding this comment

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

而且这个用模板匹配是不是也可以,不一定要颜色?

Copy link
Member Author

Choose a reason for hiding this comment

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

这玩意的问题不是识别,是会死循环啊

红点 点一下就没了,绿条一直有,就会一直点这个绿条

举个例子画面上有三个 “未读”,这样改完会变成,点第一个 未读,然后把里面的对话正常完成,然后又继续点第一个(刚刚已经完成对话了),然后循环点第一个

我尝试了下颜色匹配下,未点击完毕的绿条和点击完毕的绿条颜色是有所差异的(在代码中我注释的颜色就是未点击状态下的颜色)

QQ_1772981621564 QQ_1772981635925

在自测debug的时候亮色绿条的匹配是匹配不上暗色的绿条

Copy link
Contributor

Choose a reason for hiding this comment

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

🐂🍺

@MistEO MistEO merged commit 623ca44 into main Mar 8, 2026
17 checks passed
@MistEO MistEO deleted the fix/baker_TaskHintChange_blade branch March 8, 2026 15:17
@HBLADEH
Copy link
Member Author

HBLADEH commented Mar 8, 2026

玛丽老大辛苦了🥺

@ocsin1
Copy link
Contributor

ocsin1 commented Mar 9, 2026

对了,因为使用rgb值作识别,那在不同显卡驱动的干扰下表现如何(

@HBLADEH
Copy link
Member Author

HBLADEH commented Mar 9, 2026

对了,因为使用rgb值作识别,那在不同显卡驱动的干扰下表现如何(

呀 确实得看看,我只有我这边电脑的测试数据🥲

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