fix!: Return disabled config if no defaultValue is provided#23
Merged
jsonbailey merged 4 commits intomainfrom Mar 5, 2026
Merged
fix!: Return disabled config if no defaultValue is provided#23jsonbailey merged 4 commits intomainfrom
jsonbailey merged 4 commits intomainfrom
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
keelerm84
approved these changes
Mar 4, 2026
jsonbailey
pushed a commit
that referenced
this pull request
Mar 5, 2026
🤖 I have created a release *beep* *boop* --- ## [0.3.0](0.2.2...0.3.0) (2026-03-05) ### ⚠ BREAKING CHANGES * Use kwargs for completion_config and config methods * Return disabled config if no defaultValue is provided ([#23](#23)) ### Features * Drop support for Ruby 3.0 which is EOL. ([fe3fdf8](fe3fdf8)) * Use kwargs for completion_config and config methods ([fe3fdf8](fe3fdf8)) ### Bug Fixes * Return disabled config if no defaultValue is provided ([#23](#23)) ([fe3fdf8](fe3fdf8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > This PR only updates versioning and documentation/release metadata; it does not change runtime code paths. > > **Overview** > Bumps the gem version to `0.3.0` across release metadata (`.release-please-manifest.json`, `lib/server/ai/version.rb`) and updates `PROVENANCE.md` to reference the new version. > > Updates `CHANGELOG.md` with the `0.3.0` release notes, including documented breaking API changes (kwargs for `completion_config`/`config`), dropping Ruby 3.0 support, and a fix for returning a disabled config when `defaultValue` is missing. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit bcf88d7. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat!: Use kwargs for completion_config and config methods
feat: Drop support for Ruby 3.0 which is EOL.
Note
Medium Risk
This is a breaking public API change (positional args to kwargs) and alters default fallback behavior to disabled, which could change downstream runtime behavior if callers relied on nil/implicit defaults.
Overview
Breaking API + runtime behavior update for AI config evaluation.
Client#completion_config(and deprecated#config) now require keyword arguments (key:,context:,default:,variables:) and will implicitly fall back to a disabled config when no default is provided (via newAIConfig.disabled).Drops Ruby 3.0 support by bumping the gem’s
required_ruby_versionto>= 3.1.0, updating RuboCop target, CI/publish workflows, and example Gemfiles/docs; examples are also updated to the newcompletion_configcall style and document optional resilient defaults.Written by Cursor Bugbot for commit cdfd0a8. This will update automatically on new commits. Configure here.