mirror of
https://github.com/nightly-labs/openbot.git
synced 2026-11-24 18:57:01 +08:00
* Move the tab shape with the frame layout on header changes The TabShape MutationObserver called place() in a microtask after each header change. Each call read the layout and forced a full page layout. A chat switch did this about 16 times. Now the callback asks the existing ResizeObserver for a new notification. The ResizeObserver runs after the frame layout and before paint, so the shape is still correct on the first painted frame and no forced layout occurs. Add the s16-switch-md bench scenario (20 chat switches with a markdown history) with a long-task counter for the switch phase, a reset for the renderer probes, and a bench agent model that does not change at start. * Place the tab shape at once for fit changes from a ResizeObserver The model picker fit (data-model-fit) and the thread row fit (data-mode, data-fold) change the header from ResizeObserver callbacks. A new observation of the row made in the same delivery is not deeper than the elements already reported, so Chromium skips it. Then the shape is one frame late and the window gets a "ResizeObserver loop" error. For these attributes, TabShape calls place() at once, as before. Other changes keep the re-observe path.