Repository navigation
fix: avoid TS2590 in Agent model options - #414
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
|
Pushed a commit on top: our own source still intersected our model type with the AI SDK's ( |
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
commit: |
Valid
AgentandstartGenerationconfigurations fail with TS2590 when used with the current AI SDK model catalog. Define a namedAgentOptionsinterface extendingConfig, require its existing model type, and remove the redundant model declaration from standalone generation options. This avoids overlapping model unions and duplicate generated option declarations without changing runtime behavior.I also considered removing Agent's extra model restrictions and relying entirely on AI SDK's compatibility handling. This change preserves the existing tested model policy; broadening it can be considered separately.
Fixes #413.
Validation: