Skip to content

feat(native): complete TR-MARKDOWN & TR-CITE parity - #367

Merged
rynfar merged 3 commits into
nativefrom
nw/244-tr-markdown-cite
Nov 14, 2026
Merged

rynfar merged 3 commits into
nativefrom
nw/244-tr-markdown-cite

Conversation

@rynfar

@rynfar rynfar commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Ref #244
Closes #92

Problem

TR-MARKDOWN and TR-CITE in apps/native/parity/LEDGER.md still had partial parity with Web (ChatMarkdown, Markdown/*, markdown-clipboard, AssistantSelectionToolbar, AssistantCitationChip, and assistantCitationNavigation):

  • Rich markdown extensions (GitHub alerts, <details>, TeX unicode math, SVG Mermaid diagrams, horizontally scrollable GFM tables with Markdown/CSV copy, code fence titles/language aliases/normalized copy, shell fence Run, file/thread link resolution, and nested view selections) were unported or partial.
  • Assistant selection citations needed coordinate-hinted duplicate-quote disambiguation, interactive sent citation chips/popovers, cross-environment scoped citation navigation, queued-edit citation support, and stale-quote user feedback.

Fix

  • TR-MARKDOWN (crates/core/src/markdown.rs, crates/core/src/markdown/, crates/core/src/client_settings.rs, crates/app/src/transcript/markdown.rs, crates/app/src/transcript/markdown/):
    • Added core parsers/renderers for GitHub alerts, <details>/<picture>/<code> file links, TeX math (mathRenderingEnabled setting defaulting to false), SVG Mermaid rendering (flowchart, sequence, state, pie, class/er, delimiter-aware & splitting, and UTF-8 char-boundary-safe strip_keyword_ci), tables, fence metadata, and clipboard normalization.
    • Wired custom GPUI TextView block extensions, interactive link routing (t3-thread://, t3-citation://, file:///workspace paths, external/PR links) respecting side-chat MarkdownActionContext (thread_id, cwd), Run shell block execution, and SelectableText + nested markdown selection bridging.
  • TR-CITE (crates/core/src/assistant_citations.rs, crates/core/src/composer/{menu,queue}.rs, crates/app/src/selectable_text.rs, crates/app/src/thread_view/citations.rs, crates/app/src/composer/citations.rs, crates/app/src/transcript/context.rs, crates/app/src/transcript/messages.rs, crates/app/src/app_state.rs):
    • Added SelectionHint duplicate-quote disambiguation, compact <details> text projection, to_plain_text stripping of t3-citation://v1/... links for queued previews and thread title seeds, present_user_citations chip extraction + inline link cleanup, interactive SentCitationPopover + Cmd/Ctrl+Click navigation, automatic cross-environment scoped citation opening, SelectableText active-selection fallback for math/Mermaid blocks, queued-edit citation controls, and stale-quote toast feedback.
  • parity/LEDGER.md: Marked TR-MARKDOWN and TR-CITE as done (#8, #244, #92 resolved) and updated Web paths to Markdown*.tsx.

Visual Evidence (--snapshot, 1440×900, mathRenderingEnabled: false default)

Dark theme

Dark theme TR-MARKDOWN and TR-CITE snapshot

Light theme

Light theme TR-MARKDOWN and TR-CITE snapshot

Verification

  • cargo clippy --manifest-path apps/native/Cargo.toml --workspace --all-targets -- -D warnings: passed (0 warnings/errors)
  • cargo test --manifest-path apps/native/Cargo.toml -p t3-core -p t3-client: t3-client 108/108 passed, t3-core 1360/1360 unit + 8/8 conformance passed
  • Targeted t3-native --features snapshot --test-threads=1 GPUI subsets (out of 201 total): transcript::markdown:: 7/7, thread_view::citations:: 2/2, transcript:: 33/33, thread_view:: 17/17, composer:: 7/7, selectable_text:: 8/8, app_state:: 5/5 passed
  • vp fmt --check apps/native/parity/LEDGER.md: passed
  • node --test apps/native/parity/sync.test.ts: 42/42 passed

Model: Gemini 2.5 / Antigravity

Port remaining Web markdown blocks/links/mermaid/math/table/fence metadata and assistant selection/sent-citation parity into apps/native, and mark TR-MARKDOWN and TR-CITE done in parity/LEDGER.md.

Model: Gemini 2.5 / Antigravity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant