Skip to content

[codex] Cache event capture window filters#3961

Merged
louis030195 merged 1 commit into
mainfrom
codex/cache-visual-check-filters
Jun 10, 2026
Merged

[codex] Cache event capture window filters#3961
louis030195 merged 1 commit into
mainfrom
codex/cache-visual-check-filters

Conversation

@louis030195

Copy link
Copy Markdown
Collaborator

Summary

  • build the event-driven capture WindowFilters once when the monitor loop starts
  • reuse the cached filters for visual-change checks and full captures
  • keep excluded SCK window IDs resolved freshly each check/capture so changing windows are still respected

Why

The ignore/include/window URL config is stable for an event-driven capture loop, but the loop rebuilt parsed WindowFilters on every visual check and every full capture. Caching the parsed filters removes repeated pattern parsing and URL lowercasing from the steady capture path without changing capture behavior.

Validation

  • cargo fmt --package screenpipe-engine -- --check
  • cargo test -p screenpipe-engine event_driven_capture --lib
  • cargo check -p screenpipe-engine

@louis030195 louis030195 force-pushed the codex/cache-visual-check-filters branch from fa3e279 to 3ccbca1 Compare June 10, 2026 02:30
@louis030195 louis030195 marked this pull request as ready for review June 10, 2026 03:28
@louis030195 louis030195 merged commit 24430ea into main Jun 10, 2026
23 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.

1 participant