Repository navigation
feat(native): wire timeline, transcript, and composer THEME_CSS_HOOKS slots - #468
Merged
Merged
Conversation
This was referenced Nov 20, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #457 (Wave H4B Part 2).
Summary
Wires the 10 timeline, transcript, and composer
THEME_CSS_HOOKSslots inapps/nativeusing theThemeSlotengine landed in #467 (12f65f0f2f), with zero duplicate.hover(...)/.active(...)registrations and properly clipped behind-contenttheme_slot_background_layerrendering:apps/native/crates/app/src/thread_view.rs:ThemeSlot::MessagesTimelineScroll+theme_slot_background_layer(ThemeSlot::MessagesTimelineScroll, cx)onto the timeline scroll container (including loading and empty states)..theme_slot_timeline_row(kind, cx)(with all 17RowKindvariants mapped to web's exactdata-timeline-row-kindstrings:"message","work","work-live","work-toggle","thinking","working","viewed-images","turn-fold","attempt-fold","context-compaction","assistant-meta","event","proposed-plan","worktree-setup","html-render","sent-message","mcp-app").theme_revisioninTranscriptTypographyso live theme/CSS slot changes immediately remeasure virtualized timeline rows.apps/native/crates/app/src/transcript/messages.rs:ThemeSlot::UserMessageRowonto user message rows (standard, workflow, and attribution rows).ThemeSlot::UserMessageBubble+theme_slot_background_layer(ThemeSlot::UserMessageBubble, cx)onto user message bubbles and collapsible attribution header bubbles (preserving.relative().overflow_hidden()and syncing collapsed fade surface with solid overrides).ThemeSlot::AssistantMessageRowonto assistant message rows.apps/native/crates/app/src/transcript/markdown.rs&apps/native/crates/app/src/transcript/markdown/blocks.rs:ThemeSlot::ChatMarkdownonto assistant markdownprose(...)containers.ThemeSlot::ChatMarkdownCodeblockontoTextViewStyle::code_blockinmarkdown::style(cx)(making inner background transparent when a scopedvar(--theme-background-image)wallpaper is active) and pairs it withtheme_slot_background_layer(ThemeSlot::ChatMarkdownCodeblock, cx), matched corner radii,display: none, and hover/active refinements onrender_code_blockcards inblocks.rs.apps/native/crates/app/src/composer/view.rs:ThemeSlot::ChatComposerFormonto the outer composer form container.ThemeSlot::ComposerHost+theme_slot_background_layer(ThemeSlot::ComposerHost, cx)ontocomposer-card, suppressing the glass backdrop's opaque fill/outline when the slot explicitly overrides background/border so custom colors, gradients, borders, and scoped wallpapers show through cleanly.ThemeSlot::ComposerTiptaponto theEditorprompt container (with optional hover/background wrapper only when defined).Tests
thread_view::tests::timeline_row_kind_matches_web_data_attributesthread_view::tests::thread_view_renders_all_timeline_and_transcript_theme_css_slots_cleanly(--features snapshot)transcript::markdown::context_tests::markdown_prose_and_codeblock_apply_theme_css_slot_overrides_cleanlycomposer::view::tests::composer_renders_theme_css_slots_and_background_image_cleanlyTranscriptTypographyremeasure coverage fortheme_revisioninvalidation.Verification
All 10 verification gates passed (
vp fmt,gen-theme --check,conformance/generate --check,sync.test.ts47/47,cargo clippy --workspace --all-targets -- -D warnings,t3-core1,894+8,t3-client169+4 rerun ofmcp_apps::tests,t3-native235/235, targeted--features snapshotthread_view::/transcript::/composer::107+14=121/121, andcargo build -p t3-native).Built with Antigravity.