Skip to content

Twitter reply command fails: 'Could not find the reply text area' even on fresh tweets #17

@ilro

Description

@ilro

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 perfectly
  • opencli-rs twitter like — works perfectly
  • opencli-rs twitter follow — works perfectly
  • opencli-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions