Skip to content

Comments

refactor: use annotations to determine if tool should be included#39

Merged
cgrinds merged 1 commit intomainfrom
cbg-ref
Feb 20, 2026
Merged

refactor: use annotations to determine if tool should be included#39
cgrinds merged 1 commit intomainfrom
cbg-ref

Conversation

@cgrinds
Copy link
Collaborator

@cgrinds cgrinds commented Feb 20, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 20, 2026 14:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the tool registration logic in read-only mode to check the ReadOnlyHint field directly instead of comparing the entire annotation struct for equality. This makes the code more semantic, maintainable, and resilient to future changes.

Changes:

  • Updated addTool function to check annotations.ReadOnlyHint field instead of comparing against readOnlyAnnotation struct

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cgrinds cgrinds merged commit 3f817fb into main Feb 20, 2026
20 checks passed
@cgrinds cgrinds deleted the cbg-ref branch February 20, 2026 15:00
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