René's URL Explorer Experiment


Title: perf(site): keep mobile dropdown variables off the root on desktop by mafredri · Pull Request #29596 · coder/coder · GitHub

Open Graph Title: perf(site): keep mobile dropdown variables off the root on desktop by mafredri · Pull Request #29596 · coder/coder

X Title: perf(site): keep mobile dropdown variables off the root on desktop by mafredri · Pull Request #29596 · coder/coder

Description: Base: main. First of a stack; #31365, #31366, #31367 and #31572 follow. useChatDropdownPosition, which both chat composers use, sets five --mobile-dropdown-* properties on from an effect that re-reads the composer's position on focus, input, selection, scroll and resize, at every width. Only below-md utilities read them, and a changed custom property on the root restyles every element. Browsers skip a write of an equal value, so on main the root restyles each time a value changes, for example when the composer grows by a line. This PR runs the effect only below md, where dropdown positioning is unchanged. #31278 bench (a tool, not for merging) on production builds of f348cd66d7 (this PR's base on main then) and the pre-rebase version of af7b2c7b4a (this PR; later commits change only tests), one chat with 72k nodes at 1800 px, 3 alternating runs per side: keystroke that wraps the composer main this PR Chromium 467 to 649 ms 17 to 32 ms WebKit 3,381 to 3,892 ms 99 to 118 ms Other keystrokes and focusing the composer did not change beyond noise. Run details Each run types 560 characters after 340 prefilled ones, so the composer grows by a line 6 times in Chromium and 5 in WebKit. Each wrap cell gives min to max over the wrapping keystrokes of all 3 runs. p50, min to max main this PR Chromium, other keystrokes 23 to 24 ms 23 to 24 ms WebKit, other keystrokes 97 to 99 ms 97 to 98 ms Chromium focus, pointer 11 to 13 ms 11 to 15 ms WebKit focus, pointer 271 to 332 ms 303 to 324 ms 🤖 This PR was created with the help of Coder Agents, and will be reviewed by a human. 🏂🏻

Open Graph Description: Base: main. First of a stack; #31365, #31366, #31367 and #31572 follow. useChatDropdownPosition, which both chat composers use, sets five --mobile-dropdown-* properties on <html> from an effe...

X Description: Base: main. First of a stack; #31365, #31366, #31367 and #31572 follow. useChatDropdownPosition, which both chat composers use, sets five --mobile-dropdown-* properties on &lt;html&gt; from...

