Conversation
On CI (main after #1871) the reply-chip check measured the frame right after the window is resized to 390 px, before the phone layout reaches React: the docked sidebar was still beside a 134 px reply box, and the skip chip's sentence plus Keep open could not shrink below their combined widest words, so Keep open drew outside the chip. The skip chip's icon and sentence are now one item and, in the reply box, the chip wraps: Keep open / Skip them moves under the sentence and the sentence wraps (a word wider than the box breaks), so it stays inside the chip at any width and with any font. The 1440 px two-pane row is unchanged (one row, 26 px chips). The spec now waits for the reply box to settle at each size, and adds a 134 px reply box step that fails before this change with the CI message and passes after.
backnotprop
added a commit
that referenced
this pull request
Oct 12, 2026
…at/inbox-open-stays-put Both behaviours hold: an archived row is held in place (markHeldRowArchived) while its thread is open and leaves at the settle; an agent message that brings a thread back from the archive waits behind "N new"; a thread the person brought back themselves (unseen 0: Unarchive, a link) settles in. Mark read's toast keeps its deferred wording for Quiet and Archived.
1 task
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.
The CI failure
Since #1871,
Inbox window e2eon main (run 38286151506, commit dc10c4e) fails here:I instrumented the check in a Linux container (
mcr.microsoft.com/playwright:v1.63.0-noble, the repo's Playwright). It failed once there with the same message. That run measured a reply box only 134 px wide (x 244 to 378) at a 390 px window. The docked sidebar (232 px) was still beside the thread, because the check ran in the frame right aftersetViewportSize, before the phone layout reached React (usePhonefollows amatchMediachange event). The skip chip's sentence and its Keep open button could not shrink below their combined widest words. The chip was capped at 116 px, so Keep open drew outside it (button at x 363 to 440, chip ends at 369). The runs that settled measured a 366 px box, and the chip fit. So the cause is timing plus a chip that cannot fit a narrow box. Fonts are not the cause: the Inbox bundles Inter, and installing DejaVu as the system sans did not change the result.The fix
Thread.tsxSkipChip,inbox.css): the icon and the sentence are now one item (.ib-skip-s). In the reply box the chip wraps: Keep open / Skip them moves under the sentence, and the sentence wraps (min-width: 0,overflow-wrap: break-word). The chip stays inside itself at any width and with any font's metrics. The button never breaks. On a settled phone the sentence is one line with Keep open under it. The foot's twin chip draws as before (same inline-flex icon, gap and text). The 1440 px two-pane row is unchanged: one row, every chip 26 px, as the spec asserts.replyBoxSettled), so it measures the layout that size settles on. A new step at 390 px fixes the reply box at 134 px (the CI frame) and requires the chips to stay inside it. That step fails deterministically without the CSS change, with exactly the CI message. The 44 px hit areas (::afteron the chip's button) are unchanged, andinbox-mobile.spec.tspasses.Proof
Before (this spec, main's CSS and Thread.tsx), on macOS and in the Linux container:
After, each on a freshly compiled binary (
build:review,build:hook, then compile with the release flags):inbox-attachments+inbox-mobile50 passed;inbox-attachments+inbox-mark-read+inbox-ended-session+inbox-replaced30 passed.inbox-attachments+inbox-mobile50 passed, three runs in a row.bun test packages/inbox: 0 fail.bun run typecheck: clean.Screenshots:
.local/proof/attachments/2.4e-reply-chips-phone-*.png(settled phone) and2.4h-reply-chips-narrow-box-*.png(134 px box).