Skip to content

Merge branch 'master' into dev - #1690

Merged
runhey merged 5 commits into
devfrom
master
Jul 22, 2026
Merged

Merge branch 'master' into dev#1690
runhey merged 5 commits into
devfrom
master

Conversation

@runhey

@runhey runhey commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary by Sourcery

Bug Fixes:

  • 确保在请求协助后出现磁盘数量限制确认对话框时,债券团队创建流程仍能正确继续。
Original summary in English

Summary by Sourcery

Bug Fixes:

  • Ensure bond team creation flow continues correctly when a disk quantity limit confirmation dialog appears after requesting assistance.

runhey and others added 5 commits July 12, 2026 19:03

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

Hey - 我给出了一些总体反馈:

  • 现在循环在处理完 I_UI_CONFIRM 对话框后会直接 continue,而不会修改 click_count,如果确认框持续再次出现,这可能导致循环无界运行;建议在这条执行路径上增加一次递增或单独的保护机制。
  • 在点击 I_UI_CONFIRM 之后新增的 sleep 被硬编码为 1 秒;建议将这个延迟关联到一个可配置常量,或者说明为什么 1 秒足以完成 UI 状态变更。
面向 AI Agent 的提示
Please address the comments from this code review:

## Overall Comments
- The loop now `continue`s after handling the `I_UI_CONFIRM` dialog without touching `click_count`, which could cause an unbounded loop if the confirmation keeps reappearing; consider incrementing or adding a separate guard for this path.
- The new sleep after clicking `I_UI_CONFIRM` is hard-coded to 1s; consider tying this delay to a configurable constant or explaining why 1s is sufficient for the UI state change.

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

Hey - I've left some high level feedback:

  • The loop now continues after handling the I_UI_CONFIRM dialog without touching click_count, which could cause an unbounded loop if the confirmation keeps reappearing; consider incrementing or adding a separate guard for this path.
  • The new sleep after clicking I_UI_CONFIRM is hard-coded to 1s; consider tying this delay to a configurable constant or explaining why 1s is sufficient for the UI state change.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The loop now `continue`s after handling the `I_UI_CONFIRM` dialog without touching `click_count`, which could cause an unbounded loop if the confirmation keeps reappearing; consider incrementing or adding a separate guard for this path.
- The new sleep after clicking `I_UI_CONFIRM` is hard-coded to 1s; consider tying this delay to a configurable constant or explaining why 1s is sufficient for the UI state change.

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.

@github-actions

Copy link
Copy Markdown

Findings

  • C2 [风险]
    位置:tasks/BondlingFairyland/script_task.py / ScriptTask.run_leader.create_bond_team
    原因:新增 sleep(1) 落在任务入口循环里,直接违反清单对 tasks/**/script_task.py 禁止 sleep 的要求,且该确认弹窗分支没有独立超时或失败退出条件。
    修改:改为基于现有 Timer 或页面状态的等待,并为确认弹窗分支补充重试上限或显式失败返回。

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • api.github.com
  • github.com

[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:

tools:
  github:
    mode: gh-proxy

See GitHub Tools for more information on gh-proxy mode.

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.github.com"
    - "github.com"

See Network Configuration for more information.

Generated by PR Review Checklist for issue #1690 · 20.5 AIC · ⌖ 6.44 AIC · ⊞ 14.7K ·

@github-actions

Copy link
Copy Markdown

Change Summary

  • I_UI_CONFIRM 的处理前置到建队循环早期,优先消化“求援后式盘数量上限确认”弹窗。
  • 点击确认后新增 sleep(1),给 UI 状态切换留出缓冲。
  • 这次只改了 BondlingFairyland 的建队流程,没有扩散到其他任务。

Reconstructed Intent

点击此处展开 - 看起来是在修复“请求协助/求援”后弹出确认框时,流程被卡住或走错分支的问题。 - 更像是让建队循环在遇到该弹窗时先完成当前 UI 处理,再回到求援/进房逻辑。

Observed Constraints

点击此处展开 - 这个确认框必须在 `click_count >= 6` 的失败判断之前被消费,否则会把正常弹窗当成“点击失败”直接抛错。 - 这里默认该弹窗是一次性、可点击消失的;如果它反复出现,当前分支仍可能空转。 - `I_UI_CONFIRM` 在这里仍是通用资源,前提是它不会误吞别的更关键确认态。

Intent Alignment

  • 基本一致:修改方向和注释都指向同一个问题,且改动范围很小。

Release Risk

  • 风险等级:低
  • 主要风险是该弹窗在真实机型/不同活动状态下的出现频率和消失时序未验证。
  • 其次是 sleep(1) 对不同设备响应速度可能偏短或偏长,影响建队节奏。

Validation Gaps

点击此处展开 - 没看到针对“连续出现确认框”或“确认框出现后仍能继续进房”的回归验证。 - 没看到对 `click_count` 保护路径的覆盖,建议至少跑一次实际求援建队流程确认不会提前报 `BondlingNumberMax`。

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • api.github.com
  • github.com

[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:

tools:
  github:
    mode: gh-proxy

See GitHub Tools for more information on gh-proxy mode.

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.github.com"
    - "github.com"

See Network Configuration for more information.

Generated by PR Review Intent for issue #1690 · 36.9 AIC · ⌖ 5.26 AIC · ⊞ 14.7K ·

@runhey
runhey merged commit 93ebdf5 into dev Jul 22, 2026
12 checks passed
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.

2 participants