Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): restore unified activity logs and composer banners #8734

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 8 commits intomain fromrefs/pull/8734/headmerged by juliusmarminge View on GitHub

Restores the activity log grouping and shared composer banners from #8693 after #8733, while deferring the composer-attached working timer.

Working for keeps main's placement in the conversation timeline, including the current task label, Thinking state, and turn lifecycle. Long task labels truncate to one line while the timer remains fully visible. The composer keeps the restored task controls, notice stacking, and shared Tailwind components. Task progress appears only in the composer; the duplicate timeline checklist is removed. Plan proposals remain in the timeline. Stash stays in its own tab beside notices and expanded task lists, including compact layouts; its footer variant is removed. Loading and syncing use the shared banner stack and hide task controls until the thread is up to date. Their spinner respects reduced-motion preferences.

Rebased onto current main, including interim response folding and the latest failed-tool icon fix. Orchestrator V2 and queueing are deferred until this main-targeted PR is merged.

All after screenshots below were recaptured from 35e6b6653e95. The timeline comparisons render the same scripted events through the actual timeline components from the PR base, 8b817cbcaad7, and the current PR. Each pair uses matching viewport dimensions. Completed-turn folds are open in both versions; the mixed activity group is shown both collapsed and expanded. The composer comparisons retain their earlier-iteration before images, labelled separately.

Mixed command, file-read, and status entries now get one useful summary. Main already summarized tool-only groups; the improvement here is that mixed groups use that presentation too.

PR base: last command and hidden log entriesCurrent PR: summary of the whole group
PR base: last command and hidden log entriesCurrent PR: summary of the whole group

Expanding that same group keeps the summary and shows compact detail rows, without separate Work Log headings.

PR base: expanded mixed logCurrent PR: expanded activity group
PR base: expanded mixed logCurrent PR: expanded activity group

Task updates no longer add Plan updated rows or a second checklist to the timeline. Commands stay in one group; task controls remain in the composer.

PR base: plan chatter and timeline checklistCurrent PR: one command group, no duplicate tasks
PR base: plan chatter and timeline checklistCurrent PR: one command group, no duplicate tasks

The earlier error screenshot incorrectly modeled a failed test as a runtime error. These two corrected scenarios use the server's actual event conversion and payload projection.

Failed command followed by a successful retry — unchanged. A test exits with code 1, the fixture is edited, and the test reruns successfully. All three tool calls stay in one group on both the PR base and this branch. A nonzero command exit code does not split the group, and no failure-count prefix is added.

PR base: failed test and retry in one groupCurrent PR: same grouping
PR base: failed test and retry in one groupCurrent PR: same grouping

Expanding the group and failed command reveals the failure output in both versions:

PR base: failed command detailsCurrent PR: same failure details
PR base: failed command detailsCurrent PR: same failure details

Provider crash at the end of a run. Two commands finish, then the provider exits unexpectedly and the turn ends. There are no commands continuing after the crash in this fixture. The base already shows the terminal runtime error; this PR gives the preceding commands their own summary and renders the error as a separate row.

PR base: terminal error with previous tool callsCurrent PR: command summary followed by runtime error
PR base: terminal error with previous tool callsCurrent PR: command summary followed by runtime error

The outer Worked for fold is open in every comparison. Collapsing that fold can still hide the error. The grouping boundary applies to error events, such as runtime failures, rather than ordinary failed tool results. This update corrects the evidence; it does not change production behavior.

The initial restore passed 242 focused web tests, web typecheck, and targeted lint. Checked the isolated fixture playground in the browser, including running/idle turns, task expansion, loading/syncing, notices, approvals, and stash. Stopping a turn removes the timer; deleting the last stashed prompt closes the stash. Preview fixtures remain local and are not part of the PR.

Earlier restore: attached timerCurrent PR: timeline timer, tasks only in composer
Timer attached to composerTimer retained in timeline

Long task labels checked at 1440px and 768px viewport widths. Targeted lint and web typecheck pass.

PR base: wrapping task labelCurrent PR: single-line task label
Long task wrapsLong task truncates

Loading and syncing now keep the combined banner behavior: the status stays attached, notices peek behind it, and task controls stay hidden until the thread is up to date. Stash keeps its separate tab. Verified loading and syncing with and without tasks, notice expansion, narrow layouts, and reduced motion. All 64 focused tests, web typecheck, and targeted lint passed.

Earlier iteration: separate status row, tasks visibleCurrent PR: combined banner, tasks hidden
Separate loading status and tasksCombined loading banner

Narrow layout · Spinner recording

