Skip to content

Replace stacked mobile prompt cards with a chip row - #2138

Merged
SawyerHood merged 1 commit into
mainfrom
bb/fix-stacked-mobile-banners-thr_xcdq9f56bv
Aug 21, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/fix-stacked-mobile-banners-thr_xcdq9f56bv

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

What was wrong

On the phone, every live item above the composer rendered as its own bordered card: one per running workflow, one for background commands, plus plan mode, the goal, and the to-dos. A thread with two workflows and two background commands stacked five cards and pushed the timeline off the screen. The timeline tail already lists the running workflows under "Working…", so the cards repeated that information.

What changed

  • apps/mobile/src/screens/thread/cards/ThreadPromptStackChips.tsx (renamed from ThreadPromptStackCards.tsx): each card becomes a pill. ThreadPromptChips renders one horizontal, scrollable row: workflows (one chip named after the single workflow, or "N workflows"), background tasks ("2 commands" / "1 agent" / "3 tasks"), Plan + Exit, Goal + Clear, To-dos. A tap opens a bottom Sheet with the detail the card showed expanded; the workflow sheet lists every running workflow with its phase strip and agent tree. Live chips pulse a dot. The row renders nothing when no chip applies so the stack gap stays closed. ThreadModelFallbackCard and the context-window ring are unchanged.
  • ThreadPromptArea.tsx uses the row in both the stack and the pending-interaction banner branch (plan + goal only, as before).
  • Dev showcase: the Interactions showcase gains a "Prompt chips" section on synthetic data (prompt-chip-fixtures.ts, buildPromptChipWorkFixtures in work-row-fixtures.ts).
  • e2e/flows/phase4b-interactions.yaml covers the row and the workflows sheet; apps/mobile/README.md describes the new row.

No wire or server changes.

How you verified

  • pnpm exec turbo run typecheck lint test --filter=@bb/mobile passes (830 tests).
  • Drove the dev client on an iPhone 16 Pro simulator through Metro + the mobile e2e backend with Maestro: the row renders with five chips, scrolls horizontally, and each sheet opens (workflows with the agent tree, background activity, to-dos, goal with token/time stats). The Plan × button fires its action. The new e2e block in phase4b-interactions.yaml passes on its own; the full flow needs the manually seeded THREAD_ID, as documented in its header.

AGENT GENERATED: by Claude Opus 5

Each running workflow, the background commands, plan mode, the goal and
the to-dos rendered as its own bordered card above the composer. With a
few of them live the cards pushed the timeline off a phone screen, and
the timeline tail already repeats the running workflows.

The prompt stack now renders one horizontal, scrollable row of pills
(workflows, background tasks, plan + Exit, goal + Clear, to-dos). A tap
opens a bottom sheet with the detail the card showed expanded; the
workflow sheet lists every running workflow with its phase strip and
agent tree. The Interactions dev showcase gains a "Prompt chips" section
on synthetic data and the phase4b-interactions Maestro flow covers it.

Co-Authored-By: Claude <[email protected]>
@SawyerHood
SawyerHood merged commit d93d43d into main Aug 21, 2026
13 checks passed
@SawyerHood
SawyerHood deleted the bb/fix-stacked-mobile-banners-thr_xcdq9f56bv branch August 21, 2026 04:23
SawyerHood added a commit that referenced this pull request Aug 21, 2026
…e onto current main

The full-stack dry run flagged apps/mobile/src/screens/dev/prompt-chip-fixtures.ts,
a dev-only fixture screen that #2138 added to main after the baseline was
taken. It is fixture data, the same category as .ladle and stories, not a
provider branch in core. Exclude the dev/ segment and regenerate the
baseline against current main: 209 references across 55 files.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
SawyerHood added a commit that referenced this pull request Aug 21, 2026
…e onto current main

The full-stack dry run flagged apps/mobile/src/screens/dev/prompt-chip-fixtures.ts,
a dev-only fixture screen that #2138 added to main after the baseline was
taken. It is fixture data, the same category as .ladle and stories, not a
provider branch in core. Exclude the dev/ segment and regenerate the
baseline against current main: 209 references across 55 files.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.

1 participant