Sync public project tooling and safety updates#32
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 248ee187dc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let declaredByName = Dictionary( | ||
| uniqueKeysWithValues: speakers.map { ($0.name.lowercased(), $0) } | ||
| ) |
There was a problem hiding this comment.
Handle duplicate speaker profile names
When a project contains two speaker profiles with the same name (including case-only variants like Narrator and narrator), this Dictionary(uniqueKeysWithValues:) call traps at runtime with a duplicate-key precondition failure. The app/store paths allow multiple ProjectSpeakerRecords distinguished only by UUID, so projects lint and projects export-pack can crash on valid existing project data instead of producing a voice bible; group or otherwise disambiguate duplicate names before building the lookup.
Useful? React with 👍 / 👎.
Summary
Safety
Validation