You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cb5f6ac
Browse filesBrowse the repository at this point in the historyBrowse files
fix(web): composer banners, menus and pickers act in their handlers
Dismissing a composer notice and switching threads within its 220ms exit
transition lost the dismissal: the stack is keyed by thread, so the unmount
cleared the pending timer and the notice came back. Most composer parts also
mirrored state through effects that their handlers or element refs could own.
- ComposerBannerStack: the dismissal timer is no longer cancelled on unmount;
focus moves in the expand/collapse handlers via flushSync; notice overflow
is observed from a ref callback.
- useComposerStash: the stash shortcut registers through the shortcut
dispatcher (capture phase) while the composer dock is mounted, reading
terminal and picker state when the key arrives; the badge pulse is a CSS
animation replayed per stash key instead of a 1.2s timer (absorbs the
ComposerStashBadge change and its keyframes in index.css).
- ComposerStashMenu, ComposerAttachmentStrip, ComposerCommandMenu,
DraftHeroProjectHeading, useRestingComposerControlsLayout: listeners,
scroll-into-view and measurement live in element ref callbacks.
- ProviderModelPicker / ModelPickerContent: the popup's initialFocus focuses
search, its ref callback holds the background scroll lock, picker shortcuts
run from onKeyDownCapture, and list fades re-measure on content resize.
- ComposerImageThumbnail suspends on the thumbnail promise.
- DraftHeroHeadline compares the draft session in the store instead of a
mirrored ref; composerContextUndo drops its clear-on-switch effect (the old
maps are unreachable).
Effects: 19 -> 0 across the touched files; ChatComposer unchanged at 26.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
0 commit comments