Skip to content

fix(step-recorder): what a field holds is its value, and no name or packet fact reads it - #399

Merged
gololdf1sh merged 1 commit into
mainfrom
fix/390-field-text-is-a-value
Sep 30, 2026
Merged

gololdf1sh merged 1 commit into
mainfrom
fix/390-field-text-is-a-value

Conversation

@gololdf1sh

@gololdf1sh gololdf1sh commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #390

…acket fact reads it

With "Never record entered values" on, the step said "Type text into the Notes
field", but the text typed into a composer or a textarea still went out: into
the packet the AI polish sends (element.text, icon, near.heading, near.siblings,
after.counter, after.dialog), and on some pages into the step itself — the row
of an editable cell, the section under an editable heading, a label that wraps
its composer, a composer with a combobox role, an aria-labelledby that lists the
field, a cell that holds one.

The text inside a contenteditable or a textarea is now read in one place only,
the step's value, where masking applies. inField() and plainText() in
rec-naming.js give every reader of page text the same rule: the naming walks,
cleanText and cleanLabelText, the packet's element facts, the badge and the
notes. A read-only (contenteditable="false") cell still names its row.

Cost, accepted: an editable heading or cell no longer names a section or a row,
with the setting off too.

Probed, each against a scratchpad copy: all 16 behavioural reverts turn an H row
red; only plainText's fast path survives, and it changes no output. The same 19
cases in real Chromium leak on main and are clean here.

Closes #390

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gololdf1sh gololdf1sh self-assigned this Sep 30, 2026
@gololdf1sh
gololdf1sh merged commit ae141c3 into main Sep 30, 2026
1 check passed
@gololdf1sh
gololdf1sh deleted the fix/390-field-text-is-a-value branch September 30, 2026 10:39
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.

With "Never record entered values" on, text typed into a rich-text field still reaches the AI polish request

1 participant