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
bug(web): clicking inside the crew roster gate expands the composer #189
Clicking anywhere inside the crew roster gate card (a seat's expander, the remove button, the seat name or persona picker, Approve or Decline) switches the composer from its resting layout to its expanded layout: wider insets, taller prompt area, the card re-flows. The card itself did not ask for that; it reads as an unintended UI state change. Seen on web (desktop viewport) in the Test Squad thread on a /crew proposal.
Two screenshots of the same card, before and after one click:
Why
CrewRosterGate is mounted inside the composer's root <form> (apps/web/src/components/chat/ChatComposer.tsx, the J5 mount beside SteerUnavailableNotice). That form's onFocusCapture sets isComposerFocused(true) for any focus event inside it, and the focused flag drives the resting-versus-expanded geometry. The handler exempts only two scopes, found with closest() in composerEventScope.ts: elements under [data-chat-composer-collapsed-controls="true"], and, when the controls are in the strip, elements under [data-chat-composer-resting-controls="true"], [data-chat-composer-resting-images="true"], or [data-composer-context-control]. The gate's root carries none of these, so its first focusable element expands the composer.
Fix, J5-owned either way
Preferred: mount the gate above the composer form rather than inside it. It is a planning-style question answered before the next message, not a composer control, and outside the form its focus is nobody's business. The mount line is already the fork's appended case, so moving it is the same one-line seam.
Alternative: keep the mount and give the gate's root one of the exempt markers so focus inside the card is ignored by the expand logic. Cheaper, but it borrows an attribute whose name means something else.
Implemented in #148 and carried through the stack. CrewRosterGate now sits above the composer form. In an isolated local app, focusing the seat name, instructions textarea, and custom-seat picker kept the composer collapsed. Leaving this issue open for maintainer review.
Activity
bryantderosier commentedon Sep 18, 2026
Implemented in #148 and carried through the stack. CrewRosterGate now sits above the composer form. In an isolated local app, focusing the seat name, instructions textarea, and custom-seat picker kept the composer collapsed. Leaving this issue open for maintainer review.