Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

@ammar-agent ammar-agent commented Nov 14, 2025

Summary

  • rely on Vercel AI SDK's convertToModelMessages ignoreIncompleteToolCalls option so we no longer hand-edit partial tool calls
  • drop the bespoke splitMixedContentMessages pass and streamline the provider transform logic
  • update the unit tests to reflect the simpler pipeline while keeping reasoning/tool coverage

Testing

  • make typecheck
  • make test

Generated with mux

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ammar-agent ammar-agent force-pushed the remove-janky-model-prep branch from 9099db0 to 0188ea2 Compare November 14, 2025 18:04
### Summary
- drop bespoke mixed-content splitting now that convertToModelMessages can ignore incomplete tool calls
- rely on AI SDK option to strip unfinished tool calls before provider transforms
- streamline tests to reflect new pipeline while keeping reasoning/tool coverage

### Testing
- make typecheck
- make test
@ammar-agent ammar-agent force-pushed the remove-janky-model-prep branch from 0188ea2 to 9f388e9 Compare November 14, 2025 18:13
@ammario ammario merged commit 4e97ff9 into main Nov 14, 2025
13 checks passed
@ammario ammario deleted the remove-janky-model-prep branch November 14, 2025 18:31
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