Skip to content

fix: 重新修复线索交换弹窗漏点击问题#1895

Merged
MistEO merged 1 commit intov2from
fix/20260403
Apr 3, 2026
Merged

fix: 重新修复线索交换弹窗漏点击问题#1895
MistEO merged 1 commit intov2from
fix/20260403

Conversation

@zmdyy0318
Copy link
Copy Markdown
Contributor

@zmdyy0318 zmdyy0318 commented Apr 3, 2026

重新分析问题 #1759
pipeline设计:线索交换弹窗是在ReceptionRoomViewWait内进行捕获
日志分析:用户在ReceptionRoomViewIn节点失败,期望进入会客室界面,实际上还在线索交流弹窗中,ReceptionRoomViewWait内未进行有效捕获,说明该用户会客室弹窗出现较晚
原有修改方案:在每个会客室子任务内添加线索交换弹窗捕获,不符合pipeline设计,补丁较多后期维护困难
新修复方式:尝试继续增大sleep延迟,把线索交换弹窗在ReceptionRoomViewWait内处理掉
image

Summary by Sourcery

错误修复:

  • 提升 ReceptionRoom 流程的健壮性:当线索交换对话框比预期更晚出现时,不再在每个子任务中分别处理,而是统一在 ReceptionRoomViewWait 中进行集中处理。
Original summary in English

Summary by Sourcery

Bug Fixes:

  • Improve robustness of the ReceptionRoom flow when the clue-exchange dialog appears later than expected by handling it centrally in ReceptionRoomViewWait instead of per subtask.

@zmdyy0318 zmdyy0318 requested review from Copilot and overflow65537 and removed request for Copilot April 3, 2026 09:58
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.

Hey - 我在这里给了一些高层面的反馈:

  • 与其继续增加 ReceptionRoomViewWait 里的固定 sleep 时间,不如考虑使用更健壮的“按条件等待”机制(例如在设置最大超时时间的前提下轮询弹窗是否出现),以避免对时间高度敏感、易碎的行为。
  • 如果新的延迟是硬编码在 JSON pipeline 中的,建议把它提取成一个有名字的参数或常量,这样就可以在不同环境中调节,而无需修改 pipeline 本身的结构。
面向 AI Agents 的提示
Please address the comments from this code review:

## Overall Comments
- Instead of further increasing a fixed sleep in ReceptionRoomViewWait, consider using a more robust wait-on-condition mechanism (e.g., polling for the popup’s appearance with a max timeout) to avoid brittle timing-dependent behavior.
- If the new delay is hardcoded in the JSON pipeline, consider extracting it into a named parameter or constant so that it can be tuned per-environment without modifying the pipeline structure itself.

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

Hey - I've left some high level feedback:

  • Instead of further increasing a fixed sleep in ReceptionRoomViewWait, consider using a more robust wait-on-condition mechanism (e.g., polling for the popup’s appearance with a max timeout) to avoid brittle timing-dependent behavior.
  • If the new delay is hardcoded in the JSON pipeline, consider extracting it into a named parameter or constant so that it can be tuned per-environment without modifying the pipeline structure itself.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Instead of further increasing a fixed sleep in ReceptionRoomViewWait, consider using a more robust wait-on-condition mechanism (e.g., polling for the popup’s appearance with a max timeout) to avoid brittle timing-dependent behavior.
- If the new delay is hardcoded in the JSON pipeline, consider extracting it into a named parameter or constant so that it can be tuned per-environment without modifying the pipeline structure itself.

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.

]
},
"pre_delay": 1500, // 等待可能出现的情报交流结束弹窗
"pre_delay": 3000, // 等待可能出现的情报交流结束弹窗
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

没招了吗()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

感觉是没招了(

@MistEO MistEO merged commit 554dd40 into v2 Apr 3, 2026
33 of 34 checks passed
@MistEO MistEO deleted the fix/20260403 branch April 3, 2026 10:53
@ocsin1
Copy link
Copy Markdown
Contributor

ocsin1 commented Apr 3, 2026

也许这里可以边等待边识别有没有线索交换弹窗,(?)这样至少有弹窗的时候会快一点,有办法做到吗

@zmdyy0318
Copy link
Copy Markdown
Contributor Author

也许这里可以边等待边识别有没有线索交换弹窗,(?)这样至少有弹窗的时候会快一点,有办法做到吗

现象是
1、进入会客室界面后,画面静止不动,都可点击
2、等待2秒左右可能会弹出线索交换完毕弹窗,也有可能不弹

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.

4 participants