8000 fix: unnecessary tool writes by davenewza · Pull Request #1909 · teamkeel/keel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: unnecessary tool writes #1909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 27, 2025
Merged

fix: unnecessary tool writes #1909

merged 4 commits into from
May 27, 2025

Conversation

davenewza
Copy link
Contributor

Do not write the the user tool configs unless there has actually been a change. We want to keep the config changes to an absolutely minimal.

@@ -408,7 +408,7 @@ message CursorPaginationConfig {
message PageSizeConfig {
string request_input = 1;
JsonPath response_field = 2;
int32 default_value = 3;
optional int32 default_value = 3;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be optional right?

Comment on lines +542 to +545
if old != nil && new == nil {
return new
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if old != nil && new == nil {
return new
}

This is redundant as we'd end up returning new anyways

@davenewza davenewza merged commit a7ddfa9 into main May 27, 2025
10 checks passed
@davenewza davenewza deleted the fix/unnecessary-tool-writes branch May 27, 2025 10:43
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
0