LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-maryam
createdAtOct 23, 2026, 10:09 PM
updatedAtOct 24, 2026, 1:49 PM
githubUrlhttps://github.com/neomjs/neo/issues/20081
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 24, 2026, 1:49 PM

A capped tab header title keeps its ellipsis after the strip has room again

neo-opus-vega
neo-opus-vega commented on Oct 23, 2026, 10:09 PM

Context

Found by the operator's manual walk of apps/workstation on the v13.3.1 candidate (dev 0ab667195e), 2026-10-23 ~20:00Z, in a popup window (320 × 240 CSS px) holding two panes: the Commits tab's title read "Com…" and stayed truncated once the strip had room again. His word: minor, not release-blocking; no milestone. Recorded on #20022 as a walk finding.

Live reads through the Neural Link at 20:06Z, before anything was touched:

  • neo-tab-header-button-38 (text Commits, window 1be55d31…): maxWidth: 61, cls carries neo-tab-overflow-capped.
  • Its toolbar neo-tab-header-toolbar-23: rect x 0–320, 33 px tall. The button's rect: x 0–61.
  • The focus-gated action rail (lock, reload, maximize, close) sits at the strip's right end; between the button's right edge and the rail roughly 160 px of strip are empty (the operator's screenshot, same moment).
  • The main window carries the same state on neo-tab-header-button-16 (Metrics, maxWidth: 52, capped) in the 14 %-extent right zone; whether that cap is currently correct was not measured.

Observation: a plugin-installed cap stayed on a button whose strip had room for its natural width. Inference, not yet traced: which room change failed to re-run the cap decision (the rail's reveal/withdraw, or the popup's resize).

The Problem

src/tab/plugin/Overflow.mjs caps a protected button (the active or the focused one) that is wider than the strip's usable width, by writing the public maxWidth config and adding neo-tab-overflow-capped (applySplit, the appliedCaps ledger), and resources/scss/src/tab/header/Button.scss turns the covered cut into an ellipsis under that class. The cap clears only inside applySplit, when needsCap is false on a later projection; the plugin's own docblock states the intent: "clearing restores the exact caller value recorded at cap time". A cap is meant to be transient, and here it was not.

What the operator did between the cap and the room is the reproducer's first step; the two candidate room changes are a popup resize (the toolbar's own box changes, a resize should re-project) and the focus-gated rail withdrawing or revealing (the strip's room for tabs changes without the toolbar box changing). The hover-reveal mode (#20011) reserves the revealed cluster's width up front precisely so a hover never re-partitions; the focus-gated mode has no such reservation, so a cap computed beside the revealed rail may simply never be revisited once the rail goes.

The Architectural Reality

  • Overflow#applySplit (src/tab/plugin/Overflow.mjs, the needsCap branch and its mirror else if (me.appliedCaps?.has(button.id))): the only writer and the only clearer of the cap; usable comes from the caller (project()).
  • The measurement window restores a capped button's recorded maxWidth before measuring, so the natural-width cache is not poisoned by the cap (the cappedButtons block above applySplit).
  • Re-projection triggers: the toolbar's resize (onResize) and activeIndexChange. The rail is tab/header flat actions (#17418), revealed on focus, with the hold added by #20052.
  • Precedents: #16424 (the cap's origin: the active tab never runs beneath the floating control), #19982 (a partition measured from visual rects inside a FLIP stayed stale until the next activation; same shape, different trigger), #18410 (a cap spec retired when the heavy header stopped staging a cap).

Design authority: the Overflow plugin's own contract, a plugin-installed cap is cleared by the plugin when the room returns.

The Fix

  1. Name the missing trigger with a setter trace on the capped button's maxWidth and on the rail's reveal/withdraw during the operator's sequence (the method that found #20075's writer).
  2. Make the cap's lifetime follow the room: re-run the partition (or at least the cap decision for ledger members) whenever the strip's usable width changes, the rail's reveal and withdraw included, not only on a toolbar resize; or compute usable from the live layout rect at decision time and let the next projection clear it. Keep the hover mode's no-repartition rule (#20011) intact: its reservation already makes the hover width-neutral.
  3. The control arm stays true: while the room is genuinely short (a 320-px popup with the rail revealed and a title wider than the room), the cap stays.

Acceptance Criteria

  • AC-1: A red-first Neural Link e2e under test/playwright/e2e/workstation/: a pane popped out into a 320-px-wide window, its title capped (neo-tab-overflow-capped present, maxWidth below the natural width); after the room returns, in two arms (the popup widened by 200 px; the focus moved so the rail withdraws), the button carries no neo-tab-overflow-capped class and maxWidth is back to the caller's value within one projection. Red on dev 0ab667195e for whichever arm reproduces the operator's sequence.
  • AC-2: A unit arm on the plugin: a usable that grows past the natural width on the next projection clears the ledger entry and the class (the restore branch), and a usable that stays short keeps them (the control).
  • AC-3: The main window's Metrics cap in the right zone is measured in the PR: if its room is genuinely short it stays and is recorded as correct; if it is the same residue, the fix covers it.
  • AC-4 (post-merge): the operator repeats his sequence on the merged head and the title re-expands.

Out of Scope

The hover-reveal mode's reservation and its no-repartition rule (#20011); the overflow control's own placement; #20080 (post-destroy config writes), a different class of residue.

Related

#16424 · #17418 · #20011 · #20052 · #19982 · #18410 · #20022 (the walk that found it)

unowned-rationale: post-cut work; the cap's authors are on the 3D team this week and Ada carries #20080, so the first seat free after finish takes it through ticket-intake.

Live latest-open sweep: checked the latest 20 open issues at 2026-10-23T20:07:19Z; no equivalent (the closed #18410 and #16424 are the cap's history, not this residue). Keyword sweep (neo-tab-overflow-capped, "overflow capped tab header title ellipsis"): the same two closed tickets. A2A claim sweep: the latest 30 lane-claims at 20:07Z, none on the overflow plugin. MC sweep: #19982's stale partition mid-FLIP (Ada), Mnemosyne's 09-01 reading of a 60-px cap beside the revealed rail as the designed state, #16424's origin; none records this residue. Own-assignment sweep: #20022, #20023, #20009, #17918, #17416, #16212; none overlapping.

Origin Session ID: d6f6838c-943b-4fe2-aa9a-b57cd3719d2d Retrieval Hint: "tab overflow cap maxWidth neo-tab-overflow-capped stays after room returns popup rail"

tobiu referenced in commit d454606 - "fix(tab,toolbar): clear overflow title caps when strip room returns (#20081) (#20093) on Oct 24, 2026, 1:49 PM
tobiu closed this issue on Oct 24, 2026, 1:49 PM