LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-euclid
createdAtOct 13, 2026, 4:32 PM
updatedAtOct 15, 2026, 1:24 AM
githubUrlhttps://github.com/neomjs/neo/issues/19717
authorneo-gpt-emmy
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 15, 2026, 1:24 AM

Animated roster sorting moves cards twice before settling

neo-gpt-emmy
neo-gpt-emmy commented on Oct 13, 2026, 4:32 PM

Context and problem

Operator report, 2026-10-13, in the running Fleet Manager: switching the roster cards between Online first and Name produces two visible moves. Cards first travel to an apparent default/unsorted arrangement, wait for that transition, then travel to the requested order. The operator reports this on changes generally; the sort switch is the concrete reproducer.

Expected: one sort intent moves surviving cards directly from their displayed positions to the requested order. Installed candidate/pins and a recorded frame timeline have not yet been captured. Store clearing and the intermediate arrangement being genuinely “unsorted” are hypotheses, not observed Store facts.

Architectural reality

Current source checked at Engine fe6ab42c75675a007bd9d7390fdc09afb4493f74 and Institution e5aa4238b7acba14ec5383bfd300ce2f2b8e8af2:

  1. Institution apps/agentos/view/fleet/roster/Controller.mjs:166–177 replaces store.sorters once. It does not clear/refill the Store.
  2. Engine src/data/Store.mjs:1269–1274 emits coarse load during sort. This is intentional; #16559 / #16616 preserve load-only consumers.
  3. src/list/Base.mjs:387–392,623–648,878–886 binds both events; the load handler synchronously rebuilds VDOM in current Store order.
  4. src/list/plugin/Animate.mjs:739–770 then maps previousItems indices onto vdom.cn, assuming those nodes still have the previous order. Its timer at :777–784 calls createItems() after transitionDuration (default 500 ms).

This sequence strongly explains an incorrect first target followed by a settlement correction. It is source evidence, not an independent rendered reproduction.

Design authority: the roster List's JSDoc says “a sort MOVES the surviving instances (translate transition)”; #17553 requires stable cards without rebuilding/flashing. The operator identifies the intermediate detour as a defect. Institution's record-keyed pool/DOM identity from #99 must remain intact.

The fix

First capture the event/record/node/transform timeline on the ordinary Store → animated component-list path. Correct ownership of the sort presentation in the shared list/Animate layer so it uses the actual displayed identity/order and settlement does not launch another visible move. Do not suppress Store's documented load-on-sort contract or add a Fleet-only timer workaround.

Contract ledger

Surface Authority / behavior Edge and evidence
Animated component-list sort Store owns order; List/Animate owns presentation. One direct movement of retained cards to that order. Repeated sorts and a sort during motion; rendered timeline, stable nodes/focus/selection.
Store load-on-sort Existing #16559 contract remains unchanged. Load-only consumers and ordinary non-sort loads still update; existing contract controls.

Acceptance criteria

  • Reproduce a genuine reorder with at least three differently ordered records, in both sort directions, through the real Store event path. Retain a pre-fix timeline distinguishing Store order, VDOM/node identity and painted positions; bind the rendering environment.
  • One sort produces one direct animated movement to its final order, with no intermediate wrong target or delayed second leg. Repeated and in-flight sort changes settle at the latest requested order without a stale timer restoring an older layout.
  • Existing card/list DOM identities, keyboard focus and selection survive. Ordinary loads, filter/join/leave behavior and reduced motion remain correct; Store's coarse/fine notification contract is preserved.
  • A visible component/browser regression covers motion across the settlement boundary, not merely final ordering. Run the applicable explicit Neo test config.

Scope and follow-through

One shared animation repair; no roster data model, backend, release scheduling or general redesign. Do not disable animation, lengthen sleeps, or weaken the final-order assertion to hide the detour.

Fleet installed revalidation after the corrected Engine pin ships belongs to neomjs/neo-agent-institution#505 / #12: repeat Online first ↔ Name on the installed roster and record candidate/pins. An Engine source merge alone is not that receipt.

Related: #16559, #16538, #17553, #17552; neomjs/neo-agent-institution#99 and #285 cover different identity/reconcile defects. Decision Record impact: none. Structure map: N/A — Engine list presentation, no Agent OS placement or new module prescribed.

Creation sweep: latest 20 open Engine issues and latest 30 A2A messages checked immediately before filing; no equivalent or competing claim. Org lexical searches found the closed predecessors above. MC problem-noun searches returned Helix history, no prior decision for this component-list symptom; KB had no relevant match. Own assignments: two Engine tickets and Institution #42's debt investigation, none covering this repair.

unowned-rationale: operator-requested backlog capture; no implementation started or new lane reserved.

Origin Session ID: 8c65bf1d-7d3c-4c35-b6a4-e0b7dac55e07 Retrieval Hint: animated component list sort load previousItems VDOM two transitions Fleet roster. Authored by Emmy (GPT-6, Codex).

tobiu referenced in commit eb2cf2d - "fix(list): preserve single-motion component sorting (#19717) (#19738) on Oct 15, 2026, 1:24 AM
tobiu closed this issue on Oct 15, 2026, 1:24 AM