Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): collapse the resting composer #7855

Mergedchrisdeeming(GitHub profile, opens in a new tab)merged 57 commits intomain fromrefs/pull/7855/headmerged by juliusmarminge View on GitHub

What Changed

  • Collapse existing-thread composers into a single-line resting state on blur or a meaningful timeline scroll, while keeping new-thread composers expanded.
  • Keep model and mode controls in the thread-context strip when they fit, hide empty context strips, and adapt to the composer container rather than the viewport.
  • Animate expansion and collapse without moving the visible timeline. Recent typing takes priority over momentum scrolling, and scrolling toward the end when already there does not immediately collapse the composer again.
  • Keep passive attachments from blocking rest. Wider layouts retain non-image context at its natural height; phone-sized layouts reveal it on expansion. Up to three images stay inline with a count for the rest, and failed uploads expand again for retry controls.

Why

The composer occupied more of an existing thread than it needed while idle. The resting layout returns that space without hiding useful context or disrupting reading position.

UI Changes

Before

Empty existing-thread composer

Expanded empty existing-thread composer

Parked draft

Expanded existing-thread composer with a parked draft

After

Empty resting composer

Resting empty existing-thread composer with retained controls

Parked draft

Resting existing-thread composer with a parked draft and retained controls

New thread remains expanded

New-thread composer remains expanded

Image attachments — before

Full composer with five image attachments

Image attachments — after

Resting composer with three image thumbnails and a +2 count badge

Video

Blur collapse, interaction expansion, and scroll collapse:

https://github.com/user-attachments/assets/78200b7b-f3d8-4a20-8166-26e4f0a54e59

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Built with GPT-5.6-Sol via Codex and Claude Fable 5 via Claude Code, in T3 Code.

Note

Add resting (collapsed) composer layout with scroll collapse and context-strip controls

  • Adds a resting layout for desktop existing-thread composers: single-line editor, compact xs controls portaled into the BranchToolbar context strip, and thumbnail previews with overflow action.
  • Adds scroll gesture handling in composerScrollGesture.ts that collapses the composer on eligible upward timeline scrolling and expands it on editor changes, visible selection, external text insertion, or reaching the timeline logical end.
  • Adds responsive resting control layout in composerFooterLayout.ts that hides trailing blocks one at a time, adds an overflow control, and reports visibility from measured width.
  • Updates MessagesTimeline.tsx to place the composer inset in the list footer for non-anchored rendering and disables end-maintenance for footer-layout changes.
  • Refactors floating-layer containment into shared composerEventScope.ts utilities so composer popovers, citation chips, and context-window popovers share one event scope.
  • Risk: ChatComposer draft snapshot keys in ChatComposer.tsx now use newline joining instead of embedded NUL separators; any out-of-tree callers relying on the old key format will break. shouldShowComposerContextStrip in BranchToolbar.logic.ts now requires a new restingControlsFit boolean argument, so existing callers must be updated.
Macroscope summarized ee31863.

Note

Medium Risk Large, stateful UI changes across composer focus, timeline scroll, and context-strip layout; regressions are likely in edge cases rather than in security or data handling.

Overview Adds a resting (collapsed) composer for existing server threads on desktop: a single-line prompt, compact primary actions, and up to three inline image thumbnails with a +N overflow affordance. New-thread and mobile flows stay expanded; banners, menus, attachments, and similar chrome still force the full layout.

Model/mode controls can portal into the BranchToolbar context strip when collapsed. shouldShowComposerContextStrip now also keeps the strip mounted (sometimes invisibly) when resting controls fit, and overflow measurement prefers inner resting-control width so Git labels compact before the picker is squeezed. Container-query breakpoints replace the old mobile-only run-context split.

Collapse/expand behavior ties to blur, outside pointer/focus handling, timeline wheel gestures (with scroll-intent tracking), and restoreAfterTimelineReachedEnd when the user scrolls back to the live edge or uses “Scroll to end.” Editor edits, visible selection changes, and clicks on resting padding expand again. A FLIP-style transition animates height while pinning the composer overlay during the tween.

