Skip to content

Revert "feat: Advanced Video Editor Implementation, Native WGC Integration, and AI Auto-Captions"#124

Merged
webadderall merged 1 commit intomainfrom
revert-122-main
Mar 28, 2026
Merged

Revert "feat: Advanced Video Editor Implementation, Native WGC Integration, and AI Auto-Captions"#124
webadderall merged 1 commit intomainfrom
revert-122-main

Conversation

@webadderall
Copy link
Copy Markdown
Owner

@webadderall webadderall commented Mar 28, 2026

Reverts #122 as it seems to be AI slop and adds many code changes not included in PR desc

Summary by CodeRabbit

  • Refactor
    • Simplified Whisper to single small model only (removed multi-model selection)
    • Removed audio track mixing and master volume controls
    • Removed per-region audio editing (mute, solo, fade settings)
    • Removed blur annotation type
    • Removed caption timeline editing and time-range based generation
    • Removed audio waveform visualization
    • Cleaned up build scripts and configuration

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 28, 2026

Caution

Review failed

The pull request is closed.

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: Invalid regex pattern for base branch. Received: "*" at "reviews.auto_review.base_branches[0]"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 17994299-16a9-4017-8c6d-d3f107904f62

📥 Commits

Reviewing files that changed from the base of the PR and between 5b72b32 and 719fa78.

