Improvement: AI editing chat enhancements with allowed tools UI and strict tool restrictions#299
Merged
breaking-brake merged 2 commits intomainbreaking-brake/cc-wf-studio:mainfrom Dec 20, 2025
improvement/allowed-tools-uibreaking-brake/cc-wf-studio:improvement/allowed-tools-uiCopy head branch name to clipboard
Merged
Improvement: AI editing chat enhancements with allowed tools UI and strict tool restrictions#299breaking-brake merged 2 commits intomainbreaking-brake/cc-wf-studio:mainfrom improvement/allowed-tools-uibreaking-brake/cc-wf-studio:improvement/allowed-tools-uiCopy head branch name to clipboard
breaking-brake merged 2 commits intomainbreaking-brake/cc-wf-studio:mainfrom
improvement/allowed-tools-uibreaking-brake/cc-wf-studio:improvement/allowed-tools-uiCopy head branch name to clipboard
Conversation
- Added "Allowed Tools" menu to Settings dropdown with all 18 Claude Code CLI tools - Default selection: Read, Grep, Glob, WebSearch, WebFetch (read-only for security) - Settings persist to localStorage - Tools passed to CLI via --allowed-tools flag - Menu stays open for multiple selections
…ict tool restrictions - Enforce structured JSON output for AI clarifications in prompts - Fix clarification message display to show complete content - Remove legacy English-only pattern matching functions - Add --tools flag with --allowed-tools for strict whitelist restriction - Fix dropdown menu to stay open for continuous tool selection - Add TodoWrite to default allowed tools for progress tracking
Merged
github-actions Bot
added a commit
that referenced
this pull request
Dec 20, 2025
## [3.8.4](v3.8.3...v3.8.4) (2025-12-20) ### Improvements * add tool execution loading animation in AI chat ([#298](#298)) ([5615efe](5615efe)) * AI editing chat enhancements with allowed tools UI and strict tool restrictions ([#299](#299)) ([d72f241](d72f241)) * implement TOON format for AI prompts to reduce token consumption ([#297](#297)) ([64fe228](64fe228))
Contributor
|
🎉 This PR is included in version 3.8.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Problem
AI editing chat had several issues that affected user experience and safety:
Solution
Part 1: Allowed Tools UI (#335700e)
Added a comprehensive UI for managing allowed Claude Code CLI tools:
Part 2: Prompt & Tool Restrictions (#d44d7c7)
Enhanced prompt engineering and enforced strict tool restrictions:
Prompt Improvements:
Strict Tool Restrictions:
--toolsand--allowed-toolsflags simultaneously--tools: Whitelist restriction (only these tools available, blocks others completely)--allowed-tools: No permission prompt for these toolsCode Cleanup:
isClarificationMessage,extractClarificationMessage)UX Improvements:
onCheckedChangetoonSelectwithevent.preventDefault())Changes
Modified Files (6 files)
src/extension/services/claude-code-service.ts
--toolsflag alongside--allowed-toolsfor strict whitelist restrictionsrc/extension/services/refinement-prompt-builder.ts
src/extension/services/refinement-service.ts
src/webview/src/components/chat/SettingsDropdown.tsx
src/webview/src/components/dialogs/RefinementChatPanel.tsx
src/webview/src/stores/refinement-store.ts
Impact
User Experience:
Security:
Code Quality:
Testing
Notes