fix(recording): avoid duplicate system audio fallback#553
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change constrains the fallback companion audio path selection in ChangesEmbedded Audio Companion Path Filtering
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add 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.system.wavnext to the embedded video audio, which duplicates source/system audio candidates.Why
getCompanionAudioFallbackInfo()was still returning bothrecording.system.wavandrecording.mic.wavwhen the video itself already contained an audio stream. That contradicted the existing test expectation and can make downstream audio fallback/mux planning consider duplicate system audio.This is a small extraction from the broader #504 work, separated so we do not merge the stale NVIDIA/export route planner PR as one large change.
Validation
npm test -- electron/ipc/recording/diagnostics.test.ts(11 passed)npx tsc --noEmitnpx biome check --formatter-enabled=false electron/ipc/recording/diagnostics.ts electron/ipc/recording/diagnostics.test.tsgit diff --checkNote:
npx biome checkwith formatter enabled wants to rewrite existing CRLF line endings across these files, so I used formatter-disabled scoped Biome to avoid unrelated formatting churn.Summary by CodeRabbit