Skip to content
Source
Sign inSign up
pingdotgg/t3code

revert(web): restore previous composer banners #8733

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/8733/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

#8693 moved Compact and dismiss controls into the title row and reduced the banner edge padding. The controls no longer align with the full title and description block.

This fully reverts commit 3d32797f6f4614205debf8a61f09e950f5f9a81c and restores the previous composer banners and activity logs.

Tests not run, as requested.

Made with GPT-5.6 Sol in the Codex harness.


Note

Medium Risk Large composer and banner refactor affects scroll padding, notice stacking, and in-flight turn UX, but stays in presentation-layer React/CSS with added unit tests.

Overview Reworks the chat composer layout by removing the ComposerSurface / ComposerBanner layer and driving the glass shell, drawers, and shoulder tabs with shared CSS classes and simpler markup (BranchToolbar context strip included).

System notices move out of ChatComposer: ComposerBannerStack now sits above the composer in ChatView, built on the shared Alert UI with hover/focus stack expansion (variant-colored peek cap). Banner ordering is assembled in ChatView—urgent system items first, background liveness in the middle so Stop stays reachable, then calmer notices—using an urgent flag instead of in-stack priority sorting. Server-update banners use inline titles plus ServerUpdateProgress, and failed-update dismissal is folded into version-mismatch dismiss.

Activity shifts to the timeline and tabs: composer “working/sync” rows and ComposerActivityStatus are removed; an in-timeline working row gets workingStepLabel and activeTurnStartedAt. Thread sync uses ThreadSyncStatusPill beside the stack. Plan/task progress for the shoulder tab comes from activeThreadShell.planProgress, with per-turn dismiss on the tasks tab/drawer.

Scroll/layout fixes: shoulderTabReserve subtracts shoulder-tab height from composer overlay clearance (with a MutationObserver when tabs mount), and stash/tasks render as attached shoulder tabs with inline fallbacks when drawers or external banners occupy the top.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 6aa54984ba991afd3f0bdf3d339a6fcd4a8b5fed. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Replace ComposerBanner system with Alert-based stack and add WorkingTimelineRow to MessagesTimeline

  • Removes the ComposerBanner.* component family across composer UI; ComposerBannerStack now uses Alert/Button with hover/focus CSS expansion, and drawers (ComposerStashMenu, ComposerCommandMenu) render in plain div wrappers with glass-surface classes
  • Adds a working row variant to MessagesTimeline with a self-ticking WorkingTimer and optional ThinkingActivityRow; work-log overflow collapses after MAX_VISIBLE_WORK_LOG_ENTRIES = 1 visible entry behind a +N previous … toggle
  • Introduces per-turn task dismissal in ChatComposer via dismissedTasksTurnId, hiding task progress/steps for the active turn until the thread advances
  • Adds ThreadSyncStatusPill as an accessible status indicator for loading/syncing phases, and shoulderTabReserve to adjust composer overlay clearance for shoulder tabs
  • deriveWorkLogEntries now includes turn.plan.updated activities instead of filtering them out
  • Risk: ChatComposerProps removes bannerItems, isWorking, activeWorkStartedAt, and threadSyncPhase, replacing them with externalDrawerAttached; ComposerTasksBadge now requires onDismiss and hasTrailingShoulder props. versionSkew.ts removes isServerUpdateFailureDismissed and dismissServerUpdateFailure exports. ComposerPendingApprovalPanel renders a div instead of span, which may change wrapping behavior in surrounding markup.
📊 Macroscope summarized 6aa5498. 17 files reviewed, 3 issues evaluated, 0 issues filtered, 3 comments posted

