Skip to content

fix: keep Clippy's own windows out of session summaries (#86) - #124

Merged
protocorn merged 1 commit into
protocorn:mainfrom
Buzepool:fix/skip-clippy-windows-in-summaries-86
Nov 24, 2026
Merged

protocorn merged 1 commit into
protocorn:mainfrom
Buzepool:fix/skip-clippy-windows-in-summaries-86

Conversation

@Buzepool

Copy link
Copy Markdown
Contributor

Description

Capture already blacks out Clippy's own windows, but their events (e.g. focusing Settings) still reached the summarizer, so a session summary could describe Clippy's Settings as user activity. Events from Clippy's windows are now dropped before summarizing, using the existing is_clippy_window check so the rule matches capture.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Related issue

Closes #86

Changes made

  • core/summarizer.py: is_contentful_for_summary returns False for Clippy's own windows (matched by process or title)
  • tests/test_summarizer_screen_text.py: regression test, by process name and by title, and checks the prompt keeps the user's events

Testing

  • Added/updated unit tests
  • Ran existing test suite (summarizer tests pass; the new test fails without the fix)

Additional notes

This covers summaries. Raw events from Clippy windows can still match search_events; happy to filter there too in a follow-up if you want that.

@protocorn
protocorn merged commit 3a619f8 into protocorn:main Nov 24, 2026
6 checks passed

Copy link
Copy Markdown
Owner

thanks a lot @Buzepool, merged both this and #123. really clean fix and the regression test is appreciated. and yes, would love the search_events filter as a follow up if you're up for it 🙌

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.

Clippy captures and summarizes its own windows (e.g. Settings)

2 participants