Registry Mirror
Skip to content

Conversation

@backnotprop

@backnotprop backnotprop commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

The CI failure

Since #1871, Inbox window e2e on main (run 38286151506, commit dc10c4e) fails here:

tests/e2e/inbox-attachments.spec.ts:534 › the reply box's chips wrap inside it beside a file, stacked and on a phone; no chip breaks its own label
Error: 390 by 844
+   "\"2 unanswered questions will be skippedKeep open\" overflows itself",

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 after setViewportSize, before the phone layout reached React (usePhone follows a matchMedia change 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

  • Chip (Thread.tsx SkipChip, 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.
  • Spec: at each size the check waits until the reply box stops moving (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 (::after on the chip's button) are unchanged, and inbox-mobile.spec.ts passes.

Proof

Before (this spec, main's CSS and Thread.tsx), on macOS and in the Linux container:

✘ 7 tests/e2e/inbox-attachments.spec.ts:554:5 › the reply box's chips wrap inside it ...
  Error: a 134 px reply box
  +   "\"2 unanswered questions will be skippedKeep open\" overflows itself",

After, each on a freshly compiled binary (build:review, build:hook, then compile with the release flags):

  • macOS: inbox-attachments + inbox-mobile 50 passed; inbox-attachments + inbox-mark-read + inbox-ended-session + inbox-replaced 30 passed.
  • Linux container (Playwright 1.63.0 noble, DejaVu installed as system sans): inbox-attachments + inbox-mobile 50 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) and 2.4h-reply-chips-narrow-box-*.png (134 px box).

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
backnotprop merged commit e0a2dfd into main Oct 12, 2026
29 checks passed
@backnotprop
backnotprop deleted the fix/inbox-skip-chip-linux branch October 12, 2026 19:02
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.
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