Clipboard: clear when you come back to TouchPass #20
Loading…
Reference in a new issue
No description provided.
Delete branch "clipboard-clear"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #8.
What
Lomiri suspends TouchPass as soon as you switch away to paste, so the 45 s timer never fired. The phone's Qt platform plugin also drops every clipboard write from a window without focus, including
Clipboard.clear(), which it never forwards at all. The flow is copy, paste elsewhere, come back, so:clear()is never forwarded.Blast radius
Tier: leaf
Trunk paths touched: none.
qml/Main.qmlis unchanged.Gate / rollback: revert the merge, or reinstall the previous
.click.Proof
CreatePaste(23:03:42). The user checked that build (8596448e): the password no longer pastes after coming back.wiping, window active: false app state: 0. Both the empty write and the space write were dropped, and noCreatePastewas logged.cargo make qml-testgivesTotals: 96 passed, 0 failed.tst_ClipboardGuard.qmlfakes window focus. Covered:cargo make), since no Rust changed.Review
Reviewer: fresh-context Sonnet review at medium, then a code-review pass. Results:
activebinds toWindow.active, so the guard has to sit in a window. It does, inMain.qml.activedirectly. The real transition is covered by the device check above.Review-Confidence: not audited (leaf)
Confidence by part
ClipboardGuard.qmllogic: high (unit tests, device check).🤖 Generated with Claude Code
WIP: Clipboard: clear on return once the 45 s are upto Clipboard: clear when you come back to TouchPass