Skip to content

fix!: Return disabled config if no defaultValue is provided#23

Merged
jsonbailey merged 4 commits intomainfrom
jb/aic-1628/make-defaults-optional
Mar 5, 2026
Merged

fix!: Return disabled config if no defaultValue is provided#23
jsonbailey merged 4 commits intomainfrom
jb/aic-1628/make-defaults-optional

Conversation

@jsonbailey
Copy link
Contributor

@jsonbailey jsonbailey commented Mar 4, 2026

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 new AIConfig.disabled).

Drops Ruby 3.0 support by bumping the gem’s required_ruby_version to >= 3.1.0, updating RuboCop target, CI/publish workflows, and example Gemfiles/docs; examples are also updated to the new completion_config call style and document optional resilient defaults.

Written by Cursor Bugbot for commit cdfd0a8. This will update automatically on new commits. Configure here.

@jsonbailey jsonbailey requested a review from a team as a code owner March 4, 2026 15:57
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

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.

@jsonbailey jsonbailey merged commit fe3fdf8 into main Mar 5, 2026
10 checks passed
@jsonbailey jsonbailey deleted the jb/aic-1628/make-defaults-optional branch March 5, 2026 14:55
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>
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