Skip to content

feat(tool-config): add requiresApproval helper and ALWAYS_AUTO policy - #783

Merged
haiphucnguyen merged 2 commits into
mainfrom
feature/improvements
Oct 26, 2026
Merged

haiphucnguyen merged 2 commits into
mainfrom
feature/improvements

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

Summary

  • Introduce requiresApproval() for ToolConfig to expose effective approval state
  • Add ToolApprovalPolicy.ALWAYS_AUTO to override category default
  • Update UI dialogs to show new approval options
  • Add i18n strings for new policy across all languages
  • Add comprehensive tests for approval policy resolution and chat client behavior

Related Issue(s)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

- Introduce `requiresApproval()` for ToolConfig to expose effective approval state
- Add `ToolApprovalPolicy.ALWAYS_AUTO` to override category default
- Update UI dialogs to show new approval options
- Add i18n strings for new policy across all languages
- Add comprehensive tests for approval policy resolution and chat client behavior
Copilot AI balanced review requested due to automatic review settings October 26, 2026 20:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@haiphucnguyen
haiphucnguyen merged commit 76d3874 into main Oct 26, 2026
13 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/improvements branch October 26, 2026 21:05
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