Timeline/layout: composer bottom inset moves into the list footer when not anchor-framed, maintainScrollAtEnd ignores footer-layout shifts, and overlay height publishing is centralized. Shared composerEventScope marks composer-owned popovers so resting controls don’t steal focus or trigger expand/collapse incorrectly. ComposerControl gains an xs size used across toolbar and resting controls.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit ee31863852545d00ee86e254a62a5f68b7e4aee0. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Review Change Stack

      📝 Walkthrough

      Walkthrough

      The chat composer now supports a desktop resting state for existing threads. Timeline scrolling collapses the composer, while editing, focus, and control interaction expand it. Compact controls can render in the branch toolbar, with updated selection tracking, event handling, sizing, tests, and documentation.

      Changes

      Chat composer resting flow

      Layer / File(s)Summary
      Resting layout and control contracts
      apps/web/src/components/composerFooterLayout.ts, apps/web/src/components/chat/ComposerControl.tsx, apps/web/src/components/chat/composerEventScope.ts
      Adds resting-layout predicates, transition checks, compact control sizes, separators, and composer event-scope helpers.
      Compact control consumers
      apps/web/src/components/chat/CompactComposerControlsMenu.tsx, apps/web/src/components/chat/ProviderModelPicker.tsx, apps/web/src/components/chat/TraitsPicker.tsx, apps/web/src/components/chat/composerProviderState.tsx
      Threads compact sizing and trigger styling through provider, traits, and overflow controls.
      Editor selection and scroll gestures
      apps/web/src/components/ComposerPromptEditor.tsx, apps/web/src/components/composerSelection.ts, apps/web/src/components/chat/composerScrollGesture.ts
      Tracks visible selection changes and provides threshold-based scroll gesture state for composer collapse.
      Composer resting runtime
      apps/web/src/components/chat/ChatComposer.tsx, apps/web/src/components/chat/*test.ts
      Adds animated resting transitions, desktop scroll collapse, focus and pointer handling, compact footer rendering, portaled controls, and supporting tests.
      Toolbar integration and documentation
      apps/web/src/components/BranchToolbar*.tsx, apps/web/src/components/ChatView.tsx, docs/user/composer.md
      Registers the resting-controls host, connects the timeline node, adjusts toolbar sizing, and documents resting behavior.

      Estimated code review effort: 4 (Complex) | ~60 minutes

      Merge Risk: 🔵 Low · up to 4c9d5

      The PR introduces a compact resting state for existing-thread desktop composers, but the documentation currently describes resting behavior as possible while attachments remain present. This could mislead users about the composer layout; the change is otherwise mergeable with explicit follow-up to correct the documentation and tighten the test helper.

      Sequence Diagram(s)

      sequenceDiagram
        participant ChatView
        participant BranchToolbar
        participant ChatComposer
        participant Timeline
        participant ComposerPromptEditor
        participant ControlsHost
        ChatView->>BranchToolbar: register resting controls host
        ChatView->>ChatComposer: provide timeline scrollable node
        Timeline->>ChatComposer: report wheel input
        ChatComposer->>ChatComposer: collapse after eligible gesture threshold
        ChatComposer->>ControlsHost: portal compact controls
        ComposerPromptEditor->>ChatComposer: report edit or visible selection
        ChatComposer->>ChatComposer: expand composer

      Suggested reviewers: juliusmarminge, t3dotgg

      🚥 Pre-merge checks | ✅ 4 | ❌ 1

      ❌ Failed checks (1 warning)

      Check nameStatusExplanationResolution
      Docstring Coverage⚠️ WarningDocstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 29 functions across 22 files. (1 skipped: …Write docstrings for the functions missing them to satisfy the coverage threshold.
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Title check✅ PassedThe title clearly summarizes the primary change: collapsing the composer into a resting state on the web.
      Description check✅ PassedThe description includes the required What Changed, Why, UI Changes, and Checklist sections. It provides detailed behavior, rationale, before-and-after screenshots, an interaction video, and completed…
      Full details: Docstring Coverage

      Explanation

      Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 29 functions across 22 files. (1 skipped: 1 unsupported.)

      Full details: Description check

      Explanation

      The description includes the required What Changed, Why, UI Changes, and Checklist sections. It provides detailed behavior, rationale, before-and-after screenshots, an interaction video, and completed checklist items.

      • Fix all pre-merge checks with AI
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. Reviewed the resting-composer layout against the shared composer/editor contracts. Two concrete regressions in the changed behavior are noted inline: the resting footer overlay can overlap the prompt line, and the new desktop pointerdown reconciliation can collapse the composer while the caret is still inside it.

      Posted via Macroscope — UI Consistency
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      This capture-phase pointerdown clears isComposerFocused immediately, without confirming the composer actually lost focus. A pointerdown outside the form whose default focus transfer is prevented (the same onPointerDown={(event) => event.preventDefault()} pattern used elsewhere, e.g. BrowserDeviceToolbar, and Electron drag regions) leaves the caret inside the Lexical contenteditable while the state flips to unfocused — the composer then collapses to the resting max-h-8 ... overflow-hidden single line with the user still typing into it, and the footer controls disappear.

      Suggest deferring the pointerdown branch one frame and only clearing when document.activeElement is no longer inside the composer (the same containment check scheduleComposerCollapseCheck already performs), keeping the synchronous path for focusin where the new focus target is known.

      Posted via Macroscope — UI Consistency
    4. Fixed in 08755e49c. Outside pointerdown now uses the existing deferred active-element containment check, while focusin remains synchronous because its destination is known. Verified a prevented pointerdown keeps the editor focused/full-height, and an ordinary outside click still collapses normally.

    5. Sorry, I'm unable to act on this request because you do not have permissions within this repository.

    6. One finding on the resting layout: the reserved right gutter is padding, not a clip, so a long resting line can still paint under the absolutely positioned footer. The earlier inline-badge and pointerdown concerns look addressed (hasInlineAccessories, and pointerdown now defers to scheduleComposerCollapseCheck).

      Posted via Macroscope — UI Consistency
    7. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This PR changes the default existing-thread composer experience and coordinates focus, scrolling, animation, attachments, portals, and timeline layout across several production components. An unresolved comment also identifies a concrete task-badge interaction affecting scroll-collapse behavior, so human validation is appropriate.

      Not approved because:

      • Per-PR cost limit exceeded (workspace setting). Approvability relies on correctness review in order to determine eligibility
      Review your spending limits in [Billing settings](https://app.macroscope.com/pingdotgg/settings/billing), or comment `@macroscope-app review this PR` to bypass the limit and review now. You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    8. Reviewed the resting/scroll-collapse composer changes for UI consistency and interaction preservation. Two concrete issues in apps/web/src/components/chat/ChatComposer.tsx; the earlier clipping concern (prompt text painting under the resting send button) looks resolved now that pr-12 sits on the positioned wrapper rather than the editor, and hasInlineAccessories keeps the inline tasks/stash badges out of the resting overlay.

      Posted via Macroscope — UI Consistency
    9. UI consistency review of the latest commit (c806486, "keep resting composer controls inline"). Two issues where the resting layout can leave the composer with no visible provider/model, plan-build, or runtime controls, plus one shared-primitive default change that also affects the non-resting composer. Earlier findings on the scroll-collapse focus loss and the stale transition height look addressed.

      Posted via Macroscope — UI Consistency
    10. UI consistency review: two issues in the changed lines — an unintended spacing change in the expanded (non-resting) composer footer, and focus-ring clipping on the new resting-controls host. Previously reported findings (host gating, md/sm mismatch, ComposerControl geometry/chevron defaults, wheel-collapse focus, stale transition height) look resolved in 4ec84eb.

      Posted via Macroscope — UI Consistency
    11. Reviewed the resting-composer changes for shared-primitive consistency and treatment preservation. The two prior findings (block gap-1 in the expanded footer, host overflow clipping the focus ring) are addressed in 1b0fbc8. Two remaining items, both in changed lines.

      Posted via Macroscope — UI Consistency
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      chat/TraitsPicker.tsx:509

      This ternary replaces the fast-mode icon's fill treatment with a size utility, so at size="xs" the Zap loses fill-current (and opacity-80). Lucide ships fill="none", so in the resting row the same control renders as a hollow outline instead of the solid zap used in the expanded footer — the size override and the fill treatment are independent, so they should compose rather than exclude each other.

                "fill-current opacity-80",
                size === "xs" && "size-3!",

      No longer relevant as of c87067d2dd738dcf4ef0bfeb988bc046cf7c6f69

      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      chat/ComposerControl.tsx:76

      The xs chevron treatment is now spelled out as the literal string "size-3 text-current opacity-50" at four call sites (here, ProviderModelPicker.tsx:196, TraitsPicker.tsx:550 and :558), which is the durable geometry/treatment this primitive is supposed to own — a consumer that forgets it, or drifts by a step, silently desyncs the resting row. Note the shared ghost select already owns an equivalent chevron (ui/select.tsx:92: -me-1 size-3 opacity-50), so the duplicated string also drops its -me-1 and sits 4px differently from the env/branch selectors in the same strip.

      Consider giving the primitive the contract instead, e.g. ComposerControlChevron({ size, className }) where size === "xs" applies size-3 text-current opacity-50, and have ComposerControl/ComposerSelectControl/ProviderModelPicker/TraitsPicker forward their size — call sites keep only contextual overrides. The same applies to the repeated "font-normal text-muted-foreground/70 hover:text-foreground/80" trigger string (ChatComposer.tsx:525, :573, :1536, :2875): a named muted/resting treatment on the composer control primitive would keep the strip and the portaled controls in sync.

      No longer relevant as of c87067d2dd738dcf4ef0bfeb988bc046cf7c6f69

    12. Reviewed the resting-composer styling centralization against the shared composer control primitives. Two ownership findings on the newly centralized xs treatment; the previously flagged fast-mode fill and chevron duplication both look resolved.

      Posted via Macroscope — UI Consistency
    13. Reviewed the resting composer changes against the shared control system. Two geometry-scaling gaps remain in the new xs resting row; details inline.

      Posted via Macroscope — UI Consistency
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      chat/ProviderModelPicker.tsx:175

      At size="xs" the provider glyph halves to 12px, but the instance badge below keeps its expanded geometry (h-3 min-w-3, text-[7px], offset -0.125rem). A 12px badge offset 2px out of a 12px box covers almost the entire glyph, so in the resting row the provider icon effectively disappears whenever shouldShowInstanceBadge is true (any accent color, or two instances of one driver). The badge border also stays pinned to var(--contrast-input), which is the composer surface rather than the context strip the resting controls are portaled into.

      Scaling the badge with the icon keeps both readable, e.g.:

                     showBadge={showInstanceBadge}
      +              {...(props.size === "xs" ? { badgeContent: "none" as const } : {})}
                     badgeClassName={cn(
      -                "right-[-0.125rem] bottom-[-0.125rem] h-3 min-w-3",
      -                "px-0.5 text-[7px]",
      +                "right-[-0.125rem] bottom-[-0.125rem]",
      +                props.size === "xs" ? "h-1.5 min-w-1.5 px-0" : "h-3 min-w-3 px-0.5 text-[7px]",
                     )}

      No longer relevant as of abd8c56e3390ae4e7676d464464ded3d368658e1

    14. UI consistency review of the resting-composer work. The previously flagged items (overflow trigger sizing, resting badge geometry, host overflow, block gaps, chevron margin specificity) all look resolved at this head. Two remaining contract-hygiene notes below; neither is a functional regression.

      Posted via Macroscope — UI Consistency
    15. One finding on the resting provider trigger: the instance badge still eclipses the brand glyph at size="xs". Everything else from the previous rounds (overflow trigger scaling, chevron/icon geometry ownership, block gaps, host clipping, md gating, scroll-collapse focus handling) reads as resolved.

      Posted via Macroscope — UI Consistency
    16. Two findings on the resting composer's styling ownership. Everything flagged in earlier runs (host visibility gating, md/sm viewport mismatch, block wrapper gap-1, host overflow clipping, badge geometry, primitive size typing, stale height measurement, scroll-collapse focus trap) looks addressed in this revision.

      Posted via Macroscope — UI Consistency
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      components/BranchToolbar.tsx:479

      The resting row's icon tone is enforced from the strip as a blanket !important rule over every descendant svg, which takes color ownership away from icons that deliberately set it: the traits trigger's fast-mode Zap (TraitsPicker.tsx:514-517, text-[#d97757] / text-foreground) would lose its accent while resting, and the toolbar's own selector icons are captured too.

      Separately, the leading ! is v3 syntax; on Tailwind v4 only the trailing form (text-inherit!) compiles, so as written the override likely emits nothing and the portaled controls fall back to the ghost button's --control-icon-color instead of inheriting the strip's muted tone.

      Smallest fix is to let the resting control own this through the primitive's existing indirection — add [--control-icon-color:currentColor] to restingComposerControlClassName in chat/ComposerControl.tsx and drop this rule. buttonVariants' [&_svg:not([class*='text-'])] guard then leaves explicitly colored icons (Zap, chevron) alone, so the chevron exception here is no longer needed either.

      No longer relevant as of 2c4e27f684c07b6036d898b5a97f4fd40ab6995d

      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      !whitespace-nowrap is the Tailwind v3 (leading) important modifier. This app is on tailwindcss@4.x, where the modifier must be trailing — which is the form the rest of this diff uses (max-w-none!, h-3.5!, fill-muted-foreground/70!). As written no white-space utility is emitted, so the resting row keeps the editor's base whitespace-pre-wrap (ComposerPromptEditor.tsx:1759) and a long draft wraps and is clipped by max-h-8 instead of being clamped to one non-wrapping line — while the placeholder two lines below does get whitespace-nowrap. Worth confirming against the emitted CSS.

                            "max-h-8 min-h-8 overflow-hidden whitespace-nowrap! leading-8",
      Posted via Macroscope — UI Consistency
    17. Fixed in 2c4e27f68. Resting ComposerControl now owns --control-icon-color: currentColor, so uncoloured icons inherit the resting tone while explicitly coloured icons retain their accents; removed the broad strip-level SVG override.

    18. Fixed in 2c4e27f68. Switched the resting editor clamp to Tailwind v4 trailing-important syntax (whitespace-nowrap!).

    19. Sorry, I'm unable to act on this request because you do not have permissions within this repository.

    20. Sorry, I'm unable to act on this request because you do not have permissions within this repository.

    21. One finding: the resting-layout breakpoint is expressed twice — once in JS (useMediaQuery("max-md")) and once in CSS (md:flex on the portal host) — and the two conditions are not exact complements, so at fractional viewport widths the composer can rest while its portal target is still display: none. Details inline.

      Posted via Macroscope — UI Consistency
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      max-md resolves to (max-width: 767px), while the portal host that gates this feature is hidden ... md:flex (BranchToolbar.tsx:538) i.e. (min-width: 768px). Those are not complements: at a fractional viewport width in the 767–768px range (browser zoom, fractional DPI window sizing) both are false, so hasAvailableRestingControlsHost is true (the host element exists, only display: none) and the composer switches to the resting layout while the host paints nothing — the inline footer controls are hidden (line 4031) and the portal renders into a display: none box, so the model picker, plan/build toggle and runtime-mode select are neither visible nor reachable until the composer is focused. The measurement hook also bails on clientWidth === 0, so nothing self-corrects.

      Since the CSS owns the host's visibility with a min-width query, gating on the same min-width side keeps the JS condition an exact complement:

        const isNarrowRestingComposerViewport = !useMediaQuery("md");
      Posted via Macroscope — UI Consistency
    22. chrisdeeming(GitHub profile, opens in a new tab)commented

      Fixed in a1598e44f (included in current head d4a524876). The resting gate now negates useMediaQuery("md"), exactly matching the host’s md:flex min-width condition and avoiding the fractional-width gap.

    23. Sorry, I'm unable to act on this request because you do not have permissions within this repository.

    24. One finding on the resting-composer breakpoint gate. Everything else previously raised (chevron/icon geometry ownership, xs size contract, instance badge legibility, Tailwind v4 important-modifier form, expanded block spacing, host overflow/clipping) reads as resolved at this head.

      Posted via Macroscope — UI Consistency
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      This re-derives the portal host's md:flex gate in JS, but the two are expressed in different units, so they still are not exact complements. Tailwind's md compiles to @media (width >= 48rem), and rem inside a media query resolves against the browser's initial font size (the user's default font-size setting) — not the root font-size the app writes in appearanceFonts.ts. useMediaQuery("md") hard-codes (min-width: 768px).

      With a non-default browser font size (Chrome "Large" = 20px → 48rem = 960px) every viewport width in [768px, 960px) gives isNarrowRestingComposerViewport === false while BranchToolbar.tsx:538 keeps the host display: none. hasAvailableRestingControlsHost is then true, the composer rests, the inline footer controls get hidden, and the portal renders into a hidden element — the model picker, plan/build toggle and runtime-mode select are unreachable until the user clicks into the composer (the measurement hook also bails on clientWidth === 0, so nothing recovers).

      The hook passes raw queries through untouched, so matching Tailwind's unit keeps the gate exactly complementary at any font size:

        const isNarrowRestingComposerViewport = !useMediaQuery("(min-width: 48rem)");

      Alternatively, drop the duplicated breakpoint entirely and read the host's actual visibility (e.g. host.checkVisibility() / offsetParent !== null) in useRestingComposerControlsLayout, leaving the CSS md: on the host as the single owner.

      Posted via Macroscope — UI Consistency
    25. Fixed in c0ea174fd. The JS gate now uses the same literal (min-width: 48rem) query as Tailwind’s md:flex, so it remains complementary under non-default browser font sizing as well as fractional viewport widths.

    26. Sorry, I'm unable to act on this request because you do not have permissions within this repository.

    27. One finding in the resting-composer plumbing: the strip's overflow measurement now ignores the portal host, so the host can be laid out at ~0px while the composer has already committed to the resting layout and hidden its inline footer controls. Details inline.

      Posted via Macroscope — UI Consistency
    28. Reviewed the resting-composer work for shared-primitive, Tailwind-ownership and interaction consistency.

      The xs contract now lives in the primitives (ComposerControl / ComposerSelectControl forward size to buttonVariants / selectTriggerVariants, ComposerControlIcon / ComposerControlChevron own their geometry), the resting host is gated on a measured clientWidth instead of a JS re-statement of the md: media query, wide primary actions (showPlanFollowUpPrompt, isPreparingWorktree, inline task/stash badges) are all excluded from the resting state so the pr-12 overlay reservation holds, and the Tailwind v4 important suffix is used consistently. No styling-ownership regressions found.

      Two things worth confirming before merge — one behavioral, one file-level.

      Posted via Macroscope — UI Consistency
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      This marker is handed to LegendList (third-party virtualizer), but the new gesture treats it as the scrolling element: ChatComposer does event.target.closest('[data-chat-messages-timeline="true"]') and then reads scrollTop / scrollHeight / clientHeight off it. That only works if LegendList spreads unknown DOM props onto the element that actually scrolls — and TS won't tell you either way, since hyphenated JSX attributes are not type-checked on components.

      Everywhere else the codebase reaches that node through the ref instead (legendListRef.current?.getScrollableNode() in ChatView.tsx:4041, ModelPickerContent.tsx:511, BranchToolbarBranchSelector.tsx:566), and ChatView even documents that the node isn't available on the first frame. If the attribute is dropped, or lands on a wrapper rather than the scroller, canScrollInGestureDirection is always false and the entire scroll-to-rest gesture silently never fires; the LegendList mock in MessagesTimeline.test.tsx ignores extra props, so nothing covers it.

      Could you confirm in the DOM that the attribute ends up on the scrolling element, or resolve the node via getScrollableNode() (as the other call sites do) instead of a selector on the virtualizer?

      Posted via Macroscope — UI Consistency
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      File-integrity note rather than styling: tooling that scans this blob byte-for-byte reports a NUL (0x00) at ~offset 89755, which lands on the comment / useEffect lines a few rows above this one (≈1743-1745). The merge base has no such byte, and git's own binary heuristic only sniffs the first 8 KB — so diffs and CI stay quiet while grep-class tools stop searching the file mid-way (matches after ~line 1742 become invisible).

      Worth confirming with grep -c $'\0' apps/web/src/components/chat/ChatComposer.tsx and re-typing the affected line if it is there, so the file stays plain text for grep/blame/lint.

      Posted via Macroscope — UI Consistency
    29. Reviewed the resting-composer work against the shared control system and Tailwind/CSS ownership rules. The xs contract in ComposerControl now owns icon, chevron and control geometry (good — the earlier per-call-site size-3!/chevron duplication is gone), the portal host is gated by measured width instead of a re-derived media query, and inline accessories/attachments now keep the composer expanded. Three consistency items remain, all in changed lines.

      Posted via Macroscope — UI Consistency
    30. Confirmed and fixed in e529356e7. ChatComposer now receives a stable getter backed by legendListRef.current?.getScrollableNode(), verifies that the wheel target belongs to that actual node, and no longer relies on LegendList forwarding an unknown DOM prop. The marker has been removed.

Sign in to join this conversation.