Skip to content

fix(ios): manual Equatable for generated ModelInfo types#26087

Merged
tkheyfets merged 1 commit into
mainfrom
do/fix-catalogmodel-equatable
Apr 16, 2026
Merged

fix(ios): manual Equatable for generated ModelInfo types#26087
tkheyfets merged 1 commit into
mainfrom
do/fix-catalogmodel-equatable

Conversation

@tkheyfets

@tkheyfets tkheyfets commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • [LUM-745] Migrate GatewayConnectionManager to @Observable to fix re-entrant attribute graph hang #25496 added extension CatalogModel: Equatable {} and extension ModelInfo: Equatable {} in MessageTypes.swift, but Swift only auto-synthesizes Equatable when the conformance is declared in the same file as the type. The types live in GeneratedAPITypes.swift, so the main iOS build failed with Extension outside of file declaring struct 'CatalogModel' prevents automatic synthesis of '==' ... and Type 'ModelInfo' does not conform to protocol 'Equatable'.
  • Implement == by hand for CatalogModel, ProviderCatalogEntry (required so that ModelInfo.allProviders can be compared), and ModelInfo. Keep the conformances in MessageTypes.swift so the generated file remains untouched.

Original prompt

fix the build https://github.com/vellum-ai/vellum-assistant/actions/runs/24529406671


Open with Devin

@tkheyfets tkheyfets left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@tkheyfets tkheyfets merged commit c92a075 into main Apr 16, 2026
7 checks passed
@tkheyfets tkheyfets deleted the do/fix-catalogmodel-equatable branch April 16, 2026 19:29

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

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