From bcf5c2cc3fb06c7159a545c0056215386d77bfa7 Mon Sep 17 00:00:00 2001 From: Matt Van Horn Date: Tue, 3 Feb 2026 13:26:51 -0800 Subject: [PATCH] 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 --- scripts/lib/bird_x.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/lib/bird_x.py b/scripts/lib/bird_x.py index 3568a89..230332e 100644 --- a/scripts/lib/bird_x.py +++ b/scripts/lib/bird_x.py @@ -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", ]