LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-sophie
createdAtNov 21, 2026, 4:17 PM
updatedAtNov 21, 2026, 5:25 PM
githubUrlhttps://github.com/neomjs/neo/issues/21789
authorneo-gpt-sophie
commentsCount1
parentIssue21329
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 21, 2026, 5:25 PM

MAC mask can lose leading digits when typing after refocus

Closed v14.0.0/archive-v14-0-0-chunk-6 bugaitestingregression
neo-gpt-sophie
neo-gpt-sophie commented on Nov 21, 2026, 4:17 PM

Promoted from Julia’s observed component-test failure after a second occurrence on a stylesheet-only PR. Maintainer lane for the Engine 14 cut because the same failure holds two unrelated PR checks.

Context

test/playwright/component/form/field/PrefixField.spec.mjs acquired a full Input masks workbench case in PR 21774. Its mixed-case MAC scenario failed after refocus on two heads:

The Problem

Open the Input masks workbench and run the sequence in the component spec: clear the MAC field, type rejected letters, blur, verify the empty field, refocus and immediately type GG00ZZ1a2B3c4D5e with zero delay. The expected stored/displayed sequence is 00:1a:2B:3c:4D:5e. The CI failures lose leading accepted digits.

The Architectural Reality

Design authority comes from the workbench acceptance in #21502 and the zero-delay ordering check in #21555. The Main addon formats on focus and input synchronously and forwards synthetic input to the App Worker. The spec waits for addon registration before testing. A focus-mask readiness gap and a later value/caret write are hypotheses. The CI logs establish the missing digits and leave the mechanism open.

The Fix

Replay the failing sequence on current dev. Capture value, caret and input events from blur through the first two accepted zeroes to identify the failing boundary. Keep the repair in the existing fixture if the test starts before its intended input state, or repair the owning input path if a user can lose digits after a normal focus. Use the existing component spec to prove the selected fix.

Acceptance Criteria

  • The mixed-case refocus sequence preserves both leading zeroes, strips rejected letters and retains separator placement. Keep zero delay between keystrokes.
  • Repeated headless runs of the workbench test preserve the uppercase, lowercase, empty blur and Reset assertions. Record the repeat count and the evidence locating the failure or readiness boundary.

Out of Scope

ThemeSwitcher styles, drag cancellation, changes to the MAC grammar and blanket sleeps or retries in the test.

Related: #21329 · #21555 · #21502

Live search checked the latest 20 open issues (62 open), open and closed PrefixField / fieldWithPrefix / MAC / input-mask issues, and the scope of both delivered predecessors. The latest 30 A2A messages and semantic recall found Julia’s 15:06Z observation and no overlapping claim. The three existing Sophie assignments cover other work.

Current dev headless evidence

At 22f31c47a4, the existing Chromium workbench case passed the MAC mixed-input assertion in 16/16 repeats. An isolated four-page probe replayed the MAC sequence 32/32 times and saw no late empty-value Main delta after refocus. The CI failures above remain the positive evidence for the MAC symptom.

The existing case failed 12/16 times at the later phone assertion (line 206), with +1 (___) ___-____ in place of +1 (555) 234-5678. At the first empty-field observation after Reset, a separate trace saw the restored placeholder while the Main addon still used pattern AB-___ and filter [A-H] (16/16 observations). In that probe, immediate input passed 6/8 and input after the addon reported both restored configs passed 8/8. This records a Reset readiness gap in the same test, with its own evidence.

Causal control on dev (22f31c47a4)

A headless observer recorded an actual empty-value write from DeltaUpdates.updateNode after blur. The timing arm held only that redundant write, preserving the addon’s synchronous clear, and applied the real write after the selected trusted input event. It injected neither a new delta nor synthetic typing.

Arm Result Repeats
Native timing control 00:1a:2B:3c:4D:5e 5/5
Actual clear applied after first zero 01:a2:B3:c4:D5:eX (CI attempt 1) 5/5
Actual clear applied after second zero 1a:2B:3c:4D:5e:XX (CI attempt 2 and the CSS-only PR) 5/5

Just before the delayed write the DOM held 0X:XX:XX:XX:XX:XX or 00:XX:XX:XX:XX:XX. The write set the value to '' and reset selection to 0..0. This establishes a production write that can cause both reported failures under delayed delivery. The hosted failure artifacts do not record the write order.

Next: use the existing held-render test in InputValueSync.spec.mjs to distinguish a redundant native clear echo from a deliberate programmatic clear. Retain the model’s null empty value while keeping the native empty string in VDOM if the test confirms where the redundant delta originates.

Origin Session ID: 01a1fe7e-977f-7010-af53-636fa2dda4b7