@@ -136,7 +136,6 @@ export function useLayoutResizeController({
136136 } , [ secondaryRailOpen ] ) ;
137137 const threadLayoutRef = useRef < HTMLDivElement | null > ( null ) ;
138138 const conversationRef = useRef < HTMLElement | null > ( null ) ;
139- const [ conversationWidth , setConversationWidth ] = useState ( 0 ) ;
140139 const [ threadLayoutWidth , setThreadLayoutWidth ] = useState ( 0 ) ;
141140 const threadLogsPanelWidthRef = useRef (
142141 DEFAULT_DESKTOP_SETTINGS . threadLogsPanelWidth ,
@@ -154,14 +153,9 @@ export function useLayoutResizeController({
154153
155154 const desktopStateReady = desktopState !== null ;
156155 useLayoutEffect ( ( ) => {
157- const conversation = conversationRef . current ;
158156 const threadLayout = threadLayoutRef . current ;
159157 const syncMeasuredWidths = ( ) => {
160- const nextConversationWidth = conversation ?. clientWidth || 0 ;
161158 const nextThreadLayoutWidth = threadLayout ?. clientWidth || 0 ;
162- setConversationWidth ( ( current ) =>
163- current === nextConversationWidth ? current : nextConversationWidth ,
164- ) ;
165159 setThreadLayoutWidth ( ( current ) =>
166160 current === nextThreadLayoutWidth ? current : nextThreadLayoutWidth ,
167161 ) ;
@@ -176,9 +170,6 @@ export function useLayoutResizeController({
176170 }
177171
178172 const observer = new ResizeObserver ( syncMeasuredWidths ) ;
179- if ( conversation ) {
180- observer . observe ( conversation ) ;
181- }
182173 if ( threadLayout ) {
183174 observer . observe ( threadLayout ) ;
184175 }
@@ -352,7 +343,6 @@ export function useLayoutResizeController({
352343 const measuredThreadLayoutWidth = currentThreadLayoutWidth ( ) || 0 ;
353344 const measuredConversationWidth = currentConversationWidth ( ) || 0 ;
354345 setThreadLayoutWidth ( measuredThreadLayoutWidth ) ;
355- setConversationWidth ( measuredConversationWidth ) ;
356346 const nextWidth = clampThreadLogsPanelWidth (
357347 threadLogsPanelWidthRef . current ,
358348 measuredThreadLayoutWidth ,
@@ -539,10 +529,6 @@ export function useLayoutResizeController({
539529 } ;
540530 } , [ sideToolsResizing ] ) ;
541531
542- const sideToolsDocked = isDockedSidePanel ( {
543- canvasWidth : conversationWidth ,
544- panelWidth : sideToolsPanelWidth ,
545- } ) ;
546532 const threadLogsDocked = isDockedSidePanel ( {
547533 canvasWidth : threadLayoutWidth ,
548534 panelWidth : threadLogsPanelWidth ,
@@ -562,7 +548,6 @@ export function useLayoutResizeController({
562548 sidebarCollapsed,
563549 sidebarResizing,
564550 sidebarWidth,
565- sideToolsDocked,
566551 sideToolsPanelWidth,
567552 sideToolsPanelWidthCustomizedRef,
568553 sideToolsPanelWidthRef,
0 commit comments