The stash placement update passed 61 focused tests, web typecheck, and targeted lint. Browser checks covered notices, expanded tasks, notice stacks, loading, narrow questions, compact-composer expansion, restoring a prompt, deleting the last entry, and the empty composer. This changes the shared web/desktop composer; native clients are unchanged.

Earlier iteration: stash in footerCurrent PR: separate stash tab
Stash in composer footerStash beside the notice

With Stash closed, its tab stays beside the update notice:

Stash closed beside the update notice

Opening Stash shows the saved drafts in a drawer across the top of the composer, covering the notice underneath. Closing Stash reveals the notice again:

Stash expanded above the composer

Expanded tasks keep their own panel beside Stash:

Expanded tasks beside Stash

The task-list cleanup passed 218 focused tests, web typecheck, and targeted lint. Browser checks covered composer task expansion/collapse, command-group expansion, and completed turns. The working timer is unchanged. This uses the shared web/desktop timeline; native clients, providers, and wire contracts are unchanged.

Earlier restore: duplicate task checklistCurrent PR: tasks only in the composer
Tasks in the timeline and composerTasks only in the composer

The composer task list still expands beside Stash:

Composer task list expanded

Note

Restore unified activity logs and rebuild composer banner system

  • Removes turn-plan timeline rows and the MAX_VISIBLE_WORK_LOG_ENTRIES cap/overflow toggle, so work log entries are always shown in unified activity groups instead of being collapsed behind '+N previous …'
  • Introduces a new update action type in ToolGroupAction for non-tool entries, with standalone rows for agent spawns and error-toned entries that bypass grouping
  • Replaces ad-hoc composer layout with a new ComposerBanner, ComposerBannerStack, and ComposerSurface primitive system; tasks, stash, pending approvals, and server update notices all render through these shared components
  • Integrates tasks progress into the banner stack (no longer dismissible per-turn) and adds a ComposerServerUpdateStatus component with dismissal support for failed update states
  • Risk: ChatComposerProps replaces externalDrawerAttached with bannerItems and adds threadSyncPhase; ComposerStashBadge removes the placement prop; ComposerTasksBadge removes onDismiss and hasTrailingShoulder; deriveTurnPlans is deleted and deriveTimelineEntries no longer accepts turn plans — any out-of-tree callers of these APIs will break
Macroscope summarized cfb3851.

Note

Medium Risk Large, user-facing composer and timeline refactor with prop/API removals (externalDrawerAttached, task dismiss, turn plans); behavior changes for notices, sync, and work-log grouping are easy to miss in edge cases.

Overview Restores unified timeline activity grouping and rebuilds the chat composer around shared ComposerSurface / ComposerBanner primitives.

Work log rendering drops the per-group visibility cap and turn-plan timeline rows. Mixed runs collapse into one expandable summary (including non-tool updates), while agent spawns and error-toned entries stay standalone. deriveTimelineEntries no longer takes turn plans.

