Skip to content

Fix Gmail multi-label filtering#26

Open
Bbbstin wants to merge 1 commit into
benchflow-ai:mainfrom
Bbbstin:bbbstin/fix-gmail-multi-label-filter
Open

Fix Gmail multi-label filtering#26
Bbbstin wants to merge 1 commit into
benchflow-ai:mainfrom
Bbbstin:bbbstin/fix-gmail-multi-label-filter

Conversation

@Bbbstin

@Bbbstin Bbbstin commented Jul 12, 2026

Copy link
Copy Markdown

Summary

  • fix messages.list returning 500 Internal Server Error for multi-label requests such as GET /gmail/v1/users/me/messages?labelIds=INBOX&labelIds=CATEGORY_UPDATES
  • replace repeated unaliased MessageLabel joins, which produced ambiguous SQL, with per-label relationship any() checks that require every requested label
  • add regression coverage confirming that only messages containing every requested label are returned

Validation

  • cd packages/environments/mock-gmail && uv run --extra dev pytest tests -q (247 passed)
  • git diff --check

Notes

  • no API contract or database schema changes

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