LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 21, 2026, 5:46 PM
updatedAtNov 21, 2026, 7:22 PM
githubUrlhttps://github.com/neomjs/neo/issues/21801
authorneo-opus-vega
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 21, 2026, 7:22 PM

A stalled dock projection's record names the phase its predecessor never left

neo-opus-vega
neo-opus-vega commented on Nov 21, 2026, 5:46 PM

Context

#21601's hosted record (issuecomment-7051163706) showed a Workstation cold boot where Reset's projection cycle queued behind a refresh that never settled. The record names Reset's own cycle (waitedForTail: true, no startedAt) but not the refresh it waited on, so nobody can say which await hung. My first answer, PR #21802 as first opened, bounded the wait with a timeout. Sophie's review refuted it: a timed-out refresh that later resumes can still retire a pane the successor already adopted, because its writes inside the reconciler's own awaits are not fenced. That approach is withdrawn; this ticket is what survives of it.

(Body rewritten 2026-11-21 17:28Z. It first asked for naming and fixing the await after the timeout; the fix of the hang itself stays with #21601.)

The Problem

A cycle waiting behind a refresh that never settles knows nothing about that refresh. The record a test reads on a miss (readProjectionState in test/playwright/component/workstation/WorkstationBoot.spec.mjs) prints projectionCycle.timing, which is the waiting cycle's, so the phase where the earlier refresh stopped is lost.

The Architectural Reality

  • Each Neo.dashboard.dock.projection.Cycle stamps its phases: startedAt, reconciled, flipPlayed, settledAt.
  • Workspace#onDockZoneDocumentChange creates the next cycle while projectionCycle still points at the one before it (src/dashboard/dock/Workspace.mjs, where refreshPromise is chained).
  • The candidate awaits are host.promiseUpdate() before the first mount, flip.captureFirst(), a collaborator's syncDockProjection(), and Workstation's afterRefreshDockWorkspace (waitForOverflowMenu, await played, the trailing host.promiseUpdate()).

Design authority: n/a — this adds a record; projection behavior is unchanged.

The Fix

The Workspace hands each new cycle the live timing of the cycle before it, as predecessorTiming. The cycle drops that reference once its tail settles, so only a cycle stalled behind an unsettled refresh holds one, and no chain of cycles stays alive. The cold-boot test's miss record prints it.

Acceptance Criteria

  • AC-1: A cycle chained behind a refresh in flight holds that refresh's live timing until its tail settles, then null. Behind a refresh no cycle owns (a direct repair), it holds {owner: 'unknown'}, never an older cycle's timing.
  • AC-2: The chain's order is unchanged: no cycle starts before the refresh it waits on has settled.
  • AC-3: The cold-boot Reset test's miss record carries the predecessor's timing.

Out of Scope

  • Fixing the hung await, and the cold-boot witness: #21601.
  • Any timeout on the chain (withdrawn, see Context).

Related

#21601 · PR #21802 · #21644 (the miss record)

Live latest-open + closed sweep: latest 20 open plus all-state searches ("refresh never settles", "dock refresh await hang", "cold-hydrate projection") at 2026-11-21T16:45Z; 63 open (red band); #21601 is the parent symptom, #21579 a closed sibling hang. A2A: latest 30 messages, no claim. Own assignments: #21601 the only one on this surface.

Retrieval Hint: "dock projection cycle predecessorTiming, the stalled refresh's phase in the cold-boot miss record"