Context
Flagged as unverified in #18910's out-of-scope. Measured now, browser first (@tobiu's bar for this class: a component or e2e proof, not a unit-runtime story).
The Problem
Measured, component tier — real Chromium, real keys, apps/empty-viewport, dev@576da9b731. Instrument: the value setter of HTMLTextAreaElement.prototype / HTMLInputElement.prototype wrapped on the main thread; every programmatic write passes it, typing does not. Typed: the quick brown fox jumps over the lazy dog.
| Field |
App Worker |
programmatic value writes |
typed text |
form.field.Text (control) |
idle |
0 |
intact 3 of 3 |
form.field.TextArea |
idle, 12 chars/s |
35 — about one per keystroke, each equal to what the DOM holds |
intact 3 of 3 |
form.field.TextArea |
blocked 30 of every 40 ms, 12 chars/s |
35, none lossy |
intact 3 of 3 |
form.field.TextArea |
blocked 120 of every 140 ms, 20 chars/s |
21–23, 4–6 of them an OLDER value over newer typing |
corrupted 3 of 3: the quick brownfox jumps over thelazy dog |
form.field.Text (control) |
blocked 120 of every 140 ms, 20 chars/s |
0 |
intact 3 of 3 |
So a text area has none of the input sync a text field has. With an idle worker that is waste — a delta and a DOM write per keystroke. With a busy one — the App Worker is where a Neo app does its heavy lifting — it is the data loss #18792, #18910 and #18914 closed for text fields, still open for every text area.
The Architectural Reality
src/form/field/Text.mjs finds the real input's vnode by tag, in both places that keep it honest:
onInputValueChange(): VNodeUtil.find(me.vnode, {nodeName: 'input'}) — the sync of what the DOM reported into the vnode (+ reportedInputValue).
afterVnodeSync(deltas) (#18926): the same lookup, restoring the report into a landed vnode.
form.field.TextArea extends Text and changes the real input's tag to textarea (changeInputElKey('tag', …)). Neither lookup finds it, so neither the sync nor the restore ever runs, and every afterSetValue() → update() diffs the new value against a vnode that still holds the old one.
The node has a stable id, getInputElId() — afterVnodeSync() already matches deltas by it — and VNodeUtil.find() takes an id.
The Fix
Both lookups find the real input by getInputElId() instead of by tag name. No TextArea override, no new API.
Decision Record impact
none
Acceptance Criteria
Out of Scope
- An arm that reproduces the corruption itself: it needs a deliberately blocked App Worker and timing, and "no programmatic write while typing" is the deterministic form of the same claim.
Avoided Traps
- A
TextArea override of the two methods. The lookup by tag is the defect; a second copy of it with another tag keeps the defect's shape for the next subclass that changes the tag.
Related
#18792 / PR #18798 · #18910 / PR #18915 · #18914 / PR #18926 · #18923 / PR #18924 (the instrument)
Live latest-open sweep: checked the latest 20 open issues at 2026-09-18T17:35Z plus an all-state search (textarea / text area / value written / keystroke); nearest is the closed #18910, whose body flagged this as unverified. A2A sweep (latest 8, all read-states): no claim. Memory Core sweep: covered by today's #18910 sweep on the same nouns — no prior decision on text areas. Own open assignments: #15252 — no overlap.
Origin Session ID: 323cb989-06a2-4b3f-8d70-912d67796c11
Retrieval Hint: "textarea value written back every keystroke nodeName input lookup getInputElId vnode sync"
Context
Flagged as unverified in #18910's out-of-scope. Measured now, browser first (@tobiu's bar for this class: a component or e2e proof, not a unit-runtime story).
The Problem
Measured, component tier — real Chromium, real keys,
apps/empty-viewport,dev@576da9b731. Instrument: thevaluesetter ofHTMLTextAreaElement.prototype/HTMLInputElement.prototypewrapped on the main thread; every programmatic write passes it, typing does not. Typed:the quick brown fox jumps over the lazy dog.valuewritesform.field.Text(control)form.field.TextAreaform.field.TextAreaform.field.TextAreathe quick brownfox jumps over thelazy dogform.field.Text(control)So a text area has none of the input sync a text field has. With an idle worker that is waste — a delta and a DOM write per keystroke. With a busy one — the App Worker is where a Neo app does its heavy lifting — it is the data loss #18792, #18910 and #18914 closed for text fields, still open for every text area.
The Architectural Reality
src/form/field/Text.mjsfinds the real input's vnode by tag, in both places that keep it honest:onInputValueChange():VNodeUtil.find(me.vnode, {nodeName: 'input'})— the sync of what the DOM reported into the vnode (+reportedInputValue).afterVnodeSync(deltas)(#18926): the same lookup, restoring the report into a landed vnode.form.field.TextAreaextendsTextand changes the real input's tag totextarea(changeInputElKey('tag', …)). Neither lookup finds it, so neither the sync nor the restore ever runs, and everyafterSetValue() → update()diffs the new value against a vnode that still holds the old one.The node has a stable id,
getInputElId()—afterVnodeSync()already matches deltas by it — andVNodeUtil.find()takes an id.The Fix
Both lookups find the real input by
getInputElId()instead of by tag name. No TextArea override, no new API.Decision Record impact
none
Acceptance Criteria
TextAreacauses no programmatic write of its value; red ondev(one per keystroke).Text(#18923's witness), and #18792 / #18910 / #18914's unit and e2e arms stay green.Out of Scope
Avoided Traps
TextAreaoverride of the two methods. The lookup by tag is the defect; a second copy of it with another tag keeps the defect's shape for the next subclass that changes the tag.Related
#18792 / PR #18798 · #18910 / PR #18915 · #18914 / PR #18926 · #18923 / PR #18924 (the instrument)
Live latest-open sweep: checked the latest 20 open issues at 2026-09-18T17:35Z plus an all-state search (textarea / text area / value written / keystroke); nearest is the closed #18910, whose body flagged this as unverified. A2A sweep (latest 8, all read-states): no claim. Memory Core sweep: covered by today's #18910 sweep on the same nouns — no prior decision on text areas. Own open assignments: #15252 — no overlap.
Origin Session ID: 323cb989-06a2-4b3f-8d70-912d67796c11
Retrieval Hint: "textarea value written back every keystroke nodeName input lookup getInputElId vnode sync"