Skip to content

fix: 补充修复组队邀请UI状态识别问题 (#1881) - #1924

Closed
allesgutefy wants to merge 3 commits into
runhey:masterfrom
allesgutefy:fix/invite-default-checkbox-v2
Closed

allesgutefy wants to merge 3 commits into
runhey:masterfrom
allesgutefy:fix/invite-default-checkbox-v2

Conversation

@allesgutefy

@allesgutefy allesgutefy commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Issue #1881 补充修复

问题背景

Issue #1881 的修复(PR #1886)合并后,经本地实测发现:

  • 仅完成 I_I_NO_DEFAULT → interval=3(原 PR 的修改)仍无法解决问题
  • 同时完成 I_GI_SURE → interval=3 后问题解决

修复内容

  1. 代码修改:

  2. 素材更新:更新4张游戏UI素材,适配10月10日游戏更新后的新界面:

    • gi_i_default.png(已勾选状态)
    • gi_i_no_default.png(未勾选状态)
    • gi_gi_sure.png(确定按钮)
    • gi_cancel.png(取消按钮)

本地验证

  • 不加 I_GI_SURE interval=3:勾选框循环正常,但点击确认按钮后弹窗无法关闭
  • 加 I_GI_SURE interval=3 后:流程正常,组队邀请功能完全恢复

Fixes #1881

Sourcery 总结

错误修复:

  • 通过改进确认按钮状态识别的时机,修复群组邀请流程无法关闭确认对话框的问题。
Original summary in English

Sourcery 总结

错误修复:

  • 通过改进确认按钮状态识别的时机,修复群组邀请流程可能无法关闭确认对话框的问题。
Original summary in English

Sourcery 摘要

错误修复:

  • 通过改进确认按钮状态识别的时机,修复群组邀请流程无法关闭确认对话框的问题。
Original summary in English

Summary by Sourcery

Bug Fixes:

  • Fix group invitation flows failing to close the confirmation dialog by improving confirmation-button state recognition timing.

Summary by CodeRabbit

  • 交互调整
    • 邀请流程中切换选项及点击确认的重试间隔由 1 秒调整为 3 秒。

- Update gi_i_default.png, gi_i_no_default.png, gi_gi_sure.png, gi_cancel.png for new UI
- Add interval=3 for I_GI_SURE (I_I_NO_DEFAULT was already in previous merged PR)
- Fix runhey#1881

@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.

嘿——我发现了 1 个问题

给 AI Agent 的提示
请处理本次代码审查中的评论:

## 个别评论

### 评论 1
<location path="tasks/Component/GeneralInvite/general_invite.py" line_range="552" />
<code_context>
             if not self.appear(self.I_GI_SURE):
                 break
-            if self.appear_then_click(self.I_GI_SURE, interval=1):
+            if self.appear_then_click(self.I_GI_SURE, interval=3):
                 continue

</code_context>
<issue_to_address>
**Bondling 邀请卡住**

当 Bondling Fairyland 的队长或成员处理更新后的邀请确认对话框时,Bondling Fairyland 的 `check_and_invite` 和 `check_then_accept` 重写方法仍以 `interval=1` 点击 `I_GI_SURE`,因此确认对话框会保持打开状态,邀请流程也会一直卡住。

请将 Bondling Fairyland 的这两个重写方法都更新为以 `interval=3` 点击 `I_GI_SURE`。

另外还需修改 `tasks/Component/GeneralInvite/general_invite.py:575`。
</issue_to_address>

Sourcery 评估

等待批准。 请先处理 1 个发现的问题。

阻塞性发现:tasks/Component/GeneralInvite/general_invite.py:552


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

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="tasks/Component/GeneralInvite/general_invite.py" line_range="552" />
<code_context>
             if not self.appear(self.I_GI_SURE):
                 break
-            if self.appear_then_click(self.I_GI_SURE, interval=1):
+            if self.appear_then_click(self.I_GI_SURE, interval=3):
                 continue

</code_context>
<issue_to_address>
**Bondling invitations stay stuck**

When a Bondling Fairyland leader or member handles the updated invitation confirmation dialog, bondling Fairyland’s `check_and_invite` and `check_then_accept` overrides still click `I_GI_SURE` with `interval=1`, so the confirmation dialog stays open and invite flows remain stuck.

Update both Bondling Fairyland overrides to click `I_GI_SURE` with `interval=3`.

Also at `tasks/Component/GeneralInvite/general_invite.py:575`.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: tasks/Component/GeneralInvite/general_invite.py:552


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

Comment thread tasks/Component/GeneralInvite/general_invite.py
- Add I_I_NO_DEFAULT interval=3 (fix incomplete fix from PR runhey#1886)
- Add I_GI_SURE interval=3
- Update 4 GI assets for Oct 10 game UI update
- PR runhey#1886 was only merged to master, not dev, so repeat changes here

Fixes runhey#1881

@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 assessment

Approved.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 197629c7-01ed-406d-9b7e-858651605d48

📥 Commits

Reviewing files that changed from the base of the PR and between fc68a2a and ca431a0.


⛔ Files ignored due to path filters (4)
  • tasks/Component/GeneralInvite/gi/gi_cancel.png is excluded by !**/*.png
  • tasks/Component/GeneralInvite/gi/gi_gi_sure.png is excluded by !**/*.png
  • tasks/Component/GeneralInvite/gi/gi_i_default.png is excluded by !**/*.png
  • tasks/Component/GeneralInvite/gi/gi_i_no_default.png is excluded by !**/*.png

📒 Files selected for processing (1)
  • tasks/Component/GeneralInvite/general_invite.py

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.



Walkthrough

check_and_invite 中切换邀请选项和点击确认按钮的间隔从 1 秒改为 3 秒。check_then_accept 中点击确认按钮的间隔也从 1 秒改为 3 秒。现有循环条件未变。

关联问题评估

目标 是否解决 说明
[#1881] 默认邀请状态识别失败时,避免 check_and_invite 无限循环并卡住任务 ❌ 循环条件未变,也未增加点击次数上限或调整识别模板;仅修改点击间隔。

问题严重性 <fixed_issue_severity>Medium</fixed_issue_severity>

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to ca431

The invitation flow’s retry timing changes as intended, and no specific behavior that would block merging is established.

✨ Finishing Touches 💡 1
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch fix/invite-default-checkbox-v2

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

兔子敲下确认键,间隔慢慢变长,
邀请选项轻轻点,等待三秒钟。
屏幕亮起一枚勾,兔耳随风晃,
下一场的脚步声,传来咚咚响。
月光照着小按钮,闪出温柔光,
兔子收起小爪子,欢喜跳一场。

Comment @coderabbitai help to get the list of available commands.

@allesgutefy

Copy link
Copy Markdown
Contributor Author

PR #1924 更新说明

问题背景

PR #1886 合并到 master 后,经本地实测发现修复不完整:

  • 仅完成 I_I_NO_DEFAULT → interval=3 仍无法解决问题
  • 同时完成 I_GI_SURE → interval=3 后问题解决

另外,PR #1886 未合并到 dev 分支。

修复内容

  1. 代码修改(仅队长端 check_and_invite 函数):

    • I_I_NO_DEFAULT 的 appear_then_click 改为 interval=3
    • I_GI_SURE 的 appear_then_click 改为 interval=3
    • 队员端 check_then_accept 不需修改
  2. 素材更新:适配10月10日游戏UI更新

    • gi_i_default.png
    • gi_i_no_default.png
    • gi_gi_sure.png
    • gi_cancel.png

本地验证

  • 不加 I_GI_SURE interval=3:点击确认按钮后弹窗无法关闭
  • 加 I_GI_SURE interval=3 后:流程正常

请审核。

Fixes #1881

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.

八岐大蛇组队:默认邀请勾选后识别不到已勾选状态,check_and_invite 死循环卡死

1 participant