Repository navigation
Never strip HTML when saving Docs - #5443
Merged
brsbl merged 1 commit intoOct 14, 2026
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 35db91df48
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
This was referenced Oct 13, 2026
brsbl
force-pushed
the
bb/docs-raw-html-2-blocks
branch
from
October 13, 2026 19:01
6304f48 to
fac9bea
Compare
brsbl
force-pushed
the
bb/docs-raw-html-2-blocks
branch
from
October 13, 2026 19:31
fac9bea to
2c6d554
Compare
brsbl
force-pushed
the
bb/docs-raw-html-2-blocks
branch
from
October 14, 2026 16:47
2c6d554 to
9bc9cf2
Compare
brsbl
force-pushed
the
bb/docs-raw-html-2-blocks
branch
from
October 14, 2026 16:52
9bc9cf2 to
5842720
Compare
brsbl
force-pushed
the
bb/docs-raw-html-2-blocks
branch
from
October 14, 2026 17:45
136c4a3 to
e1f4569
Compare
Docs loaded Markdown into Tiptap, which discards HTML it has no schema rule for, then rewrote the whole file from that document on every save, so editing one sentence deleted unrelated HTML. Docs now saves blocks the user does not edit byte for byte and re-serializes only edited blocks. Inline tags Docs already renders keep rendering; other HTML, including tags the user types, stays as editable text saved unescaped, and HTML blocks are editable text saved exactly as typed. Co-authored-by: alanagoyal <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
brsbl
force-pushed
the
bb/docs-raw-html-2-blocks
branch
from
October 14, 2026 18:01
e61b497 to
9afbb91
Compare
brsbl
added a commit
that referenced
this pull request
Oct 15, 2026
…ar drawer (#5495) ## Human comments ## What was wrong In macOS desktop windows narrower than 768px, New thread in the sidebar drawer sits under the traffic lights, and the sidebar toggle draws on top of it (reported on Discord after desktop-v0.46.0). #5229 (`ff9484883`) moved the navigation rail into the compact drawer and dropped the macOS start inset from `SidebarTopReserveRow`. The drawer's header row now starts right after the rail, at x=52. That is under the lights (x=18–78), and the sidebar toggle, fixed at x=84–112, overlaps it. ## What changed - `SidebarTopReserveRow` (`apps/app/src/components/sidebar/SidebarChrome.tsx`) pads the drawer's header row so New thread starts at x=116, just after the sidebar toggle. That is where it sat in 0.45.0. - The padding applies only on macOS desktop, in the compact drawer (not the framed sidebar), and outside full screen, where there are no traffic lights. - Wide framed windows, browsers and other platforms are unchanged. No wire, CLI or contract changes. ## How you verified - New `SidebarChrome.test.tsx`: the compact macOS drawer reserves the space, while the framed window and a compact browser window don't. CI failed with only the test ([run 38601538235](https://github.com/get-bb/bb/actions/runs/38601538235), app-8: "expected false to be true") and passes with the fix. - Real Mac (macOS 26.5.2), using the Electron desktop dev app built from `main` (before) and from this branch (after), with the same seeded thread. The window was resized natively to 700×800 with the sidebar drawer open, and to 1100×800. - **700px:** New thread moves from x=52–287, under the lights and the toggle, to x=116–287. The hit test at its center returns New thread. - **1100px:** the framed layout is identical before and after. - The colored dots are stand-ins drawn at the traffic lights' native position (18, 18). The native buttons can't be captured without Screen Recording permission. - Not covered: a narrow window in native full screen, where the padding is off by design because there are no lights. - Remote CI runs the tests; nothing was run locally. - CI: every job passes except the plugin SDK npm version guard in Checks. Plugin Fork Check was skipped by change-based selection. The guard fails because `@get-bb/[email protected]` was published to npm at 15:11 UTC today, and building the SDK from `main` now produces a different `dist/provider-bridge-testing.js`. This PR doesn't touch the SDK. Every PR based on current `main` without a version bump fails the same way (for example #5490 and #5443), and #5492 passes because it bumps to 0.6.44. It clears once a bump lands on `main` and this PR's CI reruns. | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Thread · sidebar drawer open (zoom) | macOS desktop · 700×800 |  |  | | Thread · sidebar drawer open | macOS desktop · 700×800 |  |  | | Thread · framed sidebar (unchanged) | macOS desktop · 1100×800 |  |  | ### Merge order with "Compact the macOS app frame and move headers into the title bar" (#5529) Resolved: the PRs can merge in either order. #5495 used to pad the narrow-window drawer header with a literal `88px`, which assumed the sidebar toggle sits at the 84px reserve; with #5529's wider reserve New thread would have started under the toggle (measured at an earlier 88px reserve: New thread at x=112 under the toggle at x=88–116). #5495 now includes `5bd8c8b85`, which derives that padding from `--bb-macos-traffic-light-reserve` (falling back to 84px), so New thread starts 4px after the toggle under either geometry. Measured on a real Mac at 700px: | Build | Sidebar toggle | New thread | | --- | --- | --- | | #5495 head `5bd8c8b85` on main | x=84–112 | x=116 | | #5529 head `96084fc15` + #5495 | x=87–115 | x=119 | BB-Thread-ID: thr_eigbyjruhs 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- 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
Credit: @alanagoyal found and diagnosed this bug, wrote the first fix in #5306, and wrote the video regression test this PR keeps. Her commit is the base of this stack (#5442).
What was wrong
Docs loads Markdown into Tiptap, which discards HTML it has no schema rule for, then rewrites the whole file from that document on every save. Editing one sentence therefore deleted unrelated HTML, such as the video embed reported in #5306.
What changed
<strong>,<em>,<a href>, and<br>still render as formatting, as onmain.How you verified
136c4a34eexcept the plugin SDK npm version check.main's unbumpedprovider-bridge-testing.js, which this PR does not touch.584272025(Chrome for Testing 155) passed six steps with no console errors.<kbd>saved as HTML.Known limitations
BB-Thread-ID: thr_fashr87x6y
Screenshots
Docs editor after editing one paragraph and saving. Before is main; after is this PR.
🤖 Generated with Claude Code