🗂️ Filtered Issues

    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: bd359f5e-6743-45d7-84e9-e1bcae1f6ee6

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.3 KiB13.3 KiB+31 B (+0.2%)15.1 KiB✅
      CodexThread snapshot wire6.9 KiB6.9 KiB−3 B (−0.0%)7.3 KiB✅
      CodexLive turn WebSocket wire6.4 KiB6.4 KiB+34 B (+0.5%)7.8 KiB✅
      CodexLive turn WebSocket decoded55.6 KiB55.6 KiB+44 B (+0.1%)66.4 KiB✅
      CodexLive turn messages1011+1 (+10.0%)21✅
      ClaudeTotal thread wire13.3 KiB13.3 KiB−5 B (−0.0%)15.1 KiB✅
      ClaudeThread snapshot wire6.9 KiB6.9 KiB−1 B (−0.0%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.5 KiB6.4 KiB−4 B (−0.1%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded56.4 KiB56.4 KiB0 B (0.0%)66.4 KiB✅
      ClaudeLive turn messages11110 (0.0%)21✅

      Baseline: 1f8ed54 · PR result: 6aa5498 · Source CI: success

      Scenario 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.

    4. @@ -888,0 +916,21 @@
      916+ } else if (visibleGroupedEntries.length <= MAX_VISIBLE_WORK_LOG_ENTRIES) {
      917+ nextRows.push({
      918+ kind: "work",
      919+ id: timelineEntry.id,
      920+ createdAt: timelineEntry.createdAt,
      921+ groupedEntries: visibleGroupedEntries,
      922+ isExpandedToolGroupEntry: false,
      923+ isLastExpandedToolGroupEntry: false,
      924+ });
      925+ } else {
      926+ const groupId = workGroupId(timelineEntry.id, timelineEntry.entry);
      927+ const expanded = input.expandedWorkGroupIds?.has(groupId) ?? false;
      928+ // Agent-spawn CTA rows are always visible: a running fleet must
      929+ // never hide behind a "+N tool calls" toggle. Selection is by
      930+ // membership (spawn OR recent-tail), preserving the group's
      931+ // chronological order in both collapsed and expanded states
      932+ // (review finding: concatenating two filtered lists moved a
      933+ // mid-group spawn row above earlier tool rows).
      934+ const overflowCandidates = visibleGroupedEntries.filter(
      935+ (entry) => entry.agentSpawn === undefined,
      936+ );
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium chat/MessagesTimeline.logic.ts:934

      Error-toned entries can be placed in hiddenEntries and disappear behind the generic toggle, while hasFailure remains false when a later tool entry succeeds. This removes the visible and accessibility indication of the failed operation; exclude error entries from the overflow candidates so they are always rendered.

      Suggested change
      934- const overflowCandidates = visibleGroupedEntries.filter(
      935- (entry) => entry.agentSpawn === undefined,
      936- );
      934+ const overflowCandidates = visibleGroupedEntries.filter(
      935+ (entry) => entry.agentSpawn === undefined && entry.tone !== "error",
      936+ );
      🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
      In file @apps/web/src/components/chat/MessagesTimeline.logic.ts around lines 934-936:
      
      Error-toned entries can be placed in `hiddenEntries` and disappear behind the generic toggle, while `hasFailure` remains `false` when a later tool entry succeeds. This removes the visible and accessibility indication of the failed operation; exclude error entries from the overflow candidates so they are always rendered.
      @@ -75,8 +83,8 @@
      7583 if (entries.length === 0) return;
      7684 event.preventDefault();
      7785 event.stopPropagation();
      78- const currentIndex = entries.findIndex((entry) => entry.id === highlightedEntry?.id);
      86+ const currentIndex = entries.findIndex((entry) => entry.id === highlightedId);
      7987 const offset = event.key === "ArrowDown" ? 1 : -1;
      8088 const normalizedIndex = currentIndex >= 0 ? currentIndex : offset === 1 ? -1 : 0;
      8189 const nextIndex = (normalizedIndex + offset + entries.length) % entries.length;
      8290 setHighlightedId(entries[nextIndex]?.id ?? null);
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium chat/ComposerStashMenu.tsx:90

      Arrow-key navigation updates highlightedId without scrolling the selected CommandItem into view, so with a max-h-64 list the item that Enter will restore can move below the viewport and remain invisible. Restore the selected-row scrollIntoView behavior (or equivalent) when highlightedId changes.

      🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
      In file @apps/web/src/components/chat/ComposerStashMenu.tsx around line 90:
      
      Arrow-key navigation updates `highlightedId` without scrolling the selected `CommandItem` into view, so with a `max-h-64` list the item that `Enter` will restore can move below the viewport and remain invisible. Restore the selected-row `scrollIntoView` behavior (or equivalent) when `highlightedId` changes.
      @@ -189,17 +149,4 @@
      189- key={item.id}
      190- className={cn(
      191- "transition-[translate,opacity] duration-220 ease-in",
      192- exitingItemId === item.id
      193- ? "pointer-events-none translate-y-28 opacity-0"
      194- : "opacity-100",
      195- )}
      196- >
      197- <ComposerBannerStackAlert
      198- item={item}
      199- attached={false}
      200- exiting={exitingItemId === item.id}
      201- onDismissRequest={() => requestDismiss(item)}
      202- />
      203- </div>
      204- ))}
      205- </div>
      149+ <div className="min-h-0 overflow-hidden">
      150+ <div
      151+ className={cn(
      152+ "invisible pointer-events-none space-y-2 pb-2 opacity-0",
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟠 High chat/ComposerBannerStack.tsx:152

      On touch-only devices, stacked banners remain inaccessible: the expanded list is gated by group-hover/group-focus-within, while the collapsed cap has pointer-events-none and the banners are visibility: hidden. This prevents users from reaching actions such as the background-work Stop button when another banner is in front. Restore a touch-activatable expansion control or provide a non-hover path to reveal the stack.

      🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
      In file @apps/web/src/components/chat/ComposerBannerStack.tsx around line 152:
      
      On touch-only devices, stacked banners remain inaccessible: the expanded list is gated by `group-hover`/`group-focus-within`, while the collapsed cap has `pointer-events-none` and the banners are `visibility: hidden`. This prevents users from reaching actions such as the background-work `Stop` button when another banner is in front. Restore a touch-activatable expansion control or provide a non-hover path to reveal the stack.
    5. UI Consistency — 4 findings

      This revert restores the pre-primitive composer markup. Most of it is a faithful rollback, but a few keyboard/AT affordances that existed on main do not come back, and the shared attached-drawer contract is now duplicated across call sites.

      • ComposerBannerStack.tsx — stacked banners become hover-only; the group-focus-within path is unreachable because the region is visibility: hidden.
      • ComposerStashMenu.tsx — arrow navigation no longer scrolls the highlighted row into view or moves focus, and rows are no longer focusable/labelled controls.
      • ThreadSyncStatusPill.tsx (+ 4 other call sites) — the attached-drawer surface geometry is now copy-pasted rather than owned by one component.
      • ComposerPlanFollowUpBanner.tsx — commented-out JSX reintroduced.

      None of these block the rollback itself; they are the parts of the reverted behavior worth keeping or re-adding.

      Posted via Macroscope — UI Consistency
      @@ -193,13 +149,8 @@
      193- ? "pointer-events-none translate-y-28 opacity-0"
      194- : "opacity-100",
      195- )}
      196- >
      197- <ComposerBannerStackAlert
      198- item={item}
      199- attached={false}
      200- exiting={exitingItemId === item.id}
      201- onDismissRequest={() => requestDismiss(item)}
      202- />
      203- </div>
      204- ))}
      205- </div>
      149+ <div className="min-h-0 overflow-hidden">
      150+ <div
      151+ className={cn(
      152+ "invisible pointer-events-none space-y-2 pb-2 opacity-0",
      153+ "translate-y-1 transform-gpu transition-[opacity,transform] duration-150 ease-out will-change-[opacity,transform]",
      154+ "group-hover/banner-stack:visible group-hover/banner-stack:pointer-events-auto group-hover/banner-stack:translate-y-0 group-hover/banner-stack:opacity-100",
      155+ "group-focus-within/banner-stack:visible group-focus-within/banner-stack:pointer-events-auto group-focus-within/banner-stack:translate-y-0 group-focus-within/banner-stack:opacity-100",
      156+ )}
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Stacked banners are now reachable by hover only. The collapsed cap is aria-hidden + pointer-events-none, and this region stays invisible (visibility: hidden) until group-focus-within — but a visibility-hidden subtree is removed from the tab order, so focus can never enter and group-focus-within:* can never fire. Keyboard and coarse-pointer users lose access to every stacked banner and to its actions/dismiss buttons; the version being reverted exposed a real Peek button (aria-expanded / aria-controls, Escape to collapse) for exactly this.

      Smallest fix: keep a focusable trigger that toggles an explicit stackExpanded state and drive visibility from that state instead of group-hover/group-focus-within alone.

      Posted via Macroscope — UI Consistency
      @@ -6,13 +5,14 @@
      65 }: {
      76 planTitle: string | null;
      87 }) {
      98 return (
      10- <ComposerBanner.Row>
      11- <ComposerBanner.Icon />
      12- <ComposerBanner.Content>
      13- <span className="shrink-0 font-medium text-muted-foreground">Plan ready</span>
      9+ <div className="px-3 py-2 sm:px-4">
      10+ <div className="flex flex-wrap items-center gap-2">
      11+ <span className="text-xs font-medium text-muted-foreground">Plan ready</span>
      1412 {planTitle ? (
      15- <span className="min-w-0 flex-1 truncate text-foreground/85">{planTitle}</span>
      13+ <span className="min-w-0 flex-1 truncate text-xs text-foreground/85">{planTitle}</span>
      1614 ) : null}
      17- </ComposerBanner.Content>
      18- </ComposerBanner.Row>
      15+ </div>
      16+ {/* <div className="mt-2 text-xs text-muted-foreground">
      17+ Review the plan
      18+ </div> */}
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Commented-out JSX is reintroduced here; it has no owner and will silently rot.

             </div>
      -      {/* <div className="mt-2 text-xs text-muted-foreground">
      -        Review the plan
      -      </div> */}
           </div>
      Posted via Macroscope — UI Consistency
      @@ -0,0 +1,13 @@
      1+import { LoaderCircleIcon } from "lucide-react";
      2+
      3+import { threadSyncLabel, type ThreadSyncPhase } from "../../threadSync";
      4+
      5+export function ThreadSyncStatusPill({ phase }: { readonly phase: ThreadSyncPhase }) {
      6+ const label = threadSyncLabel(phase);
      7+
      8+ return (
      9+ <div
      10+ aria-label={label}
      11+ className="chat-composer-drawer-surface chat-composer-drawer-attached chat-composer-drawer-slot pointer-events-none flex items-center gap-2 px-3 pt-2 pb-[calc(var(--chat-composer-attachment-overlap)_+_0.375rem)] text-foreground text-xs font-medium sm:px-4"
      12+ data-thread-sync-drawer="true"
      13+ role="status"
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      The attached-drawer contract (chat-composer-drawer-surface chat-composer-drawer-attached chat-composer-drawer-slot plus the pb-[calc(var(--chat-composer-attachment-overlap)_+_0.375rem)] overlap padding) is now hand-copied here and in ComposerBannerStack, ComposerStashMenu, ComposerCommandMenu, and ChatComposer's top drawer, with the overlap padding spelled as an arbitrary calc() in two of them. That is durable shared geometry with five owners, which is what drifts first.

      If the rollback stands, a one-component wrapper for the surface classes (call sites keeping only layout/padding) would preserve the revert while keeping a single owner for the seam.

      Posted via Macroscope — UI Consistency
      @@ -75,8 +83,8 @@
      7583 if (entries.length === 0) return;
      7684 event.preventDefault();
      7785 event.stopPropagation();
      78- const currentIndex = entries.findIndex((entry) => entry.id === highlightedEntry?.id);
      86+ const currentIndex = entries.findIndex((entry) => entry.id === highlightedId);
      7987 const offset = event.key === "ArrowDown" ? 1 : -1;
      8088 const normalizedIndex = currentIndex >= 0 ? currentIndex : offset === 1 ? -1 : 0;
      8189 const nextIndex = (normalizedIndex + offset + entries.length) % entries.length;
      8290 setHighlightedId(entries[nextIndex]?.id ?? null);
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      ArrowUp/ArrowDown now only update highlightedId. The removed scrollIntoView({ block: "nearest" }) / focus() calls were what kept the highlighted entry inside the max-h-64 scroll region and moved real focus onto the row. Combined with rows rendering as non-focusable CommandItems (no per-row restore button, no accessible name, no aria-activedescendant), keyboard users can highlight entries that stay scrolled out of view and assistive tech is never told which entry is active.

      Smallest fix: scroll the highlighted row into view when it changes (e.g. drawerRef.current?.querySelector('[data-stash-entry="…"]')?.scrollIntoView({ block: "nearest" })) and keep the restore action as a focusable, labelled control per row.

      Posted via Macroscope — UI Consistency
    6. Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot).

      Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 6aa54984ba991afd3f0bdf3d339a6fcd4a8b5fed. Configure [here](https://www.cursor.com/dashboard/bugbot).
      @@ -193,13 +149,8 @@
      193- ? "pointer-events-none translate-y-28 opacity-0"
      194- : "opacity-100",
      195- )}
      196- >
      197- <ComposerBannerStackAlert
      198- item={item}
      199- attached={false}
      200- exiting={exitingItemId === item.id}
      201- onDismissRequest={() => requestDismiss(item)}
      202- />
      203- </div>
      204- ))}
      205- </div>
      149+ <div className="min-h-0 overflow-hidden">
      150+ <div
      151+ className={cn(
      152+ "invisible pointer-events-none space-y-2 pb-2 opacity-0",
      153+ "translate-y-1 transform-gpu transition-[opacity,transform] duration-150 ease-out will-change-[opacity,transform]",
      154+ "group-hover/banner-stack:visible group-hover/banner-stack:pointer-events-auto group-hover/banner-stack:translate-y-0 group-hover/banner-stack:opacity-100",
      155+ "group-focus-within/banner-stack:visible group-focus-within/banner-stack:pointer-events-auto group-focus-within/banner-stack:translate-y-0 group-focus-within/banner-stack:opacity-100",
      156+ )}

      Stacked banners unreachable on touch

      Medium Severity

      The restored stack only reveals hidden banners via group-hover and group-focus-within. The peek cap is pointer-events-none and aria-hidden, so there is no tap target. When the front item is urgent and has no actions (for example the reconnecting notice), touch users cannot reach banners behind it, including background-liveness Stop.

      Additional Locations (1)
      Fix in Cursor Fix in Web
      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 6aa54984ba991afd3f0bdf3d339a6fcd4a8b5fed. Configure [here](https://www.cursor.com/dashboard/bugbot).
      @@ -2293,10 +2291,8 @@
      22932291 label={updateFailed ? "Retry" : "Update"}
      22942292 />
      22952293 ),
      2296- ...(updateInProgress || (!updateFailed && !versionMismatchDismissKey)
      2294+ ...(updateInProgress || updateFailed || !versionMismatchDismissKey
      22972295 ? {}
      22982296 : {
      22992297 dismissLabel: "Dismiss update notice",
      23002298 onDismiss: () => {
      2301- if (updateFailed) {
      2302- dismissServerUpdateFailure(serverUpdateState);

      Failed update banner cannot dismiss

      Medium Severity

      A failed server update always shows in the stack, but dismiss is omitted whenever updateFailed is true, and Retry is omitted when versionMismatch is missing. That can leave a persistent error banner with no action until update state clears on its own.

      Fix in Cursor Fix in Web
      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 6aa54984ba991afd3f0bdf3d339a6fcd4a8b5fed. Configure [here](https://www.cursor.com/dashboard/bugbot).
    7. Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This is a large production composer and timeline refactor that changes default banner stacking, keyboard/touch access, update failure handling, and shared layout geometry. Unresolved accessibility and failure-state concerns remain in these normal user paths.

      Not approved because:

      • 3 blocking correctness issues found at or above your repo's Minimum Blocking Severity
      Adjust the Minimum Blocking Severity for this repo — including turning it Off — in [Settings](https://app.macroscope.com/pingdotgg/settings#Repos). You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).

Sign in to join this conversation.