Composer notices, thread sync, task progress, stash, approvals, and command/stash drawers all attach through ComposerBannerStack with explicit priority (activity / urgent / notice) instead of manual urgent/calm splits in ChatView. Banners move from above the glass shell into ChatComposer via bannerItems; threadSyncPhase suppresses task UI until sync finishes and can show ComposerActivityRow in the stack. Task progress is derived from the current turn’s activePlan (not sidebar planProgress); per-turn task dismiss is removed. Stash is a shoulder tab only (no inline/footer variant). Server-update banners use ComposerServerUpdateStatus and can dismiss failed updates. shoulderTabReserve and the extra overlay mutation observer are removed—scroll clearance uses full composer height. BranchToolbar uses ComposerSurface.ContextStrip.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 35e6b6653e95394a92649923ebbd814d0420fb9d. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      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: f3a66e84-043e-4bc3-b47b-654eccf47321

      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

      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.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. github-actions[bot](GitHub profile, opens in a new tab)commented

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

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

      Baseline: 8b817cb · PR result: 35e6b66 · 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. UI consistency review found 2 issues in the new composer banner primitives. Details inline.

      Posted via Macroscope — UI Consistency
      @@ -206,16 +200,5 @@
      206- {/* The chevron points at the body: down while it is open below the
      207- header, up while it is collapsed into it. */}
      208- <ChevronDownIcon
      209- aria-hidden="true"
      210- className={cn(
      211- "ml-auto size-3.5 shrink-0 text-secondary-label transition-transform duration-150 group-hover:text-foreground",
      212- isCollapsed && "rotate-180",
      213- )}
      214- />
      215- </CollapsibleTrigger>
      216- </div>
      217- {/* The panel carries the horizontal padding itself: it clips its content
      218- while the height animates, so the option buttons have to sit inside
      219- that padding or their focus rings get shaved off at the edges. */}
      220- <CollapsiblePanel className="px-3 sm:px-4">
      221- <div className="pt-2 pb-0.5">
      200+ <ComposerBanner.ToggleIcon expanded={!isCollapsed} />
      201+ </ComposerBanner.Actions>
      202+ </CollapsibleTrigger>
      203+ <CollapsiblePanel>
      204+ <ComposerBanner.Body>
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      The removed CollapsiblePanel className="px-3 sm:px-4" carried a comment explaining that the panel clips its content while the height animates, so the option buttons have to sit inside that padding or their focus rings get shaved. ComposerBanner.Body only supplies padding-inline-start, so the w-full option buttons now touch the panel's inline-end and block-end edges and their focus-visible:ring-1 is clipped by overflow-hidden. Restoring end/bottom padding inside the clipped box keeps the ring visible.

      Suggested change
      204- <ComposerBanner.Body>
      204+ <ComposerBanner.Body className="pb-1 pe-1">
      Posted via Macroscope — UI Consistency
    5. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This XXL change replaces shared composer and timeline behavior across many production paths, including notice stacking, task and sync visibility, activity grouping, and layout measurement. Several unresolved findings also identify interaction, accessibility, loading-state, and test-coverage regressions that require focused human review.

      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).
    6. Verified fix(web): restore unified activity logs and composer banners at 39283f4 as CDVolvik.

      Restores #8693 after #8733 revert — git diff 33 files +1506/-2094 identical to original. Activity logs: MessagesTimeline working row removed, work entries grouped contiguously, ChatView active task progress tied to activePlan of current turn, ChatComposer exposes bannerItems/isWorking. Composer banners: ComposerSurface/Banner primitives, priority activity<urgent<notice, custom tasks content, accessible peek. Tests: MessagesTimeline.logic+session-logic+versionSkew+ChatView.logic 194/194, MessagesTimeline 37/37 pass. Note per PR: Compact/dismiss alignment and banner padding not fixed yet — author defers to Julius — hold merge until follow-up. Otherwise LGTM, no push.

    7. @@ -0,0 +74,21 @@
      74+ info: "border-info/24",
      75+ success: "border-success/24",
      76+ warning: "border-warning/24",
      77+};
      78+
      79+function Peek({
      80+ className,
      81+ variant = "default",
      82+ ...props
      83+}: ComponentProps<"button"> & { variant?: ComposerBannerVariant }) {
      84+ return (
      85+ <button
      86+ type="button"
      87+ data-slot="composer-banner-peek"
      88+ className={cn(
      89+ surfaceColors,
      90+ neutralOutline,
      91+ "absolute inset-x-0 bottom-0 z-0 mx-auto h-3 w-[96%] cursor-pointer rounded-t-2xl border border-b-0 shadow-[0_6px_18px_rgb(0_0_0/6%)]",
      92+ "bg-[color-mix(in_srgb,var(--chat-composer-attached-surface)_var(--glass-opacity),transparent)] backdrop-blur-(--glass-blur) backdrop-saturate-(--glass-saturation)",
      93+ "not-supports-[(backdrop-filter:blur(1px))_or_(-webkit-backdrop-filter:blur(1px))]:bg-(--chat-composer-attached-surface)",
      94+ "transition-opacity duration-150 ease-out focus-visible:outline-2 focus-visible:outline-ring",
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium chat/ComposerBanner.tsx:94

      When the notice stack is expanded, the Peek button remains pointer-interactive and keyboard-focusable despite receiving opacity-0, so keyboard users tab to an undiscoverable “Show other notices” control and pointer events can still reach it. Hide it from interaction as well—conditionally apply pointer-events-none and disabled (or omit it from the DOM) while the stack is expanded.

      🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
      In file @apps/web/src/components/chat/ComposerBanner.tsx around line 94:
      
      When the notice stack is expanded, the `Peek` button remains pointer-interactive and keyboard-focusable despite receiving `opacity-0`, so keyboard users tab to an undiscoverable “Show other notices” control and pointer events can still reach it. Hide it from interaction as well—conditionally apply `pointer-events-none` and `disabled` (or omit it from the DOM) while the stack is expanded.
      @@ -3550,7 +3585,18 @@
      3585+ activeTasksProgress &&
      3586+ activeTaskSteps ? (
      35503587 <ComposerTasksDrawer
      3551- onDismiss={dismissTasks}
      35523588 onCollapse={toggleTasksDrawer}
      3553- progress={visibleTasksProgress}
      3554- steps={visibleTaskSteps}
      3589+ progress={activeTasksProgress}
      3590+ steps={activeTaskSteps}
      3591+ activityStatus={activityStatus}
      35553592 />
      35563593 ) : null}
      3594+ {hasShoulderTab ? (
      3595+ <ComposerBanner.Dock>
      3596+ {standaloneActivityStatus ? (
      3597+ <ComposerBanner.Root width="content" data-composer-shoulder-tab>
      3598+ <ComposerActivityRow status={standaloneActivityStatus} />
      3599+ </ComposerBanner.Root>
      3600+ ) : null}
      3601+ {activeTasksProgress && activeTaskSteps ? (
      3602+ <ComposerTasksBadge

      🟡 Medium chat/ChatComposer.tsx:3602

      ComposerTasksBadge and ComposerTasksDrawer no longer expose the former “Dismiss tasks for this turn” action, so users can only collapse an active task list; completed or stale task indicators remain attached until the underlying task state disappears. Restore the per-turn dismissal state and pass a dismiss handler to both render paths.

      Also found in 2 other location(s)

      apps/web/src/components/chat/ComposerTasksBadge.tsx:112

      ComposerTasksBadge no longer accepts or renders an onDismiss action, so users have no way to invoke the previously available “Dismiss tasks for this turn” control. When a task progress banner remains visible, it can only be collapsed, not dismissed for the rest of that turn.

      apps/web/src/components/chat/ComposerTasksBadge.tsx:232

      ComposerTasksDrawer no longer accepts or renders the former onDismiss action, so an active task indicator cannot be dismissed for the current turn. The prior caller tracked the dismissed turn and passed dismissTasks to both the badge and drawer; the new component exposes only collapse, leaving users unable to hide task progress they explicitly dismissed.

      🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
      In file @apps/web/src/components/chat/ChatComposer.tsx around line 3602:
      
      `ComposerTasksBadge` and `ComposerTasksDrawer` no longer expose the former “Dismiss tasks for this turn” action, so users can only collapse an active task list; completed or stale task indicators remain attached until the underlying task state disappears. Restore the per-turn dismissal state and pass a dismiss handler to both render paths.
      
      Also found in 2 other location(s):
      - apps/web/src/components/chat/ComposerTasksBadge.tsx:112 -- `ComposerTasksBadge` no longer accepts or renders an `onDismiss` action, so users have no way to invoke the previously available “Dismiss tasks for this turn” control. When a task progress banner remains visible, it can only be collapsed, not dismissed for the rest of that turn.
      - apps/web/src/components/chat/ComposerTasksBadge.tsx:232 -- `ComposerTasksDrawer` no longer accepts or renders the former `onDismiss` action, so an active task indicator cannot be dismissed for the current turn. The prior caller tracked the dismissed turn and passed `dismissTasks` to both the badge and drawer; the new component exposes only collapse, leaving users unable to hide task progress they explicitly dismissed.
      
    8. UI consistency review of the restored composer banner/surface system. Three findings below; the two findings posted on the previous head (ComposerBanner.ToggleIcon inheriting the coarse-pointer hit-target pseudo-element, and ComposerBanner.Body losing the clipped panel's end/bottom padding) are still open on this head and are not repeated here.

      Posted via Macroscope — UI Consistency
      @@ -213,18 +245,3 @@
      213- className={cn(
      214- item.actionClassName,
      215- dismissOnly
      216- ? "max-sm:col-start-3 max-sm:row-start-1 max-sm:mt-0 max-sm:self-start"
      217- : undefined,
      218- )}
      219- >
      220- {item.actions}
      221- {item.onDismiss ? (
      222- <Button
      223- size="icon-xs"
      224- variant="ghost"
      225- aria-label={item.dismissLabel ?? "Dismiss warning"}
      226- disabled={exiting}
      227- onClick={onDismissRequest}
      228- >
      229- <XIcon className="size-3.5" />
      230- </Button>
      245+ <ComposerBanner.Row layout="wrap-actions">
      246+ <ComposerBanner.Icon>{item.icon}</ComposerBanner.Icon>
      247+ <ComposerBanner.Content className="font-medium">{item.title}</ComposerBanner.Content>
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Notices with a description now bind both the icon and the action/dismiss controls to the title Row, with the description rendered as a separate row underneath (ComposerBanner.Children). That reproduces the alignment regression this PR's description acknowledges as the reason #8693 was reverted: Compact / dismiss sit on the title line instead of being centered against the whole title + description block.

      The primitive it replaced did this in one row: Alert (controlAlignment: "center") lays out icon | title+description column | actions in a single items-center flex row, so the controls center against the full block and only opt into first-line alignment explicitly.

      Smallest fix: keep the description inside the same Row's ComposerBanner.Content (stacked, e.g. className="flex-col items-start gap-0.5" with the title span keeping font-medium) and reserve ComposerBanner.Children for item.children, so the row's items-center centers the icon and actions over both lines. The other half of the revert — banner edge padding, now p-1 on ComposerBanner.Root versus the old px-3 pt-2 sm:px-4 — belongs on Root rather than at each call site.

      Posted via Macroscope — UI Consistency
      @@ -0,0 +88,21 @@
      88+ className={cn(
      89+ surfaceColors,
      90+ neutralOutline,
      91+ "absolute inset-x-0 bottom-0 z-0 mx-auto h-3 w-[96%] cursor-pointer rounded-t-2xl border border-b-0 shadow-[0_6px_18px_rgb(0_0_0/6%)]",
      92+ "bg-[color-mix(in_srgb,var(--chat-composer-attached-surface)_var(--glass-opacity),transparent)] backdrop-blur-(--glass-blur) backdrop-saturate-(--glass-saturation)",
      93+ "not-supports-[(backdrop-filter:blur(1px))_or_(-webkit-backdrop-filter:blur(1px))]:bg-(--chat-composer-attached-surface)",
      94+ "transition-opacity duration-150 ease-out focus-visible:outline-2 focus-visible:outline-ring",
      95+ peekBorder[variant],
      96+ className,
      97+ )}
      98+ {...props}
      99+ />
      100+ );
      101+}
      102+
      103+function Attachment({ className, ...props }: ComponentProps<"div">) {
      104+ return (
      105+ <div
      106+ data-slot="composer-banner-attachment"
      107+ className={cn(
      108+ "mx-auto -mb-[calc(1rem+1px)] w-[calc(100%-2.75rem)] max-w-[45.25rem]",
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Attachment hardcodes the drawer inset (w-[calc(100%-2.75rem)], max-w-[45.25rem]), while this PR deletes the only declaration of --chat-composer-drawer-inset: 1.375rem from index.css. That variable still has an imperative consumer: ComposerCommandMenuLayer reads it with getComputedStyle(form ?? anchor).getPropertyValue("--chat-composer-drawer-inset") (ChatComposer.tsx:233) to compute the command menu's left and width. The read now always resolves to "" and silently takes the || 1.375 fallback, so the menu lines up only because 2.75rem happens to be twice that fallback, and the two owners will drift the next time this width changes.

      Suggest keeping one owner: declare [--chat-composer-drawer-inset:1.375rem] on an ancestor the composer form inherits from (ComposerSurface.Shell) and derive the widths here from it, e.g. w-[calc(100%-2*var(--chat-composer-drawer-inset))] max-w-[calc(48rem-2*var(--chat-composer-drawer-inset))].

      Posted via Macroscope — UI Consistency
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      This test was dropped when the working row left the timeline, but the follow-up commit restored WorkingTimelineRow/ThinkingActivityRow and the activeTurnStartedAt prop, and LiveActivityContent still emits gap-1.5 py-0.5 px-1 for the iconless variant — so the assertions still hold and the restored row is now unguarded, right as this PR reworks neighbouring row indentation (TurnPlanTimelineRow's chevron column and pl-6 → pl-8). Suggest restoring it as-is.

      Posted via Macroscope — UI Consistency
    9. Reviewed the composer banner/surface migration at fe1774e. One new finding below (list semantics lost in the tasks/stash list migration). The findings from my earlier reviews on this PR are still open and are not reposted here:

      • ComposerBannerStack.tsx — description notices bind icon/actions to the title row, so Compact/dismiss no longer center against the title + description block.
      • ComposerBanner.tsx Attachment — hardcoded inset while --chat-composer-drawer-inset is deleted from index.css, leaving ComposerCommandMenuLayer's getPropertyValue read resolving to "".
      • ComposerBanner.tsx ToggleIcon — decorative aria-hidden span inherits buttonVariants' pointer-coarse:after:min-h-11/min-w-11 hit overlay inside Row render={<button/>}.
      • ComposerPendingUserInputPanel.tsx — ComposerBanner.Body supplies only inline-start padding, so option-button focus rings are clipped by the animating CollapsiblePanel.
      • MessagesTimeline.test.tsx — the iconless Thinking/working-timer alignment test is still dropped while the row it covered is restored.
      Posted via Macroscope — UI Consistency
      @@ -257,0 +162,21 @@
      162+ <ComposerBanner.Icon
      163+ className={cn(
      164+ "font-mono text-[10px]",
      165+ step.status === "completed"
      166+ ? "text-success"
      167+ : step.status === "inProgress"
      168+ ? "text-primary"
      169+ : "text-muted-foreground/40",
      170+ )}
      171+ >
      172+ {step.status === "completed" ? "✓" : step.status === "inProgress" ? "●" : "○"}
      173+ </ComposerBanner.Icon>
      174+ <ComposerBanner.Content
      175+ className={cn(
      176+ step.status === "completed"
      177+ ? "text-muted-foreground/55"
      178+ : step.status === "inProgress"
      179+ ? "text-foreground/90"
      180+ : "text-muted-foreground/70",
      181+ )}
      182+ >
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      The task list loses its list semantics in this migration: the old drawer rendered role="list" + role="listitem" explicitly (the deleted ComposerTasksBadge.test.tsx asserted both), while this <ul> relies on implicit roles. Tailwind's preflight sets list-style: none on ul, which makes WebKit drop the list role — and with it the aria-label on this container, since a generic element's label is not announced. Suggest re-asserting the role on the container (the li children keep listitem once the list role is explicit). ComposerStashMenu.tsx:133 has the same shape (render={<ul />} with aria-label="Stashed prompts") and needs the same fix.

      Suggested change
      182- >
      182+ render={<ul role="list" />}
      Posted via Macroscope — UI Consistency
    10. Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

      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). Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c0d3d5341e0d4c33fe94f557864196dbe852a974. Configure [here](https://www.cursor.com/dashboard/bugbot).
    11. Reviewed the two new commits (c0d3d53 restoring the sync status, 4977016 moving the stash tab into the banner dock) plus the surrounding banner/surface migration.

      One new finding on the restored ThreadSyncStatusPill (inline). The findings from earlier runs on this PR still apply at 4977016 and are not repeated here:

      • ComposerBanner.ToggleIcon inherits buttonVariants' pointer-coarse:after:min-h-11/min-w-11 overlay on a decorative span.
      • ComposerBanner.Body supplies only padding-inline-start, so the pending-input option buttons' focus-visible ring is clipped by the collapsible panel's overflow-hidden (ComposerPendingUserInputPanel.tsx:203-262).
      • ComposerBannerStackAlert binds actions/dismiss to the title row while the description renders as a separate row, so controls are no longer centered against the title + description block.
      • The tasks list (ComposerBanner.Children render={<ul />}) relies on implicit list semantics, which Tailwind preflight's list-style: none drops in WebKit along with the container aria-label.
      • apps/web/src/components/chat/MessagesTimeline.test.tsx still drops the working/thinking row assertions even though WorkingTimelineRow was restored.
      Posted via Macroscope — UI Consistency
    12. @@ -4553,7 +4553,4 @@
      45534553 // partition (same shell, same capability gate, same PR auto-settle input)
      45544554 // so the banner and the sidebar row never disagree.
      45554555 const activeThreadShell = useThreadShell(isServerThread ? activeThreadRef : null);
      4556- const activeComposerTasksProgress =
      4557- activeLatestTurn !== null && !latestTurnSettled
      4558- ? (activeThreadShell?.planProgress ?? null)
      4559- : null;
      4556+ const activeComposerTasksProgress = useMemo(() => {
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium components/ChatView.tsx:4556

      activeComposerTasksProgress returns null while thread details are loading because it now derives entirely from activePlan, which reads threadActivities — but buildLoadingThreadFromShell forces activities: [] during the loading window. The previous code fell back to activeThreadShell?.planProgress, which is available on the shell even before full details arrive. This causes the task progress indicator and step controls to disappear during the thread-detail loading/sync phase and only reappear once the full detail payload lands.

      Consider falling back to activeThreadShell?.planProgress when activePlan is null and the thread is still loading, so the shell-level progress remains visible during that window.

      🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
      In file @apps/web/src/components/ChatView.tsx around line 4556:
      
      `activeComposerTasksProgress` returns `null` while thread details are loading because it now derives entirely from `activePlan`, which reads `threadActivities` — but `buildLoadingThreadFromShell` forces `activities: []` during the loading window. The previous code fell back to `activeThreadShell?.planProgress`, which is available on the shell even before full details arrive. This causes the task progress indicator and step controls to disappear during the thread-detail loading/sync phase and only reappear once the full detail payload lands.
      
      Consider falling back to `activeThreadShell?.planProgress` when `activePlan` is `null` and the thread is still loading, so the shell-level progress remains visible during that window.
    13. One new finding in this push's neighbourhood: the composer server-update notice lost the live/failure indicator that ServerUpdateProgress used to own, and now shows a static InfoIcon even in the error variant. Previously reported findings on the earlier commits (banner Attachment inset vs. the deleted --chat-composer-drawer-inset, ToggleIcon inheriting buttonVariants' coarse-pointer overlay, ComposerBanner.Body end/bottom padding, notice description/action alignment, ThreadSyncStatusPill bypassing the banner row grid, task-list role="list", and the dropped working-row alignment test) still apply and are not repeated here.

      Posted via Macroscope — UI Consistency
      @@ -2260,18 +2269,9 @@
      22602269 ) {
      22612270 const updateInProgress = serverUpdateState.status === "running";
      22622271 const updateFailed = serverUpdateState.status === "failed";
      22632272 items.push({
      22642273 id: `server-version:${serverUpdateEnvironmentId}`,
      22652274 variant: updateFailed ? "error" : "default",
      2266- // A running update is live progress the user is waiting on; only the
      2267- // idle "update available" offer is calm enough to stack behind.
      2268- urgent: updateInProgress,
      2269- // In-flight and failed states carry their own status dot inside
      2270- // ServerUpdateProgress; only the idle offer needs an icon.
      2271- icon:
      2272- updateInProgress || updateFailed ? null : (
      2273- <span
      2274- className="size-1.5 rounded-full border border-muted-foreground/40"
      2275- aria-hidden="true"
      2276- />
      2277- ),
      2275+ // Prioritize update progress over passive notices, but keep activity attached.
      2276+ priority: updateInProgress ? "urgent" : "notice",
      2277+ icon: <InfoIcon aria-hidden />,
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      This notice now uses a static InfoIcon for all three states, which drops the only live cue for a running update and puts an info icon on an error-variant banner. The removed code explained why: ServerUpdateProgress carried a pulsing dot while running and a destructive dot on failure, and only the idle offer needed an icon. ComposerServerUpdateStatus renders text only, so the pulse is gone and the failed row reads as informational next to the sibling notices that do pick situational icons (WifiOffIcon, AlarmClockIcon, GitBranchIcon) and a pulsing dot for live states.

      Suggest keeping InfoIcon for the idle offer and restoring the dots for the other two states (ComposerBanner.Dot exists for exactly this and currently has no consumer, if you prefer routing it through the primitive):

      Suggested change
      2277- icon: <InfoIcon aria-hidden />,
      2277+ icon: updateInProgress ? (
      2278+ <span
      2279+ className="size-1.5 animate-status-pulse rounded-full bg-foreground"
      2280+ aria-hidden="true"
      2281+ />
      2282+ ) : updateFailed ? (
      2283+ <span className="size-1.5 rounded-full bg-destructive" aria-hidden="true" />
      2284+ ) : (
      2285+ <InfoIcon aria-hidden />
      2286+ ),
      Posted via Macroscope — UI Consistency
    14. Reviewed the composer banner/surface migration again against the new commit (53c1702, "restore combined loading and syncing banners").

      The sync status now composes ComposerBanner.Row / Icon / Content (ComposerActivityStatus.tsx), which resolves the icon-column misalignment flagged on 4977016. One new finding below on the verification gate for the primitives this PR introduces.

      Findings raised on earlier commits that are still present at this head (not re-posted):

      • ComposerBanner.ToggleIcon inherits the full buttonVariants base, including the pointer-coarse 44x44 ::after hit box, inside rows that are themselves buttons.
      • ComposerBanner.Body supplies only padding-inline-start, so the pending-input option buttons' focus rings are clipped by the animating CollapsiblePanel.
      • The task list relies on implicit ul/li roles after Preflight's list-style: none, dropping the list role and its aria-label in WebKit.
      • Notice descriptions render as a second row, so actions/dismiss align to the title line instead of the whole block.
      • ComposerCommandMenuLayer still reads --chat-composer-drawer-inset, whose only declaration this PR deletes.
      • ChatView's server-update notice uses a static InfoIcon for running/failed/idle states.
      Posted via Macroscope — UI Consistency
      @@ -0,0 +129,21 @@
      129+}
      130+
      131+/** Attachments share a column while neighboring tabs keep their own surface. */
      132+function Column({ className, ...props }: ComponentProps<"div">) {
      133+ return (
      134+ <div
      135+ className={cn(
      136+ "flex min-w-0 flex-1 flex-col empty:hidden",
      137+ "[&>[data-slot=composer-banner-attachment]]:w-full [&>[data-slot=composer-banner-attachment]:last-child]:mb-0",
      138+ className,
      139+ )}
      140+ {...props}
      141+ />
      142+ );
      143+}
      144+
      145+function Root({
      146+ className,
      147+ placement = "attached",
      148+ variant = "default",
      149+ width = "fill",
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      ComposerBanner and ComposerSurface now own the behaviors that four deleted test files pinned — attachment seam and placement (attached vs floating), per-variant outline/tint, stack-cap severity, tab vs inline rendering, and the sync status row — while ComposerBannerStack.test.tsx, ComposerStashBadge.test.tsx, ComposerTasksBadge.test.tsx and ThreadSyncStatusPill.test.tsx are removed and assertions are trimmed from ComposerCommandMenu.test.tsx / ComposerStashMenu.test.tsx. Nothing in apps/web renders ComposerBanner or ComposerSurface in a test, so the migrated contracts are unpinned.

      This commit adds one more untested contract right here: width defaulting ("content" collapses to w-fit max-w-full flex-none and drops @container, so Row layout="wrap-actions" silently loses its container queries), plus the ChatComposer swap where threadSyncPhase suppresses activeTasksProgress/activeTaskSteps and takes the stack's attached slot.

      Suggest a focused renderToStaticMarkup test for ComposerBanner.Root/Row covering attached vs floating placement, each variant's outline/tint tokens, and both width values, so these behaviors stay pinned the way the replaced components were.

      Posted via Macroscope — UI Consistency
    15. UI consistency: one new finding on the latest push (combined loading/syncing banner). The earlier ThreadSyncStatusPill hand-rolled-row finding is resolved — ComposerActivityRow now composes Row/Icon/Content and shares the --composer-banner-icon-column grid. Findings from previous runs on this PR (server-update InfoIcon, banner description/action alignment, missing role="list" on the migrated task and stash lists, ToggleIcon inheriting buttonVariants' coarse-pointer overlay, ComposerBanner.Body dropping the clipped panel's end/bottom padding, the deleted --chat-composer-drawer-inset declaration still read by ComposerCommandMenuLayer, and the removed Thinking-row test) are still open and are not repeated here.

      Posted via Macroscope — UI Consistency
      @@ -0,0 +71,21 @@
      71+const peekBorder: Record<ComposerBannerVariant, string> = {
      72+ default: "border-(--chat-composer-attached-outline)",
      73+ error: "border-destructive/24",
      74+ info: "border-info/24",
      75+ success: "border-success/24",
      76+ warning: "border-warning/24",
      77+};
      78+
      79+function Peek({
      80+ className,
      81+ variant = "default",
      82+ ...props
      83+}: ComponentProps<"button"> & { variant?: ComposerBannerVariant }) {
      84+ return (
      85+ <button
      86+ type="button"
      87+ data-slot="composer-banner-peek"
      88+ className={cn(
      89+ surfaceColors,
      90+ neutralOutline,
      91+ "absolute inset-x-0 bottom-0 z-0 mx-auto h-3 w-[96%] cursor-pointer rounded-t-2xl border border-b-0 shadow-[0_6px_18px_rgb(0_0_0/6%)]",
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Peek is now the only pointer affordance for revealing the hidden notices, but its hit area is the 12px cap itself (h-3). ComposerBannerStack skips onPointerEnter when event.pointerType === "touch" and collapses the stack on onPointerDownCapture over the front banner, so on a coarse pointer this 12px strip is the only way to open the stack — before this PR any tap inside group/banner-stack revealed it through hover/focus-within. Elsewhere the system guarantees coarse pointers a 44px box (buttonVariants' pointer-coarse:after:min-h-11).

      Suggest growing the tappable box upward only, so it stays clear of the front banner's dismiss/actions directly below:

      Suggested change
      91- "absolute inset-x-0 bottom-0 z-0 mx-auto h-3 w-[96%] cursor-pointer rounded-t-2xl border border-b-0 shadow-[0_6px_18px_rgb(0_0_0/6%)]",
      91+ "absolute inset-x-0 bottom-0 z-0 mx-auto h-3 w-[96%] cursor-pointer rounded-t-2xl border border-b-0 shadow-[0_6px_18px_rgb(0_0_0/6%)]",
      92+ "pointer-coarse:before:absolute pointer-coarse:before:inset-x-0 pointer-coarse:before:bottom-0 pointer-coarse:before:h-8",
      Posted via Macroscope — UI Consistency
    16. juliusmarminge merged this30175a8

    17. juliusmarminge closed this

Sign in to join this conversation.