Opengraph URL: https://github.com/coder/coder/pull/29596

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d3c6de37-d6a4-9a4e-286f-bf205528c5c4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id88B0:19B6A2:852ED7:AFEF62:6B01AF3E
html-safe-nonce2c6192ea49c23500f349c44c79d4de4c17aa5d9bb7da0721c4295737b6d6d0a6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEIwOjE5QjZBMjo4NTJFRDc6QUZFRjYyOjZCMDFBRjNFIiwidmlzaXRvcl9pZCI6IjE2MjYwMTA1MDkwODQwNDUxMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac37432477a31520d6daa767c48cf7b38e1125a249b6bbaa87ab727200a403ee58
hovercard-subject-tagpull_request:4574287030
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/coder/pull/29596/files
twitter:imagehttps://avatars.githubusercontent.com/u/147409?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/147409?s=400&v=4
og:image:altBase: main. First of a stack; #31365, #31366, #31367 and #31572 follow. useChatDropdownPosition, which both chat composers use, sets five --mobile-dropdown-* properties on <html> from an effe...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/coder/pull/29596/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F29596%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F29596%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/29596/files
Reloadhttps://github.com/coder/coder/pull/29596/files
Reloadhttps://github.com/coder/coder/pull/29596/files
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/coder/tree/main
perf/chat-interactionhttps://github.com/coder/coder/tree/perf/chat-interaction
Conversation 67 https://github.com/coder/coder/pull/29596
Commits 6 https://github.com/coder/coder/pull/29596/commits
Checks 30 https://github.com/coder/coder/pull/29596/checks
Files changed 2 https://github.com/coder/coder/pull/29596/files
perf(site): keep mobile dropdown variables off the root on desktop https://github.com/coder/coder/pull/29596/files#top
Show all changes 6 commits https://github.com/coder/coder/pull/29596/files
98a4be3 perf(site): keep mobile dropdown variables off the root on desktop mafredri Oct 26, 2026 https://github.com/coder/coder/pull/29596/commits/98a4be3352b3916aaddd02468db8afda21462174
af03c9d test(site/src/pages/AgentsPage/components): name the below-md dropdow… mafredri Oct 27, 2026 https://github.com/coder/coder/pull/29596/commits/af03c9d49e84836ada1b1f017972e58854617d83
f30b6c6 test(site/src/pages/AgentsPage/components): assert the single rewrite… mafredri Oct 27, 2026 https://github.com/coder/coder/pull/29596/commits/f30b6c61dc4e0af73842ae25f8ce209edccc2242
af7b2c7 refactor(site/src/pages/AgentsPage/components): drop the equal-value … mafredri Oct 27, 2026 https://github.com/coder/coder/pull/29596/commits/af7b2c7b4adedbf9c32336acc68e1e0ec21355a8
c0dd108 test(site/src/pages/AgentsPage/components): stub any media query with… mafredri Oct 30, 2026 https://github.com/coder/coder/pull/29596/commits/c0dd10843f42323bbd826ff2573615cb772db437
841242b test(site/src/pages/AgentsPage/components): set the desktop width in … mafredri Oct 27, 2026 https://github.com/coder/coder/pull/29596/commits/841242b7953943d61c497290ef158d29510a57bc
Clear filters https://github.com/coder/coder/pull/29596/files
Please reload this pagehttps://github.com/coder/coder/pull/29596/files
Please reload this pagehttps://github.com/coder/coder/pull/29596/files
AgentChatInput.test.tsx https://github.com/coder/coder/pull/29596/files#diff-66bdeecd39bb5d05d22d1152ff6799a121a8ef75cd0728889dbadd00d3048499
useChatDropdownPosition.ts https://github.com/coder/coder/pull/29596/files#diff-07c78a1f70b232d059ea4eb18380db0644d96ae32177857c4ee886350f469f7d
https://github.com/coder/coder/blob/main/CODEOWNERS#L31
site/src/pages/AgentsPage/components/AgentChatInput.test.tsxhttps://github.com/coder/coder/pull/29596/files#diff-66bdeecd39bb5d05d22d1152ff6799a121a8ef75cd0728889dbadd00d3048499
View file https://github.com/coder/coder/blob/841242b7953943d61c497290ef158d29510a57bc/site/src/pages/AgentsPage/components/AgentChatInput.test.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/29596/{{ revealButtonHref }}
https://github.com/coder/coder/pull/29596/files#diff-66bdeecd39bb5d05d22d1152ff6799a121a8ef75cd0728889dbadd00d3048499
https://github.com/coder/coder/pull/29596/files#diff-66bdeecd39bb5d05d22d1152ff6799a121a8ef75cd0728889dbadd00d3048499
https://github.com/coder/coder/pull/29596/files#diff-66bdeecd39bb5d05d22d1152ff6799a121a8ef75cd0728889dbadd00d3048499
https://github.com/coder/coder/blob/main/CODEOWNERS#L31
site/src/pages/AgentsPage/hooks/useChatDropdownPosition.tshttps://github.com/coder/coder/pull/29596/files#diff-07c78a1f70b232d059ea4eb18380db0644d96ae32177857c4ee886350f469f7d
View file https://github.com/coder/coder/blob/841242b7953943d61c497290ef158d29510a57bc/site/src/pages/AgentsPage/hooks/useChatDropdownPosition.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/29596/{{ revealButtonHref }}
https://github.com/coder/coder/pull/29596/files#diff-07c78a1f70b232d059ea4eb18380db0644d96ae32177857c4ee886350f469f7d
https://github.com/coder/coder/pull/29596/files#diff-07c78a1f70b232d059ea4eb18380db0644d96ae32177857c4ee886350f469f7d
Please reload this pagehttps://github.com/coder/coder/pull/29596/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.