Skip to content

Conversation

@0xbrayo
Copy link
Member

@0xbrayo 0xbrayo commented Aug 23, 2025

Important

Adds always_active_pattern to DesktopQueryParams and updates canonicalEvents() to handle always-active applications in queries.py.

  • Behavior:
    • Adds always_active_pattern to DesktopQueryParams in queries.py to handle always-active applications.
    • Updates canonicalEvents() in queries.py to include always_active_pattern in not_afk event processing.
  • Misc:
    • Minor comment change in get_classes() in classes.py.

This description was created by Ellipsis for 34e6452. You can customize this summary. It will automatically update as commits are pushed.

@0xbrayo
Copy link
Member Author

0xbrayo commented Aug 23, 2025

#92

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Caution

Changes requested ❌

Reviewed everything up to 34e6452 in 1 minute and 11 seconds. Click for details.
  • Reviewed 44 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. aw_client/classes.py:73
  • Draft comment:
    Clarify the server fetch comment. The note on prod vs test server is ambiguous.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
2. aw_client/queries.py:59
  • Draft comment:
    Add a brief comment explaining the purpose of 'always_active_pattern'.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None

Workflow ID: wflow_UpPm8vrrKWcLjnma

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

not_afk = filter_keyvals(not_afk, "status", ["not-afk"]);"""
+ (
f"""
not_treat_as_afk = filter_keyvals_regex(events, "app", "{params.always_active_pattern}");
Copy link

Choose a reason for hiding this comment

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

Ensure 'always_active_pattern' is sanitized/escaped to prevent regex injection since it's inserted directly into the query.

@0xbrayo 0xbrayo force-pushed the always-active-pattern branch from 34e6452 to 74d187f Compare August 23, 2025 08:59
feat:escape quotes in always-active-pattern
@0xbrayo 0xbrayo force-pushed the always-active-pattern branch from 74d187f to 00d90cb Compare August 23, 2025 16:10
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.

1 participant