Skip to content

Dev - #1851

Merged
runhey merged 14 commits into
masterfrom
dev
Oct 1, 2026
Merged

Dev#1851
runhey merged 14 commits into
masterfrom
dev

Conversation

@runhey

@runhey runhey commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Sourcery 摘要

提升游戏任务的可靠性,并通过结果验证和持久化策略支持扩展 Frog Boss 自动化功能。

新功能:

  • 添加 OAS Frog Boss 策略,支持持久化预测跟踪、加权来源可靠性评估和经过验证的历史结果。
  • 添加 Frog Boss 记录页面读取功能,以及更安全的活动导航和下注流程处理。

错误修复:

  • 防止 Onmyoji 角色切换无限重试:在达到有界超时时间后抛出包含上下文信息的错误。
  • 通过恢复兼容的选中状态区域,修复最近好友标签页检测问题。
  • 当未识别到首选增益时,防止 HeroTest 技能选择陷入挂起。
  • 修正 WeeklyTrifles 票券解析,并防止重复执行保存操作。
  • 更新 Frog Boss 图像和 OCR 资源,以适配当前游戏界面。

改进:

  • 改进 Frog Boss 下注确认流程,包括受保护的奖励选择、有限次数的提交重试以及明确的超时处理。
  • 为卡住的 Frog Boss 回合添加回退推进机制,并减少嘈杂的探索日志。

测试:

  • 增加对 Frog Boss 下注保护措施、OAS 历史记录和决策逻辑、HeroTest 技能回退机制以及有界 Onmyoji 切换的测试覆盖。

杂项:

  • 添加 Frog Boss OAS 来源配置和持久化历史记录支持。
Original summary in English

Summary by Sourcery

Improve game task reliability and extend Frog Boss automation with outcome-verified, persistent strategy support.

New Features:

  • Add the OAS Frog Boss strategy with persistent prediction tracking, weighted source reliability, and verified historical results.
  • Add Frog Boss record-page reading and safer activity navigation and betting flow handling.

Bug Fixes:

  • Prevent Onmyoji role switching from retrying indefinitely by raising contextual errors after bounded timeouts.
  • Fix recent-friend tab detection by restoring a compatible selected-state region.
  • Prevent HeroTest skill selection from hanging when no preferred buff is recognized.
  • Correct WeeklyTrifles ticket parsing and prevent repeated save actions.
  • Update Frog Boss image and OCR assets for the current game UI.

Enhancements:

  • Improve Frog Boss betting confirmation with guarded reward selection, limited submission retries, and explicit timeout handling.
  • Add fallback progression for stalled Frog Boss rounds and reduce noisy exploration logging.

Tests:

  • Add coverage for Frog Boss betting safeguards, OAS history and decision logic, HeroTest skill fallbacks, and bounded Onmyoji switching.

Chores:

  • Add Frog Boss OAS source configuration and persistent history support.

Hurry2 and others added 14 commits September 21, 2026 21:28
Both while True loops in switch_role could spin indefinitely. When the game is left on a sub-page of the onmyoji screen (e.g. the hero-exchange page), I_ONMYOJI_SWITCH never opens the role list, so the loop kept clicking until the global ~2min GameStuckError watchdog fired, losing the actual cause. Each loop now raises a ScriptError naming the failure after 20s.
feat(TouchFish):修复摸鱼行动逻辑问题
fix(SwitchOnmyoji): give both switch_role loops a bounded exit
- 新增click_random_buff,4个buff槽位随机点击其一
- hero1_skill_wait/hero2_skill_wait未命中目标buff时调用兜底后再点确认
fix(FrogBoss):修复对弈竞猜相关资源,激活oas策略客制化权重。
fix(HeroTest): 祝福识别超时后随机选择,避免秘境卡住
@runhey
runhey merged commit 967a012 into master Oct 1, 2026
2 of 3 checks passed

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

嘿——我已经审查了你的更改,整体看起来很棒!

Sourcery 评估

需要人工审查。 新的 OAS 策略可以自动选择并提交游戏内下注,因此错误的预测、过时的 UI 比赛信息或不正确的记录关联都可能消耗账户中的金币;此外,外部预测服务还引入了新的运行时依赖。回滚可以防止未来继续下注,但无法追回已经花费的货币。


Sourcery 对开源项目免费——如果你喜欢我们的审查结果,请考虑分享 ✨
Original comment in English

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

Sourcery assessment

Needs a human reviewer. The new OAS strategy can automatically select and submit an in-game bet, so a bad prediction, stale UI match, or incorrect record association could spend the account's gold; the external prediction service also adds a new runtime dependency. Reverting prevents future bets but cannot recover currency already spent.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

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.

5 participants