Skip to content

feat: remove legacy lucy-clip model ID (and lucy-clip-latest, lucy-pro-v2v) - #51

Merged
AdirAmsalem merged 4 commits into
mainfrom
conductor/remove-lucy-clip-ios
Oct 14, 2026
Merged

AdirAmsalem merged 4 commits into
mainfrom
conductor/remove-lucy-clip-ios

Conversation

@AdirAmsalem

@AdirAmsalem AdirAmsalem commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Removes the legacy Lucy Clip model from the iOS SDK. Mirrors DecartAI/sdk#223 and follows the same shape as the earlier model-ID removal in #45.

  • Model IDs: VideoModel.lucyClip (lucy-clip), VideoModel.lucyClipLatest (lucy-clip-latest) and the deprecated alias VideoModel.lucy_pro_v2v (lucy-pro-v2v) are removed. That covers the enum cases, the hand-maintained VideoModel.allCases, the Models.video(_:) definitions (including the lucy-pro-v2v deprecation warning) and ModelsInputFactory.videoInputType(for:).
  • Orphaned video-to-video input: these were the only models that used it, so VideoToVideoInput, ModelInputType.videoToVideo and the QueueClient.submit / submitAndPoll overloads that take VideoToVideoInput are removed too.
  • Example app: the GenerateVideoView preview now uses .lucyLatest, and the unreachable .videoToVideo branch in VideoFetcher is gone.
  • README: the Queue API sample now uses .lucyLatest with VideoEditInput. VideoModel.lucyClip is removed from Available Models, and the VideoToVideoInput overload and initializer are removed from the API reference.
  • Tests: the ModelConfigTests expected VideoModel cases go from 10 to 8.

Every other model, and every field of the remaining input types, is unchanged. lucy-restyle-v2v is still a deprecated alias.

Compatibility: code that references .lucyClip, .lucyClipLatest, .lucy_pro_v2v, VideoToVideoInput or ModelInputType.videoToVideo no longer compiles, and VideoModel(rawValue: "lucy-clip") (likewise lucy-clip-latest and lucy-pro-v2v) returns nil. Use .lucyLatest or .lucy2_5 with VideoEditInput instead.

Test plan

