fix: retain filtered paste drafts and invalidate urgent input ownership

This commit is contained in:
bincxz committed 2026-09-18 14:45:17 +08:00
1 parent 47f5077054
commit 4b5103cf6a
5 files changed
+56 -18

No files matched your search

+3 -2
View File
@@ -499,9 +499,10 @@ test("paced recording uses its captured prefix and never imports text typed whil
steps.length = 0;
recorder.recordInput("prefix for a dropped first line");
const lineRecorder = recorder.captureSubmittedLineRecorder()!;
await lineRecorder("second was sent");
await lineRecorder("second was sent", { consumePendingInput: false });
await recorder.recordEnter();
});
assert.deepEqual(steps.filter(step => step.type === "send").map(step => step.value), ["second was sent"]);
assert.deepEqual(steps.filter(step => step.type === "send").map(step => step.value), ["second was sent", "prefix for a dropped first line"]);
} finally {
await act(async () => renderer.unmount());
}