fix(composer): refit on .composer-left resize, not just footer (Codex gate #4657)

Codex flagged that the fit ResizeObserver only watched .composer-footer, whose
outer width may not change when right-side controls (status/context chips)
appear — leaving the left control group's fit stale. Also observe .composer-left.

Co-authored-by: Paladin173 <Paladin173@users.noreply.github.com>
This commit is contained in:
nesquena-hermesandPaladin173 committed 2026-06-29 01:33:26 +00:00
1 parent d0be66f2d1
commit 6d770f1c05
1 file changed
+5
+5
View File
@@ -3312,6 +3312,11 @@ function _initComposerFooterFit(){
try{
_composerFitResizeObserver=new ResizeObserver(_scheduleComposerFit);
_composerFitResizeObserver.observe(footer);
// Also observe the left control group directly: the footer's outer width
// may not change when right-side controls (status/context chips) appear or
// resize, but that shrinks .composer-left's available room and must
// retrigger a refit. (Codex gate #4657.)
if(left && left!==footer){try{_composerFitResizeObserver.observe(left);}catch(_){ }}
}catch(_){ }
}
if(window.MutationObserver){