⛔ Files ignored due to path filters (5)
  • electron/native/bin/win32-x64/whisper-bench.exe is excluded by !**/*.exe
  • electron/native/bin/win32-x64/whisper-cli.exe is excluded by !**/*.exe
  • electron/native/bin/win32-x64/whisper-quantize.exe is excluded by !**/*.exe
  • electron/native/bin/win32-x64/whisper-server.exe is excluded by !**/*.exe
  • electron/native/bin/win32-x64/whisper-vad-speech-segments.exe is excluded by !**/*.exe
📒 Files selected for processing (36)
  • .gitignore
  • electron-builder.json5
  • electron/electron-env.d.ts
  • electron/ipc/handlers.ts
  • electron/native/bin/win32-x64/whisper-runtime.json
  • electron/native/wgc-capture/src/main.cpp
  • electron/native/wgc-capture/src/monitor_utils.cpp
  • electron/native/wgc-capture/src/monitor_utils.h
  • electron/preload.ts
  • electron/windows.ts
  • package.json
  • scripts/build-cursor-monitor.mjs
  • scripts/build-whisper-runtime.mjs
  • scripts/build-windows-capture.mjs
  • src/components/video-editor/AnnotationOverlay.tsx
  • src/components/video-editor/AnnotationSettingsPanel.tsx
  • src/components/video-editor/AudioSettingsPanel.tsx
  • src/components/video-editor/SettingsPanel.tsx
  • src/components/video-editor/VideoEditor.tsx
  • src/components/video-editor/VideoPlayback.tsx
  • src/components/video-editor/editorPreferences.ts
  • src/components/video-editor/projectPersistence.ts
  • src/components/video-editor/timeline/Item.tsx
  • src/components/video-editor/timeline/ItemGlass.module.css
  • src/components/video-editor/timeline/KeyframeMarkers.tsx
  • src/components/video-editor/timeline/Row.tsx
  • src/components/video-editor/timeline/TimelineEditor.tsx
  • src/components/video-editor/timeline/TimelineWrapper.tsx
  • src/components/video-editor/types.ts
  • src/components/video-editor/videoPlayback/videoEventHandlers.ts
  • src/index.css
  • src/lib/exporter/annotationRenderer.ts
  • src/lib/exporter/audioEncoder.ts
  • src/lib/exporter/types.ts
  • src/lib/exporter/videoExporter.ts
  • src/utils/audioWaveform.ts

📝 Walkthrough

Walkthrough

This PR removes multiple features and simplifies the editor architecture: Whisper model support is reduced from multi-model to a single bundled "small" model; audio region controls (mute, solo, fade-in/out) and master audio mixing are eliminated; blur annotations are removed entirely; caption generation shifts from time-range-based to full-video transcription; and local CMake bundling is removed from build scripts.

Changes

Cohort / File(s) Summary
Whisper Model Simplification
electron/electron-env.d.ts, electron/preload.ts, electron/ipc/handlers.ts
Replaced multi-model Whisper APIs (getWhisperModelStatus, downloadWhisperModel, etc.) with single-model variants (getWhisperSmallModelStatus, downloadWhisperSmallModel, etc.); removed model name parameters from all Whisper IPC contracts and responses.
Auto-Captions Streamlining
electron/electron-env.d.ts, electron/ipc/handlers.ts, src/components/video-editor/SettingsPanel.tsx, src/components/video-editor/VideoEditor.tsx
Removed time-range-based caption generation (durationMs, startTimeMs, generationRange); simplified flow from segmented transcription with progress events to single-pass full-video captioning; removed onAutoCaptionProgress and onAutoCaptionChunk event listeners.
Audio Controls & Master Audio Removal
src/components/video-editor/AudioSettingsPanel.tsx, src/components/video-editor/SettingsPanel.tsx, src/components/video-editor/VideoEditor.tsx, src/components/video-editor/editorPreferences.ts, src/components/video-editor/projectPersistence.ts, src/components/video-editor/types.ts, src/lib/exporter/audioEncoder.ts, src/lib/exporter/videoExporter.ts, src/lib/exporter/types.ts
Deleted AudioSettingsPanel component entirely; removed master audio mute/solo/volume state and per-region fade controls; simplified audio export to volume-only without master mixing; removed persisted preferences for audio controls.
Blur Annotation Removal
src/components/video-editor/AnnotationOverlay.tsx, src/components/video-editor/AnnotationSettingsPanel.tsx, src/components/video-editor/types.ts, src/lib/exporter/annotationRenderer.ts
Removed "blur" annotation type and blurIntensity field from annotation regions; eliminated blur UI controls and rendering logic; reduced supported annotation types to `"text"
Timeline Editor & Caption Row Removal
src/components/video-editor/timeline/TimelineEditor.tsx, src/components/video-editor/timeline/Item.tsx, src/components/video-editor/timeline/ItemGlass.module.css, src/components/video-editor/timeline/Row.tsx, src/components/video-editor/timeline/TimelineWrapper.tsx, src/components/video-editor/timeline/KeyframeMarkers.tsx
Removed master audio row, caption rows, and time-selection UI from timeline; eliminated "caption" variant from items; removed audio waveform display, mute/solo/fade overlays; simplified item interaction by removing selection-based drag/resize and timeline "select" mode; narrowed TimelineRenderItem.variant to 'zoom' | 'trim' | 'annotation' | 'speed' | 'audio'.
Video Playback & Export Simplification
src/components/video-editor/VideoPlayback.tsx, src/components/video-editor/videoPlayback/videoEventHandlers.ts
Removed timeSelection prop and seek() method from playback; eliminated time-selection-aware pause/seek logic; removed time-selection ref handling from video event handlers.
Build Script & CMake Cleanup
scripts/build-cursor-monitor.mjs, scripts/build-whisper-runtime.mjs, scripts/build-windows-capture.mjs, .gitignore
Removed local CMake bundling references (.cmake_ext/) from CMake discovery logic; normalized Windows build script formatting; cleaned up Git ignore patterns.
Native Windows Capture Monitor Matching
electron/native/wgc-capture/src/main.cpp, electron/native/wgc-capture/src/monitor_utils.cpp, electron/native/wgc-capture/src/monitor_utils.h, electron/native/bin/win32-x64/whisper-runtime.json
Removed display-bounds-based fallback monitor matching (findMonitorByBounds, displayX/Y/W/H config fields); monitor selection now relies solely on displayId lookup; removed unused includes and conversion helpers; deleted Whisper runtime manifest file.
IPC & Window Communication Hardening
electron/windows.ts
Switched from guarded if (!win.isDestroyed()) to optional chaining in IPC sends, relying on webContents availability checks.
Configuration & Utilities Cleanup
electron-builder.json5, package.json, src/utils/audioWaveform.ts, src/index.css
Removed top-level copyright field from electron-builder config; fixed artifact naming in Windows NSIS build; removed typecheck script; deleted audio waveform generation utility; removed WebKit scrollbar styling.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~50 minutes

Possibly related PRs

Suggested labels

Checked


🐰 With whispers now one small and true,
And audio controls bid adieu,
The blur is gone, the captions fade,
Simplicity's the grand parade!
Less code to tend, a lighter load—
A rabbit hops down cleaner roads! 🐇✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch revert-122-main

Comment @coderabbitai help to get the list of available commands and usage tips.

@webadderall webadderall merged commit e42533f into main Mar 28, 2026
2 of 3 checks passed
@webadderall webadderall deleted the revert-122-main branch March 28, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant