fix(web): address composer banner review follow-ups #8850
main fromrefs/pull/8850/head·merged by juliusmarminge View on GitHubFollow-up fixes from the review of #8734. Monitoring could hide the loading status, keyboard focus could disappear inside a notice stack, and composer controls had a few focus and pointer issues.
Open the before/after comparison page for every change, including keyboard and pointer recordings.
- Keep loading and syncing visible ahead of Monitoring.
- Keep the notice peek visibly focused until activated. Enter or Space opens the stack, and Escape returns focus to the peek.
- Leave room for question-option focus rings.
- Preserve task and stash list semantics when list markers are hidden.
- Remove the decorative chevron's extra touch hit area.
- Show distinct progress and failure icons for server updates, respecting reduced motion.
- Share the drawer inset across banners, the command menu, and the context strip.
The notice-action alignment change and enlarged touch disclosure were reverted. Items 4 and 6 in the comparison document show the original layouts restored. The compact touch peek remains.
The working timer stays in the timeline, tasks stay in the composer, loading hides tasks, and stash remains a separate tab.
| Before: Monitoring hides loading | After: loading stays attached |
|---|---|
![]() | ![]() |
Validation: 110 focused tests, web typecheck, targeted lint, and 36 browser checks passed. Browser checks cover keyboard focus, hover, touch expansion, pointer hit testing, responsive widths, reduced motion, and inset sizing. Web and the shared desktop UI are affected; native mobile is unchanged. Safari and VoiceOver were not exercised.
Fixtures and comparison assets are not committed.
Note
Low Risk
UI, accessibility, and layout-only changes; the main behavioral caveat is drawer inset computing to 0 if --chat-composer-drawer-inset is missing outside ComposerSurface.Shell.
Overview Follow-up polish for composer banners and notices on web/desktop: loading/activity stays the attached front banner ahead of other notices (including Monitoring), and server update notices use status-specific icons (spinner, error, info) instead of a generic info icon.
Notice stack keyboard and pointer behavior is tightened in ComposerBannerStack: hover no longer auto-expands on touch; Tab/Enter/Space on Show other notices moves focus into the expanded stack; Escape collapses and returns focus to the peek control; peek is hidden from the tab order while expanded. ARIA role="group" / labels and role="list" on stash and task lists improve semantics.
Layout standardizes horizontal inset via --chat-composer-drawer-inset on the composer shell (banner width, context strip, clip-path, command-menu positioning); the command menu drops the 1.375rem JS fallback when the variable is unset. Minor UI fixes: decorative chevron pointer-events-none, padding on the pending-question panel body, and user docs for the notice stack interaction.
Note
Fix composer banner accessibility, focus management, and drawer inset CSS variable#
- Adds keyboard focus transfer (expand/collapse),
Escapeto close,aria-hidden/tabIndexmanagement, androle="group"toComposerBannerStack; hover no longer expands on touch pointers - Replaces static
InfoIconin the server update banner with a newComposerServerUpdateIconthat renders a spinner forrunning, alert forfailed, and info otherwise - Introduces
--chat-composer-drawer-inset(default1.375rem) onComposerSurface.Shelland uses it inComposerBanner.Attachmentwidth andComposerCommandMenuLayerpositioning instead of hardcoded values - Adds
role="list"to stash menu and tasks badge lists,pointer-events-nonetoComposerBanner.ToggleIcon, and movesactivityStackItemahead ofprops.bannerItemsin the stack - Behavioral Change:
ComposerCommandMenuLayerno longer falls back to1.375when the CSS variable is missing — callers relying on--chat-composer-drawer-insetmust define it or inherit theComposerSurface.Shelldefault
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Provider Metric Main baseline This PR Impact PR ceiling Codex Total thread wire 13.3 KiB 13.3 KiB −22 B (−0.2%) 15.1 KiB ✅ Codex Thread snapshot wire 6.9 KiB 6.9 KiB −4 B (−0.1%) 7.3 KiB ✅ Codex Live turn WebSocket wire 6.5 KiB 6.4 KiB −18 B (−0.3%) 7.8 KiB ✅ Codex Live turn WebSocket decoded 55.6 KiB 55.6 KiB 0 B (0.0%) 66.4 KiB ✅ Codex Live turn messages 11 11 0 (0.0%) 21 ✅ Claude Total thread wire 13.3 KiB 13.3 KiB −28 B (−0.2%) 15.1 KiB ✅ Claude Thread snapshot wire 6.9 KiB 6.9 KiB −9 B (−0.1%) 7.3 KiB ✅ Claude Live turn WebSocket wire 6.4 KiB 6.4 KiB −19 B (−0.3%) 7.8 KiB ✅ Claude Live turn WebSocket decoded 56.4 KiB 56.4 KiB −44 B (−0.1%) 66.4 KiB ✅ Claude Live turn messages 11 10 −1 (−9.1%) 21 ✅ Baseline:
30175a8· PR result:5e56011· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 109.4 KiB
- Claude decoded thread snapshot: 110.1 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
One finding in
Posted via Macroscope — UI ConsistencyComposerBannerStack: the Escape handler runs even when the stack is already collapsed, which leaves a stale pending-focus request that later steals focus. Details inline.apps/web/src/components/chat/ComposerBannerStack.tsx lines 168 to 168OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -148,3 +166,3 @@148166 }}149167 onKeyDown={(event) => {150168 if (event.key !== "Escape") return;chat/ComposerBannerStack.tsx:168This handler also fires when the stack is already collapsed (the peek is focusable and lives inside this container), and then
setStackExpanded(false)is a no-op, so the layout effect never runs andpendingFocusRefstays"peek". The next time the stack expands on hover and collapses again on pointer leave — which only collapses when focus is outside the container — the effect consumes that stale request and moves focus to the peek button, stealing it from wherever the user actually was (e.g. the composer textarea). The newly addedpreventDefault()/stopPropagation()also swallow Escape from outer handlers in that collapsed state.Gating the handler on
stackExpandedfixes both:Suggested change168- if (event.key !== "Escape") return;168+ if (event.key !== "Escape" || !stackExpanded) return;No longer relevant as of a00f27047cdf58e3d5d99a6768e291af879dd85c
Approvability#
Verdict: Not approved
Macroscope's review found this PR not approvable — This is a contained web composer UI and accessibility follow-up with no schema, security, billing, or deployment impact. An unresolved comment identifies a concrete keyboard-focus and Escape-event regression in the notice stack, so the changed interaction behavior needs human review.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XXL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
One finding: the production composer now routes its props through a committed dev-only review fixture. Details inline.
Posted via Macroscope — UI Consistencychat/ChatComposer.tsxThis wires a review-only fixture into the shipped composer.
ComposerPlayground.local.tsxis described in this PR's own report as an uncommitted local fixture, but it is committed here and imported unconditionally at line 1, so it lands in the production bundle and its hook runs on everyChatComposerrender. In dev it also silently overrides real props (bannerItems,threadSyncPhase,activeTasksProgress/activeTaskSteps,onSend/onInterrupt, approval, plan and pending-question state) for any thread whose id starts withbanner-playground-, and reassigning thepropsparameter hides that indirection from every reader of this component.Suggest dropping this line plus the line 1 import and removing
apps/web/src/components/chat/ComposerPlayground.local.tsx(andapps/web/public/composer-review-followups.local.html, which would be served publicly and embeds internal host URLs) from the branch, keeping the fixture local or behind a route/story that is not in the composer render path.No longer relevant as of 5e5601103ff281052faf985cbbd0330d8a9e495c
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
juliusmarminge merged this9842518
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
c2a675ff-c719-42ad-9b79-d8c17e552d6aYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Warning
Your free Security trial is over. An organization admin can activate Security or dismiss this notice.
Comment `@coderabbitai help` to get the list of available commands.