Skip to content

fix(app): keep sidebar rows anchored during Show more and restore title overflow state - #4737

Merged
yomgui merged 9 commits into
devfrom
e2e/sidebar-expansion-geometry
Sep 11, 2026
Merged

yomgui merged 9 commits into
devfrom
e2e/sidebar-expansion-geometry

Conversation

@yomgui

@yomgui yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member

Cluster 8 / brief M of the 2026-09-09 E2E triage (reports/e2e-red-2026-09-09/triage.md, "Cluster 8 — Sidebar expansion geometry"): sidebar-title-overflow-fade red on Daytona, 4/4 tests.

Bisect

pnpm evals:e2e sidebar-title-overflow-fade --daytona with the current spec against:

OPENWORK_EVAL_REF title overflow workspace group ungrouped
fd2868d03 (= cb89fd78e^) passed 4 px float first frame > 100 ms "Show 2 more" not found
c744e2d7b (dev) title state null 4 px float 65 px overlap reorder never settles

So cb89fd78e (#4628) did not introduce the geometry defects: it wrote a spec claiming stationarity that Motion never delivered on the Daytona renderer, and its own proof never ran there. The title-overflow regression is unrelated to the sidebar code (see 2 below).

Root causes and what changed

  1. Rows float / overlap during Show more (product). Motion's projection node starts every layout animation one frame late and, via setAnimationOrigin → mixTargetDelta(0), projects each row at its previous position until then — even with transition.layout.duration: 0. On the Daytona renderer that frame is observable: siblings below an expanding group sit at their old position under the newly laid-out rows (the 65 px overlap), and the workspace item carries a compensating 4 px translate. Fix: SidebarLayoutAnimationGate blocks the list's projection tree (isAnimationBlocked, the same flag Motion sets on a dragged node) while no reorder gesture is active, replacing the duration: 0 toggle. Reorder gestures still animate siblings.
  2. Workspaces heading shrinks 4 px when the list starts to overflow (product). The heading is a direct flex item of the scrolling flex-col list; once Show more makes the list overflow, flex-shrink: 1 + min-height: auto collapse it from h-6 (24 px) to its 20 px size-5 button, shifting every row up 4 px. Motion had been masking this with the translate above. Only workspace mode hit it because group/ungrouped lists already overflowed before the click. Fix: shrink-0. Reproduced locally by constraining the list height (24 → 20 → 24 with flex-shrink: 0).
  3. Dragging a group header toggled it (product). A completed drag releases on the same header, which the browser reports as a click → onToggle. Only a press within Motion's 3 px drag threshold toggles now.
  4. Unexpected title state: null (fixture). Since Streamline first launch and complete onboarding before desktop return #4608 the desktop boots with its default ~/OpenWork Chat workspace, so seed.workspace(app, "/tmp/Yonder") selected that existing workspace instead of creating /tmp/Yonder; the rendered titles were ["OpenWork Chat", …]. The fixture now passes { create: true } like sidebarWorkspaceTitles already does.
  5. Session-row drag claim re-expressed (spec). Session rows are native HTML drag sources (draggable for group drop zones, since feat(app): drag-and-drop between groups + session management UI controls #2039); a native dragstart fires pointercancel, which cancels the pointer gesture Motion's Reorder needs. So a trusted drag on a session row has never reordered — reproduced on macOS too (dragstart → pointercancel, no reorder, no click). Not a regression; the spec claimed a behavior the product does not have. Workspace/ungrouped modes now claim the product's gesture: the drag starts the native session drag carrying application/x-openwork-session-id, and does not change selection, route, row order, or persisted order. Group mode keeps the Motion reorder claim (groups are not native drag sources) and additionally asserts the release does not toggle the group.
  6. Spec diagnostics: a missing title names every rendered title; a moved anchor reports its lane/viewport/scroll/projection; the readiness wait for drag targets tolerates the same 1 px as every other geometry check (hovering the last row scrolls to the list end, where Chrome's integer scroll offset leaves the row 0.125 px past the list's fractional edge on Linux).

Proof

OPENWORK_EVAL_REF=74e7da2118b13bd463acf39870bd0ab42b917e68 pnpm evals:e2e sidebar-title-overflow-fade --daytona

✓ specs/sidebar-title-overflow-fade.e2e.test.ts (4 tests) 588037ms
  ✓ the sidebar title fade follows only the edges with hidden text
  ✓ workspace Show more keeps old rows anchored through every frame and still starts the native session drag
  ✓ group Show more keeps old rows anchored through every frame and still permits reordering
  ✓ ungrouped Show more keeps old rows anchored through every frame and still starts the native session drag
Test Files  1 passed (1) · Tests  4 passed (4)
{"command":"evals:e2e","lane":"e2e","daytona":true,"placement":"daytona","engine":"legacy","surface":"legacy","files":["sidebar-title-overflow-fade"],"passed":4,"failed":0,"skipped":0,"skips":[],"verdict":"passed"}

All four sandboxes logged source verified 74e7da2118b13bd463acf39870bd0ab42b917e68; sandboxes deleted. pnpm --filter @openwork/app typecheck clean.

Noticed, not touched

  • Harness contract drift (affects other clusters): createAndSelectWorkspace only creates a workspace when none is active or create: true. Since Streamline first launch and complete onboarding before desktop return #4608 every desktop has the default workspace, so seed.workspace(app, path) without create silently returns "OpenWork Chat" for all ~70 call sites while specs keep using path. This is almost certainly the real cause of Cluster 3's artifact-code-browser chmod: cannot access '/tmp/openwork-workspace-spec-…' (not pooled-lane path reuse). Owner: evals harness — either create when the active workspace's path differs from input.path, or make callers explicit.
  • Product design conflict: Motion Reorder.Item on session rows is unreachable while the rows are native draggable; session reorder-by-drag has never worked in Chromium. Decide between Motion reorder (drop-to-group via Motion) or native DnD only, then restore the reorder claim in this spec.
  • WorkspaceHeader has the same click-after-drag exposure as group headers (dragging a workspace title also selects it on release).
  • first expansion frame captured promptly < 100 ms is a renderer-latency claim; it passed in the proof but failed once at the fd2868d03 control (155 ms) — a flake risk on slow sandboxes.
  • Daytona CLI v0.210.0 vs API v0.213.0 mismatch warning on every exec; one provisioning 502 (source verification gate) left a sandbox behind that I deleted by hand.

Motion projects rows at their previous position for at least one frame
before a layout animation starts, even with a zero duration, so rows
below an expanding workspace or group overlapped the revealed ones on
slower renderers. Block the sidebar list's projection tree while no
reorder gesture is active instead of shortening the transition.
…ation in reorder readiness

A missing title now reports every rendered title instead of null. The wait
for reorder targets accepts the same 1px slack as the spec's other geometry
checks: hovering the last row scrolls to the list's end, where Chrome's
integer scroll offset can leave the row a fraction past the fractional edge.
Desktop now boots with its default first-launch workspace, so selecting
an existing one no longer puts the fixture at /tmp/Yonder; the title
under test is that folder's name.
Reordering a group by its title releases on the same header, which the
browser reports as a click; only a press that stayed within Motion's drag
threshold toggles the group. The anchor diagnostic also reports row bottoms.
…for groups

Session rows are native HTML drag sources for group drop zones, and a
native drag cancels the pointer gesture Motion's Reorder needs, so a
trusted drag on a row has always started the native drag rather than
reordering. Observe dragstart and claim that gesture (payload type,
unchanged selection, route, and persisted order) for the workspace and
ungrouped fixtures; groups are not native drag sources and keep the
reorder claim, now also asserting the release does not toggle the group.
… list overflows

The heading is a flex item of the scrolling list; once Show more makes
the list overflow it collapsed from its 24px height to its 20px button,
shifting every row up by 4px.
@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 10, 2026 3:09am UTC
3 Skipped Deployments
Project Deployment Actions Updated
openwork-den Ignored Ignored Sep 10, 2026 3:09am UTC
openwork-diagnostics Ignored Ignored Sep 10, 2026 3:09am UTC
openwork-landing Ignored Ignored v0 Sep 10, 2026 3:09am UTC

@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (51649 ms), confidentiality-review (75387 ms), spec-provenance-review (67707 ms), desktop-den-sync-review (21520 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (74e7da2118b13bd463acf39870bd0ab42b917e68). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@github-actions

Copy link
Copy Markdown
Contributor

Passed · 3/3 tests · 4/4 assertions · 2 images

Commit 74e7da2118b13bd463acf39870bd0ab42b917e68 · selected evidence

Open review report

This branch was successfully deployed

1 active deployment
Preview – openwork-app — 74e7da21 Deployed Sep 10, 2026 by vercel[bot]
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