Repository navigation
fix(mac): count the HUD timer from the helper's first frame - #1054
Conversation
The start IPC now returns the helper's recording-started timestamp, the instant its first frame reached the file, and the HUD anchors to it instead of to the reply's arrival. The cursor offset uses the same anchor.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe native macOS start flow now passes the helper’s capture-start timestamp through the IPC response. The screen recorder uses that timestamp to initialize elapsed time, with ChangesNative macOS start timing
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: 🔵 Low · up to The change is mergeable; a system-clock rollback could briefly make the HUD show negative elapsed time, with no evidence of recording loss. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
recording-startedtimestamp, the instant its first frame reached the file, and the HUD timer counts from it instead of from the reply's arrival. The cursor offset uses the same anchor. A helper that sends no timestamp keeps today's behaviour.createdAt(the recording id, stamped before the permission prompts) taken for the start of capture; the stall itself was removed by fix: handle macOS capture permission failures #886.stop, becauseScreenCaptureRecorder.start()never re-checksshutdownTaskafter its awaits (the microphone prompt can wait 30 s inensureRequestedPermissions). Plan: checkshutdownTaskafter each await beforesetupWriter/startCapture, and align the 30 s wait with main's 10 s.Related issue
Part of #901
Type of change
Release impact
Desktop impact
Testing
useScreenRecorder.nativeMacStartWarning.test.tsx: a helper stamp 20 s old shows 20 s on the HUD. It fails without the fix.vitest --run src/hooks electron/ipc: 147 passed. Both tsc configs and Biome.🤖 Generated with Claude Code
Summary by CodeRabbit