From 3617525afc65677117012ce351a993f4a6d68664 Mon Sep 17 00:00:00 2001 From: shunxinyi-ljs <3515462408@qq.com> Date: Fri, 13 Nov 2026 12:24:00 +0800 Subject: [PATCH 1/3] fix(record): keep contenteditable line breaks in recorded fill values Recording read a contenteditable value with `textContent`, which drops the line boundaries Chrome stores as
and
elements. Typing "Alpha", Enter, "Beta" recorded `value: "AlphaBeta"`, so replay collapsed the edit. Read the editor the way `bsk fill` verifies it: typed layouts are read as literal lines, other rich structures keep their rendered text. Fixes #594 --- CHANGELOG.md | 3 + CHANGELOG.zh-CN.md | 2 + .../content/__tests__/record-capture.test.ts | 89 ++++++++ .../record-editor-value.browser.test.ts | 199 ++++++++++++++++++ apps/extension/src/content/record-capture.ts | 49 ++++- 5 files changed, 341 insertions(+), 1 deletion(-) create mode 100644 apps/extension/src/content/__tests__/record-editor-value.browser.test.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 105d1c1f2..64b985c70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,9 @@ determines which versions can connect. passive inner wrappers, inherited `cursor: pointer` / click-skin descendants, and native `` / `