-
Notifications
You must be signed in to change notification settings - Fork 212
Closed
Description
Description
opencli twitter search consistently returns empty results, while other twitter commands (e.g. trending, timeline) work fine.
Environment
- opencli v0.9.8
- macOS (Darwin 25.3.0)
opencli doctor --liveall OK, browser connectivity confirmed
Steps to Reproduce
# Simple search — returns nothing
opencli twitter search --query "AI" --limit 10 --verbose
# Output:
# [opencli] Mode: extension
# [opencli] Extension token: fingerprint a2e4613e
# [Verbose] Warning: Command returned an empty result.
# (no data)Tried various queries (English, Chinese, with/without advanced operators) — all return empty.
Working commands for comparison
# trending works perfectly (uses YAML/DOM strategy)
opencli twitter trending
# → returns 13 items successfullyRoot Cause Analysis
Looked at the source (src/clis/twitter/search.ts):
searchusesStrategy.INTERCEPTwithpage.installInterceptor('SearchTimeline')- The interceptor navigates to
x.com, waits 2s, installs interceptor, then navigates to search URL and waits 5s page.getInterceptedRequests()returns empty — theSearchTimelineAPI response is not being captured
Possible causes:
- Twitter/X may have changed the API endpoint name (no longer
SearchTimeline) - Timing issue — the API call may fire before the interceptor is installed
- The intercept strategy may not be compatible with the current Playwright MCP Bridge version
Expected Behavior
Should return search results matching the query, similar to what the Twitter web UI shows.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels