Skip to content

Conversation

@continue-development-app
Copy link

Summary

This PR adds comprehensive test coverage for the AI SDK v4 to v5 migration changes introduced in #9115.

Changes

Updated Existing Tests

  • convertToolsToVercel.test.ts: Updated to verify the field instead of (AI SDK v5 change)

New Test Suites (82 tests total)

1. ai-sdk-v5-migration.test.ts (20 tests)

Tests for tool conversion changes:

  • Tool definition format changes (parametersinputSchema)
  • Edge cases: empty parameters, nested schemas, arrays, enums, patterns
  • Validation constraints: numeric, string length, array constraints
  • Complex schemas: oneOf/anyOf/allOf, additionalProperties
  • Edge cases: duplicate tool names, special characters, long descriptions

2. ai-sdk-v5-usage.test.ts (17 tests)

Tests for usage field mapping:

  • Field renaming: promptTokensinputTokens, completionTokensoutputTokens
  • Anthropic caching: promptTokensDetailsinputTokensDetails
  • Missing field handling and defensive programming
  • Edge cases: zero values, large counts, negative values, non-numeric values
  • Streaming vs non-streaming usage differences

3. ai-sdk-v5-tool-calls.test.ts (24 tests)

Tests for tool call structure changes:

  • Field renaming: argsinput
  • Complex input types: nested objects, arrays, booleans, numbers
  • Special characters and unicode handling
  • Multiple tool calls and streaming scenarios
  • Tool call ID preservation
  • Edge cases: circular references, Date objects, large inputs

4. ai-sdk-v5-model-init.test.ts (21 tests)

Tests for model initialization pattern changes:

  • v4 pattern: provider(modelName) → v5 pattern: provider.chat(modelName)
  • OpenAI and Anthropic provider changes
  • Parameter renaming: maxTokensmaxOutputTokens
  • Error handling and migration patterns
  • Type safety improvements in v5

Test Coverage

All tests pass (82/82):

✓ src/test/ai-sdk-v5-migration.test.ts (20 tests)
✓ src/test/ai-sdk-v5-tool-calls.test.ts (24 tests) 
✓ src/test/ai-sdk-v5-usage.test.ts (17 tests)
✓ src/test/ai-sdk-v5-model-init.test.ts (21 tests)
✓ src/test/convertToolsToVercel.test.ts (8 tests)

Key Migration Changes Tested

  1. Tool Definitions: parametersinputSchema
  2. Usage Tracking:
    • promptTokensinputTokens
    • completionTokensoutputTokens
    • promptTokensDetailsinputTokensDetails (Anthropic)
  3. Tool Calls: argsinput
  4. Model Init: provider(model)provider.chat(model)
  5. Parameters: maxTokensmaxOutputTokens

Related


This agent session was co-authored by peter-parker and Continue.

continue bot and others added 30 commits December 1, 2025 23:58
- Created comprehensive documentation for PostHog integration covering analytics, feature flags, and data-driven development workflows
- Created Atlassian integration docs for Jira and Confluence automation including issue management, sprint planning, and documentation sync
- Created Netlify integration docs for deployment automation, environment management, and site monitoring
- Updated integrations overview page to include all three new integrations
- Added new integration pages to docs.json navigation

All three integrations follow the established documentation style and include:
- Overview with key capabilities
- Detailed setup instructions
- Multiple use case examples with specific agent tasks
- Manual and automated workflow guidance
- GitHub integration examples
- Comprehensive troubleshooting section
- Links to relevant cookbook guides

Co-authored-by: bekah-hawrot-weigel <[email protected]>
- Added Info callouts to cookbook guides referencing Mission Control integrations
- Follows same pattern as Sentry integration documentation
- Creates clear path for users from CLI workflows to Mission Control automation
- PostHog: Links to product analytics integration
- Atlassian: Links to Jira/Confluence integration
- Netlify: Links to deployment automation integration

Co-authored-by: nate <[email protected]>

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
Remove test expectation for credentials.json which no longer matches after
removing credentials.* pattern. Add new tests to verify legitimate source
files (tokens.py, credentials.go, etc.) are not blocked.

Co-authored-by: nate <[email protected]>
Remove credentials.* and token.* patterns from IntelliJ security ignore
list to match the TypeScript core changes. This ensures consistent behavior
across both IDE extensions.

Co-authored-by: nate <[email protected]>
dependabot bot and others added 21 commits December 12, 2025 09:09
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v3...v5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [JetBrains/qodana-action](https://github.com/jetbrains/qodana-action) from 2025.2.3 to 2025.2.4.
- [Release notes](https://github.com/jetbrains/qodana-action/releases)
- [Commits](JetBrains/qodana-action@v2025.2.3...v2025.2.4)

---
updated-dependencies:
- dependency-name: JetBrains/qodana-action
  dependency-version: 2025.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v6...v7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Add a Tip callout to the models documentation page explaining how users can choose models when creating agents in Mission Control or workflows, and that Continue uses a default agent with recommended model when none is specified.

Co-authored-by: bekah-hawrot-weigel <[email protected]>
Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
Removed image and added tips for model selection.
move updated telemetry page to correct location
docs: add tip callout about agent model selection
Add PostHog, Atlassian, and Netlify integration documentation
…ctions/upload-artifact-6

chore(deps): bump actions/upload-artifact from 5 to 6
…ctions/download-artifact-7

chore(deps): bump actions/download-artifact from 6 to 7
…etBrains/qodana-action-2025.2.4

chore(deps): bump JetBrains/qodana-action from 2025.2.3 to 2025.2.4
…ctions/cache-5

chore(deps): bump actions/cache from 3 to 5
fix: overzealous 'token' and 'credential' security regexps
…de0b8d109421a2aa54

[Snyk] Upgrade mocha from 11.7.1 to 11.7.5
feat: Continue CLI Git AI integration for tracking AI-authored code
Added text at the bottom of the Integrations section pointing to Mission Control Integrations hub and docs page.

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
Co-authored-by: bekah-hawrot-weigel <[email protected]>
* Test changelog

* Remove redirect

* Clean up language

* Add note icon

* Add links

* Update YT link to include embed
- Update convertToolsToVercel test to verify inputSchema field (v5 change)
- Add ai-sdk-v5-migration.test.ts: 20 tests for tool conversion edge cases
- Add ai-sdk-v5-usage.test.ts: 17 tests for usage field mapping (inputTokens/outputTokens)
- Add ai-sdk-v5-tool-calls.test.ts: 24 tests for tool call input field mapping
- Add ai-sdk-v5-model-init.test.ts: 21 tests for model initialization changes (provider.chat)

Total: 82 new test cases covering v5 migration changes including:
- Tool definition format (parameters → inputSchema)
- Usage tracking (promptTokens → inputTokens, completionTokens → outputTokens)
- Tool calls (args → input)
- Model initialization (provider(model) → provider.chat(model))
- Parameter renaming (maxTokens → maxOutputTokens)
- Anthropic caching (promptTokensDetails → inputTokensDetails)

Generated with [Continue](https://continue.dev)

Co-authored-by: peter-parker <[email protected]>
Co-Authored-By: Continue <[email protected]>
@continue-development-app continue-development-app bot requested a review from a team as a code owner December 19, 2025 19:12
@continue-development-app continue-development-app bot requested review from RomneyDa and removed request for a team December 19, 2025 19:12
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Dec 19, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 61 files

@continue
Copy link
Contributor

continue bot commented Dec 19, 2025

Documentation Review

I've reviewed PR #9223 for necessary documentation updates.

Conclusion: No documentation updates needed.

Reasoning:

  1. Internal Package: The openai-adapters package is an internal utility that converts between OpenAI format and Vercel AI SDK format. It's not exposed to end users.

  2. Test-Only Changes: This PR adds 82 comprehensive tests for the AI SDK v4→v5 migration. No user-facing features or APIs were added or changed.

  3. No Existing Docs: The openai-adapters package has no user documentation in the docs/ directory - it's purely an implementation detail.

  4. Transparent Migration: The AI SDK v5 migration is handled internally by the adapters. Users don't need to know about field mappings like parameters → inputSchema or args → input.

The tests ensure correctness of the internal migration, but this doesn't require user-facing documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

continue-agent size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

8 participants