Skip to content

Fix mobile background agent banner - #1734

Merged
ymichael merged 3 commits into
mainfrom
bb/fix-1653-mobile-background-agent-banner-thr_5h72u49v7r
Aug 18, 2026
Merged

ymichael merged 3 commits into
mainfrom
bb/fix-1653-mobile-background-agent-banner-thr_5h72u49v7r

Conversation

@ymichael

@ymichael ymichael commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • carry the requested model from Claude Code's spawning Agent call into background-agent timeline rows, including completed and restarted task generations
  • show that model in the background-agent banner and its accessible name
  • summarize compact layouts as Running N background agents and make even a single agent expandable to reveal its full description and model
  • preserve the detailed, non-expandable single-agent row on wider screens
  • cover model projection and responsive banner semantics with focused regression tests

Root cause

The single-agent banner always used a non-expandable one-line truncate layout, so the label and task description collapsed to an ellipsis at mobile widths. Background-task events also do not include the requested model; although Claude Code includes it on the parent Agent tool call, the timeline projection discarded that metadata before building the banner row. Restarted Claude task generations may omit that parent link, and the original enrichment ran only inside the pending-task selector, so restarted and terminal rows could still lose the resolved model.

Validation

  • pnpm exec turbo run test --filter=@bb/thread-view --force (373 tests)
  • pnpm exec turbo run test --filter=@bb/server-contract --force (45 tests)
  • pnpm exec turbo run test --filter=@bb/app --force -- --run src/components/promptbox/banner/ThreadBackgroundCommandsCard.test.tsx
  • pnpm exec turbo run typecheck --filter=@bb/server-contract --filter=@bb/thread-view --filter=@bb/app --filter=@get-bb/plugin-sdk --filter=@bb/templates
  • node packages/plugin-sdk/scripts/check-npm-version-guard.mjs
  • live Claude Code Sonnet-to-Haiku background-agent QA through dev-browser at 412x915 and 1440x900

Closes #1653

AGENT GENERATED: by GPT-5.6

@ymichael
ymichael marked this pull request as ready for review August 17, 2026 22:33
@bb-slop-cop

bb-slop-cop Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · review

I am SlopCop. I am reviewing this pull request for security, code quality, performance, architecture, and mobile behavior.

@ymichael
ymichael marked this pull request as draft August 17, 2026 22:56

@bb-slop-cop bb-slop-cop Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 SLOP COP 🚨 · review

Plain-English summary: This patch gives compact mobile banners a count. Users can expand the banner to see each background agent, model, and duration.

I reviewed head 15b14600 first. The pull request moved to 5528f403 during this review, so I checked the updated head too.

The rebase fixed the merge conflicts. One blocking model defect and one related contract defect remain.

  1. A restarted Claude background agent can lose its requested model. Live QA used haiku, but the restarted active row returned model: null.
  2. Completed background-agent rows also keep model: null. Model enrichment occurs only inside the active, pending-task selector.

The projection should correlate the model once and preserve it across task generations. This also removes the current mutation from the active selector.

I found no security defect. I found no meaningful CPU or allocation regression.

I tested a 390×844 viewport through the real app. The app, project, thread, Agent task, and live timeline API worked.

All 370 thread-view tests passed. The focused app tests passed five tests. Contract, generated declaration, and relevant TypeScript checks passed.

The current CI run passes all completed checks. The macOS package smoke check remains active.

@ymichael
ymichael marked this pull request as ready for review August 17, 2026 23:17
@ymichael
ymichael force-pushed the bb/fix-1653-mobile-background-agent-banner-thr_5h72u49v7r branch from 5528f40 to 9fd6b0a Compare August 18, 2026 00:45
@ymichael
ymichael marked this pull request as draft August 18, 2026 00:46
@ymichael
ymichael marked this pull request as ready for review August 18, 2026 00:46
@ymichael
ymichael marked this pull request as draft August 18, 2026 00:51
@ymichael
ymichael marked this pull request as ready for review August 18, 2026 00:58
@ymichael
ymichael marked this pull request as draft August 18, 2026 01:06
@ymichael
ymichael marked this pull request as ready for review August 18, 2026 05:08
@ymichael
ymichael merged commit fe230cd into main Aug 18, 2026
10 checks passed
@ymichael
ymichael deleted the bb/fix-1653-mobile-background-agent-banner-thr_5h72u49v7r branch August 18, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Background agent banner is unreadable on mobile

1 participant