Repository navigation
feat(social): ::thread - #500
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-motion
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-social
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
There was a problem hiding this comment.
Important
The default comark-ui preset rewrites the fold in threads of seven or more posts, replacing the “Show N earlier posts” control with a generic “Details” label and emitting a warning for valid Markdown.
Approach: Reusing ::post parsing and rendering for thread rows is sound; the generated fold needs to stay distinct from authored ::details blocks.
Reviewed changes — I reviewed how written and fetched threads are parsed, rendered, and linted against the feat/social-post base.
- Thread rendering: Checked focal and regular rows, source links, quoted posts, folding, and the HTML, Vue, React, and Svelte renderers.
- Fetch: Traced the five-post parent walk, partial results on failure, and precedence for written rows.
- Integration: Checked the default preset, Vue lazy registration, editor metadata, and Doctor rules and examples. The focused social, UI, and Doctor suites passed; direct parse, render, and lint checks reproduced the findings inline.
gpt-6.2-sol(high) | 𝕏
Latest result Pull request merged. Final answersSession Pull request merged. Resolved all 19 merge conflicts and pushed 8c37dfb, preserving both social threads and main’s conversations. All 127 focused tests passed, and lint completed with warnings only. Bound platform inference remains unchanged per the maintainer’s decision. All review threads were already resolved; hosted checks are pending. Session this host is full Session Pass interrupted; current webhook state retained. Session Pass interrupted; current webhook state retained. |
491e89e to
a8552f4
Compare
There was a problem hiding this comment.
Important
The long-thread fold now works in the default preset. Two regressions remain in the new changes: bound post props do not supply the thread’s platform, and the new plugin order puts authored disclosures inside paragraphs.
Reviewed changes — I reviewed the changes since 491e89e.
- Inherited the platform from the thread URL or the first post that names a platform or URL, and tested the effect on row labels and links.
- Moved
comark-detailsbeforecomark-socialand verified that a seven-post thread keeps its native fold without reporting a diagnostic.
All 56 tests in the focused social and UI suites passed. Separate public parse/render checks reproduced both findings below.
gpt-6.2-sol(high) | 𝕏
a8552f4 to
43eda67
Compare
43eda67 to
a42fbc1
Compare
There was a problem hiding this comment.
✅ No new issues found in this delta. Earlier findings remain open.
Reviewed changes — I reviewed a8552f4 → 43eda67 and verified that the subsequent rebase to a42fbc1 did not change the social implementation or its tests.
- Applied the outbound request policy to threads. The reply walk and image inlining use the same policy, including redirect checks and the optional host transport for federated Mastodon.
- Reused post completion for fetched rows. Each row uses the response already fetched by the walk. A mocked Mastodon thread verified that it renders both rows and inlines the quoted avatar without a second status lookup.
- Updated quote handling, media limits, and diagnostics. The standalone quote diagnostics now point to the authored blocks. I also confirmed that the existing diagnostic issue after a thread is still reproducible.
All 64 focused social, linter, and preset tests passed.
gpt-6.2-sol(high) | 𝕏
…bers after a thread
There was a problem hiding this comment.
✅ No new P0 or P1 findings in this re-review.
Reviewed changes — I reviewed the follow-up commit a42fbc1 → 8811a01.
- Restored post links. The focal date links to its source, and rows with a URL but no date show a “View post” link.
- Kept quoted posts distinct from thread rows. Quotes no longer inherit the reply rail or the focal row’s text sizing.
- Preserved authored disclosures. A
:::detailsinside a post renders between paragraphs rather than inside one. - Corrected diagnostic locations. The linter now points to the standalone post’s own opener after a thread.
The workspace built successfully, and all 67 focused social, linter, and preset tests passed.
gpt-6.2-sol(high) | 𝕏
Keeps this PR's version over base changes: - packages/social/src/html.ts: The merged type export retains every base type and adds ThreadAttributes. - packages/social/src/index.ts: The plugin documentation now describes both conversation bubbles and thread rows, and the removal loop comment covers empty cards of either type. - packages/social/src/react.ts: The merged type export retains every base type and adds ThreadAttributes. - packages/social/src/svelte/index.d.ts: The component map preserves the base Post and Conversation signatures and adds Thread. - packages/social/src/vue.ts: The merged type export retains every base type and adds ThreadAttributes. Keeps the base version over this PR's changes: - packages/social/src/html.ts: The combined type export preserves ThreadAttributes while extending the base ConversationAttributes export. - packages/social/src/index.ts: The base walker extended for threads counts all authored posts and threads while only rendering top-level social cards, and the combined documentation retains the thread rendering and fetch behavior. - packages/social/src/react.ts: The combined type export preserves ThreadAttributes while extending the base ConversationAttributes export. - packages/social/src/svelte/index.d.ts: The declarations export Thread and ThreadAttributes alongside the new base Conversation component and its attributes. - packages/social/src/vue.ts: The combined type export preserves ThreadAttributes while extending the base ConversationAttributes export.
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes — I reviewed 8811a01 → 8c37dfb, focusing on how the merge with main combines ::thread and ::conversation.
- Combined social block traversal. Verified that nested blocks are counted for diagnostics without being rendered as standalone cards, and that a later issue still points to the correct opener.
- Preserved both features across renderers. Checked that HTML, Vue, React, and Svelte render both blocks in the same document and that the preset keeps the thread’s native fold.
- Merged the integration points. Checked Vue lazy registration, the preset tag list, editor metadata, and Doctor rules.
The workspace build and all 893 selected tests passed.
gpt-6.2-sol(high) | 𝕏