These checks were run on Linux with Swift 6.2.1, not on macOS or iOS.

  • grep -rn -i "lucy-clip\|lucy_clip\|lucyClip\|lucy-pro-v2v\|lucy_pro_v2v" and grep -rn "VideoToVideoInput\|videoToVideo" both return nothing.
  • Full-package swift build / swift test: not run. The package depends on LiveKit and the SDK imports os.log / Apple-only frameworks, so it doesn't build on Linux. The Example app (SwiftUI/PhotosUI) was not built either.
  • A harness package compiles the real sources this PR touches: Models.swift, ModelDataTypes.swift, Inputs/*, ModelsInputFactory.swift, QueueClient.swift, QueueTypes.swift and Shared/*. It stubs os.log Logger and UTType, and copies Speed (from RealtimeConfiguration.swift, which imports LiveKit). Both switches over VideoModel have no default:, so the compiler checks they cover every case.
    • The unchanged ModelConfigTests pass (3/3).
    • Extra harness-only tests pass (6/6):
      • the removed IDs no longer parse;
      • every video model maps to .videoEdit or .videoRestyle;
      • QueueClient edit and restyle overloads run end-to-end against a mock URLProtocol (correct /v1/jobs/… paths, multipart fields, no num_inference_steps);
      • a mismatched input type throws invalidInput;
      • the Example's VideoFetcher.submitVideoJob switch, copied verbatim with stubbed PhotosUI/Factory types, compiles and runs. Compiling the pre-cleanup copy of that switch fails with type 'ModelInputType' has no member 'videoToVideo', as expected.
  • CI on macOS (swift build + iOS xcodebuild): passes; see "Also in this PR" for the workflow fix.

Also in this PR

  • Geometry fix (mirrors fix(models): lucy-2.1 and lucy-latest capture at 1280x720 on the realtime and video surfaces sdk#215): lucy-2.1 and lucy-latest now report 1280x720 instead of 1088x624 on both the realtime and video surfaces. lucy-2.5 already uses 1280x720 and lucy-latest resolves to it; lucy-2.1 serves the 720p shape too. fps is unchanged, and no other model's geometry changes. ModelConfigTests pins the new values and adds testLucyLatestMatchesResolvedModelGeometry, which checks that lucy-latest matches lucy-2.5 on each surface. The Linux harness passes 10/10; against the old Models.swift, the new assertions fail on exactly those four entries (12 assertion failures).
  • CI fix: the Build iOS App step failed (on main too) with Unable to find a destination matching the provided destination specifier. The macos-26 runner image keeps only the three newest iOS runtimes and no longer includes iOS 26.1, which Xcode 26.1.1 needs for generic/platform=iOS (macos-26 arm runner missing iOS simulator 26.1 actions/runner-images#14146). The job now runs xcodebuild -downloadPlatform iOS after selecting Xcode. The Xcode pin, toolchain and job name are unchanged.
  • CI result: Build and Test (Swift 6.2.1) passes on this branch. It downloads the iOS 26.1 runtime (about 8 GB, roughly 2 minutes), then swift build and the generic/platform=iOS xcodebuild both succeed. The workflow only builds the package; it doesn't run swift test, so ModelConfigTests has only been run in the Linux harness described above.

Note

High Risk
Breaking public API removals and capture dimension changes for lucy-2.1/lucy-latest can break existing integrations and streaming layout.

Overview
Removes legacy Lucy Clip video-to-video support from the iOS SDK: VideoModel.lucyClip, lucyClipLatest, and deprecated lucy_pro_v2v are gone, along with VideoToVideoInput, ModelInputType.videoToVideo, and the matching QueueClient submit/poll overloads. Callers should use VideoEditInput with .lucyLatest or .lucy2_5 instead.

Updates model geometry for lucy-2.1, lucy-latest, and related realtime/video definitions from 1088×624 to 1280×720, with tests asserting lucy-latest matches lucy-2.5 dimensions. Example app, README, and ModelConfigTests are aligned with the slimmer model list.

CI adds an xcodebuild -downloadPlatform iOS step so macOS runners can build for generic/platform=iOS with Xcode 26.1.1.

Reviewed by Cursor Bugbot for commit 5c16151. Bugbot is set up for automated code reviews on this repo. Configure here.

No video model uses the video-to-video input any more, so remove
VideoToVideoInput, ModelInputType.videoToVideo, the QueueClient
submit/submitAndPoll overloads that take it, the Example's now-unreachable
branch, and the README API-reference entries.
…time and video surfaces

Mirrors DecartAI/sdk#215. lucy-latest resolves to lucy-2.5, which already
carries 1280x720, and lucy-2.1 serves the 720p shape too. fps is unchanged.
Tests pin the new geometry and assert lucy-latest matches lucy-2.5 on both
surfaces.
The macos-26 runner image only keeps the three newest iOS runtimes and no
longer ships iOS 26.1, so xcodebuild can't resolve generic/platform=iOS
with Xcode 26.1.1 (actions/runner-images#14146). Download it in the job.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5c16151. Configure here.

width: 1088,
height: 624,
width: 1280,
height: 720,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong lucy-2.1 capture dimensions

Medium Severity

lucy-2.1 capture geometry is changed to 1280x720, the lucy-2.5 size. lucy-2.1 is a distinct older model whose registry size is 1088x624; createLocalCameraStream and preflight size frames from ModelDefinition, so realtime lucy-2.1 sessions would send the wrong shape.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5c16151. Configure here.

@AdirAmsalem
AdirAmsalem merged commit c0947bf into main Oct 14, 2026
2 checks passed
@AdirAmsalem
AdirAmsalem deleted the conductor/remove-lucy-clip-ios branch October 14, 2026 06:10
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.

2 participants