-
Notifications
You must be signed in to change notification settings - Fork 143
Twitter reply command fails: 'Could not find the reply text area' even on fresh tweets #17
Description
Bug Description
The opencli-rs twitter reply command consistently fails with:
| failed | Could not find the reply text area. Are you logged in?
Reproduction
This happens on every single attempt, regardless of tweet age or argument order.
Test 1: Tweet posted 5 minutes ago (snowflake ID decoded to 22:49 UTC, ran at ~22:57 UTC)
opencli-rs twitter reply --verbose "Testing reply to fresh tweet." "https://x.com/VadimStrizheus/status/2040199979927482618"Result: Failed — "Could not find the reply text area"
Test 2: Argument order confirmed correct per --help
Usage: opencli-rs twitter reply [OPTIONS] <text> <url>
Both orderings tested (<text> <url> and <url> <text>). Both fail identically.
What DOES work
opencli-rs twitter post— works perfectlyopencli-rs twitter like— works perfectlyopencli-rs twitter follow— works perfectlyopencli-rs twitter search— works perfectly
Environment
- opencli-rs version: 0.1.3
- macOS: Darwin 24.6.0 (Sequoia) x86_64
- Chrome: Running and logged in
- Browser extension: Connected
Root cause analysis
The Playwright/CDF automation for reply navigates to the tweet page but the DOM selector for the reply text area never finds the element. The tweet page loads fine (the tweet is visible), but the reply composer textarea isn't being detected. This is likely a selector issue — the reply textarea may have a different class/role than assumed, or it may require scrolling/clicking to activate the reply modal first.
Compared to post, which successfully finds the tweet composer textarea, the reply flow is clearly using different DOM traversal logic that isn't matching the current X.com page structure.
Expected behavior
Reply should be posted successfully, similar to how post works flawlessly.