Commit c17c7e6
Use SQLite for GetGmailIDsByFilter to ensure accurate deletion status
DuckDBEngine.GetGmailIDsByFilter now delegates to SQLiteEngine instead
of querying the Parquet cache. This ensures deleted messages are properly
excluded even when the Parquet cache is stale.
The Parquet cache only captures deleted_from_source_at at build time.
Messages deleted after the cache was built would still appear in staging
queries. By using SQLite (the source of truth), we guarantee accurate
results for deletion staging in both TUI and MCP.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 966e029 commit c17c7e6
2 files changed
+18
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1502 | 1502 | | |
1503 | 1503 | | |
1504 | 1504 | | |
1505 | | - | |
1506 | | - | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
1507 | 1509 | | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
1508 | 1517 | | |
1509 | | - | |
| 1518 | + | |
1510 | 1519 | | |
1511 | 1520 | | |
1512 | 1521 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
1671 | 1671 | | |
1672 | 1672 | | |
1673 | 1673 | | |
| |||
1677 | 1677 | | |
1678 | 1678 | | |
1679 | 1679 | | |
1680 | | - | |
| 1680 | + | |
1681 | 1681 | | |
1682 | | - | |
1683 | | - | |
| 1682 | + | |
| 1683 | + | |
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
| |||
0 commit comments