Repository navigation
feat: add an input event log to recordings (#118) - #158
Merged
Merged
Conversation
start_recording events: true logs clicks, scroll, sampled cursor positions, and key presses to <recording>.events.jsonl, timed to the video and in video pixels; read_events returns slices. Keys are masked by default, with an opt-in for Ctrl/Alt/Win shortcuts; typed text is never logged. Closes #118 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #118.
What:
start_recording { events: true }writes<recording>.events.jsonlbeside the video, and the newread_eventstool returns slices of it:down/upper button,wheel(vertical/horizontal notches), andmovesampled every 33 mskeypressest(seconds on the video's clock),x/yin video pixels, andinFrameThis is the data auto-zoom toward clicks, click highlights, and keystroke overlays (ROADMAP Phase 5) need. It also lets an agent jump to "the frame after the 3rd click".
How: a small C# low-level hook helper (compiled through PowerShell, ready in about 1 s) starts before ffmpeg and appends raw lines stamped with
GetSystemTimePreciseAsFileTime. When ffmpeg exits for any reason (stop,maxDurationSec, crash, shutdown), the helper is stopped and the log is converted using gdigrab's reported first-frame wall-clock time (start:in the input banner).stopSessionwaits for the conversion, sostop_recordingreports the finished log. The helper also exits on its own if the server dies.Privacy: keys are never logged as text.
keys: "masked"(default): only that a key went down.keys: "shortcuts": also names chords held with Ctrl, Alt, or Win (Ctrl+S,Alt+Tab). Plain typing, Shift+letter, and AltGr characters stay masked.fullmode: a system-wide record of typed text is a keylogger, and overlays don't need it.Opt-in per recording. The log is gitignored (
*.events.jsonl) and covered in the threat model.Tests
captureFrame.Ctrl+Sis sent only if the test window has focus. Checks the logged click position, the chord, and that the black frame lands 26–54 ms after the logged click over 3 runs (1–1.5 frames at 30 fps, including the app's repaint).Bumps to 0.28.0.
🤖 Generated with Claude Code