Skip to content

feat(t3-composer): sync with upstream bb composer through 2d04779a1 (BBP-14) - #184

Merged
smsunarto merged 11 commits into
mainfrom
scott/sync-t3-composer
Nov 18, 2026
Merged

smsunarto merged 11 commits into
mainfrom
scott/sync-t3-composer

Conversation

@smsunarto

@smsunarto smsunarto commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

BBP-14: syncs the t3-composer fork with get-bb/bb plugins/composer through 2d04779a1.

Why: our recorded base (d4fa9cb) isn't on get-bb/bb's main. By content the fork matches 21d5db72c, and upstream has moved on since.

Ported, one commit each:

  • #6581: text typed right after a mention pill no longer runs into it.
  • #7002: an @ query of several words closes once nothing matches it.
  • #7061: the editor height cap follows the visible screen height (iOS keyboard). This includes the plugin's own app.css rule.
  • #7565: long slash-command hints no longer hide the command name.
  • #7480, composer part: clicking a built-in command runs it. The plugin's own /handoff is still excluded.
  • #7635: one shared resize observer, with the helper vendored from packages/shared-ui.

Held:

  • #7480's host-side /handoff: it isn't in bb 0.49, and the plugin keeps its own /handoff.
  • #7133's dependency bumps: bun audit flags none of this plugin's runtime dependencies at the versions our lockfile uses.

Already in the fork: #6941.
Not relevant: #7313, which only changes bb's own lint config.

Also:

  • The README and THIRD_PARTY_NOTICES record the new base.
  • The plugin's last 4 frozen lint errors are cleared with reasoned suppressions, so bare oxlint exits 0.

Checks:

  • Plugin vitest passes (301), plus typecheck, oxlint, oxfmt and bun test scripts/.
  • Browser-checked on a test bb 0.49 instance; running live.

Summary by cubic

Syncs the t3-composer fork with upstream BB's plugins/composer, porting five fixes and a shared resize observer, plus two local styling adjustments. Two upstream changes stay held: the host-side /handoff (needs a BB newer than 0.49) and dependency bumps (none of the plugin's runtime deps are flagged at resolved versions).

Changes

  • Pads text after a mention pill so it doesn't run into it.
  • Closes a multiword @ query once it settles with no matches; shortening it back reopens it only when something matches.
  • Caps the editor height to the visible shell height so the composer stays reachable with the iOS keyboard open.
  • Keeps slash-command names visible when a long argument hint would crowd them.
  • Sends a built-in command on mouse click, matching Enter; /handoff stays excluded.
  • Replaces per-component resize observers with one shared observer that runs all reads before writes.
  • Adjusts the empty editor's height (one line on touch screens, two on desktop) and insets the Project/Environment search field from the sheet's top.
  • Records the new sync base in the README and third-party notices and clears the last four frozen lint errors.

Written for commit d3f52d5. Summary will update on new commits.

View guided diff Turn on auto-fix

… the sheet's top

Monokai now draws bb's picker search row as a bordered field. T3 Composer's
older rule zeroed its top margin, so the field touched the sheet's edge. Inset
it 4px like the rows, size the field rather than the input so it no longer
overflows the border, and give phones a 44px field with 16px text.
The empty editor's minimum grows from one 20px line to two (48px). Touch
screens keep their one-line 32px minimum.
…to it

Port of get-bb/bb#6581 (38c939c85). Serialization adds a space between a
pill and an adjacent word or pill, so the agent sees /review Also, not
/reviewAlso.
…atches

Port of get-bb/bb#7002 (631a62619). Typing on after an unmatched @query
("@see you later") no longer keeps an empty menu over the prose. Shortening
the query back reopens it, shown again only once something matches.
typeahead.test.tsx covers it in the mounted composer, since upstream's
tests live in bb's app.
Port of get-bb/bb#7061 (9519ec685). On iOS dvh ignores the software
keyboard, so a long draft pushed the composer under the header. The caps
now read BB's --bb-shell-height (bb 0.49 defines it), including the
plugin's own !important thread-composer rule in app.css, which would
otherwise keep the old 50dvh cap.
…int is long

Port of get-bb/bb#7565 (dafe34edc). A long argument hint, such as Claude
Code's code-review, collapsed the command name and pushed the / menu
sideways on phones. Description, then hint, now give way before the name.
Uses gap-1, not upstream's gap-1.5, to stay on the plugin's 4px grid; the
Storybook story is skipped since Storybook was removed here.
Port of the composer part of get-bb/bb#7480 (1983b0dfb): a click on a
built-in command now sends it, as Enter already did. The plugin's own
/handoff stays excluded, so a draft before it is not sent with the
handoff. #7480's host-side /handoff is not in bb 0.49 and the plugin
keeps its own; its pill-delete cancel was already ported (a9aada1).
Port of get-bb/bb#7635 (2d04779a1). The composer's height tracker, editor
cap and typeahead max-height observe through one shared ResizeObserver
that runs every read before any write. lib/shared-resize-observer.ts is
vendored from packages/shared-ui with its tests, less the case for
useMeasuredValue, which this plugin does not have. bb 0.49's plugin
runtime exposes the full react-dom namespace, so its flushSync resolves.
The fork base d4fa9cb is not on get-bb/bb's main; its content matches
21d5db72c. The plugin is now synced through 2d04779a1. Also corrects the
stated BB and SDK requirement to match package.json.
Bare oxlint on the plugin now exits 0. Each is a reasoned suppression with
precedent elsewhere in the repo: attachment videos carry no captions, the
form delegates its children's keys and presses, the test fake mirrors
BB's role-based picker DOM, and an object URL is created and revoked as
one effect pair. Removes their lint-baseline entries.
@github-actions

Copy link
Copy Markdown
Contributor

React Doctor found 1 new issue in 1 file · 1 warning · score 60 / 100 (Needs work) · 0 fixed · vs main

1 warning

lib/shared-resize-observer.ts

  • ⚠️ L1 flushSync skips View Transitions no-flush-sync

Reviewed by React Doctor for commit d3f52d5. See inline comments for fixes.

@@ -0,0 +1,117 @@
import { flushSync } from "react-dom";

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.

React Doctor · react-doctor/no-flush-sync (warning)

flushSync forces an immediate update, which skips View Transitions and concurrent rendering.

Fix → flushSync forces an immediate update that skips View Transitions and concurrent rendering. Use startTransition for updates that are not urgent.

Docs

@smsunarto
smsunarto merged commit 3a4f6b1 into main Nov 18, 2026
6 checks passed
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