Skip to content

Conversation

@lambdalisue
Copy link
Member

Summary

  • Fixes an issue where the first matching was not executed when using the -input= option
  • The root cause was that initialQuery was being set to #previousQuery, which prevented the matching logic from detecting a query change

Changes

  • Set #previousQuery to undefined on initialization instead of initialQuery
  • Added comment explaining why this is necessary for the -input= option to work correctly

Test plan

  • Verify that providing -input= option triggers initial matching
  • Verify that normal operation without -input= still works as expected

The previous implementation set initialQuery to #previousQuery, which
prevented the first matching from executing when an initial query was
provided via the -input= option. This fix ensures the first matching
always runs by keeping #previousQuery undefined on initialization.
@lambdalisue
Copy link
Member Author

Closing in favor of a new PR created from main branch to avoid potential CI issues.

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