The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
perf(desktop): note why the sticky-prompt clip property must stay registered
Aspect6b27ff58bc19
diff --git a/apps/desktop/src/components/assistant-ui/thread/use-sticky-prompt-clip.ts b/apps/desktop/src/components/assistant-ui/thread/use-sticky-prompt-clip.tsindex fdfb8a63014..2f7a192db13 100644--- a/apps/desktop/src/components/assistant-ui/thread/use-sticky-prompt-clip.ts+++ b/apps/desktop/src/components/assistant-ui/thread/use-sticky-prompt-clip.ts@@ -2,6 +2,10 @@ import { type ReactNode, type RefObject, useLayoutEffect, useRef } from 'react'const GROUP = '[data-slot="aui_message-group"]'const PROMPT = '[data-slot="aui_user-message-root"]'+// Registered as a non-inherited <length> in styles.css. That registration is+// load-bearing: this is written once per scroll frame onto elements that are+// whole turns, and an unregistered property forces Blink to restyle every+// descendant on each write. See the @property block there before changing it.const CLIP = '--sticky-prompt-clip'interface StickyPromptClipOptions {