Skip to content

Conversation

@leavesster
Copy link
Contributor

No description provided.

@leavesster leavesster requested a review from Copilot July 29, 2025 08:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes handling for a non-existent "SubflowBlockProgress" event type and an unused import. The refactoring simplifies the event handling logic by eliminating redundant code that was processing the same progress callback for both "BlockProgress" and "SubflowBlockProgress" events.

  • Removed unused HandleDef import from the handle module
  • Eliminated duplicate event handling for "SubflowBlockProgress" event type

elif payload.get("type") == "BlockProgress":
progress = payload.get("progress")
if progress is not None:
run_progress_callback(progress)
Copy link

Copilot AI Jul 29, 2025

Choose a reason for hiding this comment

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

The removal of the SubflowBlockProgress event handler creates inconsistent event handling. If SubflowBlockFinished events exist, there should likely be corresponding SubflowBlockProgress events. Consider verifying that SubflowBlockProgress events truly don't exist or documenting why only the finished event is handled.

Suggested change
run_progress_callback(progress)
run_progress_callback(progress)
elif payload.get("type") == "SubflowBlockProgress":
progress = payload.get("progress")
if progress is not None:
run_progress_callback(progress)

Copilot uses AI. Check for mistakes.
@leavesster leavesster merged commit 9d37930 into main Jul 29, 2025
5 checks passed
@leavesster leavesster deleted the refactor branch July 29, 2025 09:15
@oomol-bot oomol-bot mentioned this pull request Jul 29, 2025
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