Skip to content

Article exported as a thread of images plus the author's replies #41

Closed

Description

@wolfgang-aura

Impact

"Create AI link" on an X Article can publish a capsule with no article text: the article's images, laid out as a thread of posts, followed by the author's own replies. Two owner-reported capsules (899e7abb…, b81752ef…, 2026-10-05) look like this.

When the Article path does run, it has two smaller defects:

  • The capsule title is the first h1 in the body (e.g. "Intro to Crypto") instead of the article title ("The Sunk Cost Cage").
  • The cover image is missing.

Cause

  1. On an Article status page, X can mount the article's tweet before the rich-text reader. At that instant detectPageType() returns post, so ensurePerPostControls puts a per-post control on the article tweet. Once the reader mounts, ensureArticleHeaderControl bails because a post control already exists in the column. Clicking it calls runExport('share', { targetTweetEl }), which forces type = 'post' and runs buildModelForPost with thread scope. That path reads tweetText only (articles have none), collects the article's images, and appends same-author replies as "Post n of N".
  2. X dropped the twitterArticleReadView wrapper. The current root is twitterArticleRichTextView, and twitter-article-title plus the cover tweetPhoto now sit outside it. buildModelForArticle searched for both only inside the root.

Environment

Brave, MV3 extension v1.6.4 (main 61cbb77), live X DOM on 2026-10-05.

Next action

Route any export whose target is the focused Article tweet to the Article model. Let the Article header control replace a post control on that tweet. Read the title and cover from the article tweet. Add jsdom regression tests with the current DOM shape.

Activity

  1. wolfgang-aura commented on Oct 5, 2026

    @wolfgang-aura
    OwnerAuthor

    Fixed in 276730f (PR #42, merged as 7726719), shipped as v1.6.5.

    Live-verified in Brave on https://x.com/Evan_ss6/status/1940886721723302015: one control in Article mode. Create AI link produced https://sourcecapsule-share.wolfgang-aura.workers.dev/c/4cd1c945604c4bcf20ca80dec4a052c9, titled "The Sunk Cost Cage", with the full body text, 11 images (cover first), no "Post n of N", and no author replies. Exporter v1.6.5.

    The posts that looked like missing embeds (Mippo, Evan_ss6 "decoupling") are screenshots pasted into the Article as images. The capsule has them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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