Adds
::threadto comark-social: posts that reply to each other drawn as one card, joined by a rail, with the last post as the focal one. It builds on::postfrom #496.Plan: https://drop.vitehub.dev/d/wtn1zg3tajmt/social-poll-drop-plan
What changed
::threadholds:::postblocks and draws them in order as rows of one card, with a rail running from each avatar to the next.focal=false.<details>that reads "Show N earlier posts".fetch: true, a::thread{url}with no posts inside walks up from that post through its parents to the root, five posts at most, focal included.Threadcomponent. A post in a thread is markeddata-thread, plusdata-focalordata-rail, and only the thread carriesdata-comark-frame.thread-content: a block in a thread that isn't a post. It's left out.empty-thread: a thread with nothing to show. It renders nothing.details,summary),vue-lazy, andinfoinclude the thread. The docs page, the skill reference, andSKILL.mdcover it.Decisions
url, the focal post's too. The focal post's date reads in full, such as "November 20, 2026 at 9:33 AM", as X shows it. A row with aurland notimeshows a "View post" link in its place, so every post keeps its link without a logo per row.::postnumbers in issues, as comark-linter counts everypost, so an issue on a post after a thread points at the right line.:::detailsinside a post stays a block beside its paragraphs, now that comark-details reads it first.chip="false"andreferences="false"when comark-chips or comark-github's references run, so its handles stay as the platform shows them.url, the written posts show and nothing is walked.urlorplatformtakes the thread's, from the thread'surlor the first post that names one, so a thread of written posts needs the platform once. I didn't add aplatformprop to::thread: writing it on the first post does the same.detailsnode it sees into its own disclosure, so in comark-ui's preset it now runs before social, as it already did before tests and bundle, which drawdetailstoo. The docs say to register comark-social after comark-details.[open], with no script.How it was checked
vp test runforpackages/social: rows, rail, and focal;focal=false; folding at 8 posts; posts taking the thread's platform; stray and empty content; per-post issue names; a Mastodon walk capped at 5; a failed parent; written posts not fetched. Also HTML, Vue, React, and Svelte giving the same markup.ui(a thread's handles stay as written, and an 8-post thread folds into "Show 6 earlier posts" with comark-details on),tags,info, andbrowser-pluginstests, and the rootdoctorandworkspacetests.pnpm typecheck, Vite Doctor with the strict preset pluslint:docs,vp fmt, andvp lint.🤖 Generated with Claude Code