Files
wehub-resource-sync 9b395f5cc3
E2E Headed Chrome / e2e-headed (macos-15) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (ubuntu-latest) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (windows-latest) (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / unit-test (push) Has been cancelled
CI / bun-test (push) Has been cancelled
CI / adapter-test (push) Has been cancelled
CI / smoke-test (macos-latest) (push) Has been cancelled
CI / smoke-test (ubuntu-latest) (push) Has been cancelled
Security Audit / audit (push) Has been cancelled
Build Chrome Extension / build (push) Has been cancelled
Trigger Website Rebuild (Docs Updated) / dispatch (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:39:48 +08:00

2.1 KiB
Raw Permalink Blame History

schema_version, page_id, url_patterns, purpose, last_verified, source
schema_version page_id url_patterns purpose last_verified source
1.1 status
https://x.com/<handle>/status/<numeric-id>
https://x.com/i/status/<numeric-id>
single tweet detail with thread / replies 2026-06-02 global

Visual anchors

  • a11y: role=main + role=region name"Conversation"<handle>'s post
  • testid: 主 tweet [data-testid="tweet"]listing page 用 cellInnerDivdetail page 主 tweet 用 tweet);reply composer [data-testid="tweetTextarea_0"] + [data-testid="tweetButtonInline"]
  • pattern: 主 tweet 下方按 reply 时间排子 tweet,结构同 _tweet_card

Actions

### action:open_reply_composer_inline
pre: on /<handle>/status/<id>, detail loaded
do: click [data-testid="tweetTextarea_0"] || click [data-testid="reply"] button
post: textarea focused, submit button [data-testid="tweetButtonInline"] enables on input
fail: textarea not focusing | login modal
recover: keyboard shortcut `r`; mark composer stale if persistent
evidence: opencli browser click
### action:submit_reply
pre: reply composer has text, submit enabled
do: opencli twitter reply --status-url <url> --text "..." || click [data-testid="tweetButtonInline"]
post: textarea cleared + toast "Your post was sent"; new reply appended below detail
fail: button enabled but silent timeout (see pitfall:reply_silent_fails_on_rich_content) | login modal
recover: adapter_health_update: opencli twitter reply -> suspect; apply pitfall workaround (single-paragraph plain text, escape bullets); long reply -> workflows/post.md + quote
evidence: opencli twitter reply

Tweet card actions

主 tweet + 子 reply 都是 tweet card 形态,互动按钮见 pages/_tweet_card.md

Linked APIs

  • endpoint:UserByScreenName — <handle> → userId 解析(reply / 子 tweet author 用)

Page pitfalls

  • detail page 主 tweet testid (tweet) ≠ listing page (cellInnerDiv) — a11y role=article 通用更安全
  • 长 thread / quote detail 部分 mountscroll 触发加载
  • 删除的 tweet URL 仍可访问,detail 显示 "This post is unavailable" 占位