Fix: embed date filter in query instead of --since flag

Bird CLI doesn't support --since as a CLI flag.
Use X's search syntax: 'topic since:YYYY-MM-DD'

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt Van Horn
2026-02-03 13:26:51 -08:00
parent 89bdbae0fe
commit bcf5c2cc3f
+5 -2
View File
@@ -127,11 +127,14 @@ def search_x(
"""
count = DEPTH_CONFIG.get(depth, DEPTH_CONFIG["default"])
# Build query with date filter using X's search syntax
# Bird doesn't support --since flag, but X search accepts since:YYYY-MM-DD in query
query = f"{topic} since:{from_date}"
# Build command
cmd = [
"bird", "search",
topic,
"--since", from_date,
query,
"-n", str(count),
"--json",
]