9 Commits
Author SHA1 Message Date
lucioandClaude Opus 5 76d1053aaf input-capture: public init for PermissionState (app-engine request 1)
Cross-lane edit, authorised by the lead. The struct declared two public
lets and no init, so the memberwise one was internal and no other target
could build a value — `EngineSnapshot.permissions` had to default to
`Permissions.preflight()`, i.e. a TCC query, just to have a value to
hold. The default is now `PermissionState(listen: false, post: false)`,
which is also the honest value before `start()` has read anything.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 03:57:27 -07:00
lucioandClaude Fable 5.1 3c51e95969 input-capture: close lane (lead review); brief: input-inject
Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-09-16 02:38:11 -07:00
lucioandClaude Opus 5 add0fa4bbc input-capture: work-log entry for the rework round
Answers the four QA findings of 2026-09-16 by number, with what changed
and why, and records that the round was build-only: no tap created, no
`CGEvent` posted, no cursor moved, no permission requested.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 02:36:22 -07:00
lucioandClaude Opus 5 3626dde603 input-capture: switch-to-all is swallowed only when it needs Ctrl+Alt
QA finding 4: `ProcessHotKeys` never returns `false` for a matched
`HotKeySwitch2AllPC` (`InputHook.cs:518-522`) — unlike every other hotkey
branch it falls through, so a chord that does not itself hold Ctrl+Alt
toggles ALL mode and still reaches the OS. `HotkeyMatch` grows
`swallows`, true for every hotkey except that one when its configured
chord requires neither Ctrl nor Alt; `handleKey` then queues the action
and carries on encoding the key as an ordinary keystroke, which is what
`ProcessHotKeys` returning `true` leaves to `KeyboardEvent` and
`CallNextHookEx`. Documented in docs/protocol.md §4.5 and in the feature
README, including the residual narrowing (Windows also requires the VK to
land in the switch-machine range, `:611-620`). Unreachable today: the
shortcut ships empty (`MouseWithoutBordersProperties.cs:30`) and an empty
hotkey never matches (`Common.cs:127-129`).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 02:35:51 -07:00
lucioandClaude Opus 5 09df9c09b2 input-capture: README states the real per-event lock counts
QA finding 3: the Assumptions bullet claimed "three acquisitions per
event at most (snapshot, virtual cursor, counters)", which named neither
`Screens` nor `CaptureQueue` and undercounted every path. Replaced with
the four lock objects the callback can reach and the count on each of the
four paths — local key 2, local move 3-4, remote key 3, remote move 5-6 —
counted from the code, with the extras (unmapped key, hotkey, escape,
modifier transitions) spelled out.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 02:34:28 -07:00
lucioandClaude Sonnet 5 2aa08946ad qa: input-capture QA log — gates green, four findings, verdict REWORK
Verified every Status/TODO tick against InputHook.cs/Event.cs/VK.cs/WM.cs/
WinAPI.cs/Common.cs and docs/protocol.md §10.4, docs/contracts.md C2-C4.
Findings: EventTap.thread unguarded across start()/stop() despite the
class's own Sendable-safety claim; screens.layout fetched unconditionally
on the hot local-mouse-move path; README's lock-count claim undercounts
actual acquisitions; a disabled-by-default Switch2AllPC swallow quirk vs
Windows. No typos fixed (all findings need real changes).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-09-16 02:31:07 -07:00
lucioandClaude Opus 5 84aa59a512 input-capture: coalescing looks back two entries
In remote mode one physical move queues a .mouse and an .edgeCandidate,
so matching only the last entry meant the kinds alternated and motion was
never coalesced -- the ring would fill at two entries per move whenever
the Engine stalled, which is the case C3's coalescing exists to survive.
The scan stops at the first non-motion entry so transitions keep order.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 02:19:38 -07:00
lucioandClaude Opus 5 fd1ceeac08 input-capture: protocol §10.4, README rewrite, TODO §4 ticked
§10.4 records ten things the lane established from the Windows source
(one-sided hotkey matching, the three meanings of Md.WheelDelta, the
virtual cursor and its primary+-1 clamp, the unconditional relative bias,
SwitchLocation, synthesised LLKHF bits, the eleven ReleaseAllKeys VKs, the
two input counters, monitor enumeration) plus the macOS device masks. The
README's Assumptions and Handshakes now describe what shipped, with the
nine decisions and three deliberate non-ports in the work log.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 02:18:12 -07:00
lucioandClaude Fable 5.1 1c24c9f67c control-channel: close lane (lead review); brief: input-capture
Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-09-16 01:57:56 -07:00