Repository navigation
Remove unused Tiptap code and restore workspace bundle budgets - #4907
Merged
Merged
Conversation
ymichael
force-pushed
the
bb/reduce-workspace-route-bundle-thr_pw3t4r3mvx
branch
from
October 5, 2026 17:25
a34117d to
5af159b
Compare
ymichael
force-pushed
the
bb/reduce-workspace-route-bundle-thr_pw3t4r3mvx
branch
from
October 5, 2026 17:45
5af159b to
e0fc2e1
Compare
ymichael
added a commit
that referenced
this pull request
Oct 5, 2026
## Human comments ## What was wrong Main's CI has been red since #4782 (e4fcbed). The SplitWorkspaceRoute static closure measures 1062.5 KiB against a 1062.4 KiB raw limit, about 100 bytes over. Brotli, boot, and split guards all pass. #4782 adds about 12 KiB to the closure because `VoiceInputButton` statically imports `MicrophonePreferences`. Its PR CI last ran on Oct 2, while the temporary 5% raise from #4906 was still in effect. #4907 then restored the lower limits on Oct 5, and the two merges collided. ## What changed Temporarily raise both SplitWorkspaceRoute byte limits by 5%, using the same values as #4906: raw 1,087,864 → 1,142,257 bytes and Brotli 317,278 → 333,142 bytes. The reason is recorded in `bundle-budget.json`. A follow-up will lazy-load the microphone preferences and ratchet the limits back down. Boot budgets and dependency/split guards are unchanged. ## How you verified CI on 95750b8 measured 1062.5 KiB raw / 308.6 KiB Brotli for the closure. Both numbers are well under the new limits. `bundle-budget.json` parses as JSON. > AGENT GENERATED 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
ymichael
added a commit
that referenced
this pull request
Oct 5, 2026
The content-position hold in the bottom-anchored scroll body and the windowed timeline's straddling-row scroll rule add about 1 KiB raw (0.2 KiB brotli) to the SplitWorkspaceRoute closure, which #4907 left at its limit. Raise only the raw limit by 1.5 KiB and record why. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The composer imported
@tiptap/extensionsand@tiptap/extension-listbarrels. Their top-levelExtension.create/Node.createcalls kept unused extension implementations in the shipped app, including character count, drop cursor, gap cursor, and task-list implementations. The placeholder compatibility export also reached the extensions barrel. This contributed to the workspace route exceeding its original raw budget by 2.4 KiB.What changed
Import the seven enabled list/editor extensions from their supported package subpaths. This removes unused implementations and the entire
prosemirror-dropcursorandprosemirror-gapcursorpackages from the app output while keeping the editor's enabled extensions unchanged.Restore both workspace budgets to their pre-#4906 values: 1,087,864 raw / 317,278 Brotli bytes. Add the removed ProseMirror packages to the boot and workspace forbidden-package guards.
Measured against merged main at
0e265cee96, using the same build pipeline and minifier:The totals include every
.jsfile under app dist, including worker/copied assets. Compressed totals use.brsizes, with raw sizes for sub-1 KiB files skipped by precompression. Both builds emit 553 JavaScript files and 51 workspace chunks. No code is moved behind a new import boundary, no feature is removed, and the minifier is unchanged. Boot's small compressed increase accompanies import-name/chunk-hash changes; aggregate raw and compressed output both shrink.The final diff touches only the editor imports and bundle-budget.json. There are no CLI, SDK, or daemon protocol changes.
How you verified
pnpm exec turbo run build --filter=@bb/appin an isolated baseline checkout at0e265cee96; counted every dist JavaScript file and its precompressed counterpart against the final build.pnpm exec turbo run build typecheck lint --filter=@bb/apppassed; lint reports existing warnings, no errors.pnpm exec turbo run test --filter=@bb/app -- src/components/promptbox/editor src/bundle-budget.test.tspassed 110 tests; 3 performance tests were skipped.git diff --checkpassed.This PR is intentionally left unmerged pending the user's go-ahead.
Rebased onto main to pick up the published-SDK version correction and stable blocking CI test order. The SDK npm version guard and production bundle checker pass; 143 focused app tests pass (3 skipped). The complete Linux app shard that previously failed also passes locally: 1,861 tests passed, 5 skipped. Preloading and execution timing are unchanged by this PR.
Final-head CI passed: 26 jobs passed, 1 skipped. https://github.com/get-bb/bb/actions/runs/37350850806