Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

improvement: add disable-model-invocation configuration UI for Slash Command export#443

Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
improvement/add-disable-model-invocation-optionbreaking-brake/cc-wf-studio:improvement/add-disable-model-invocation-optionCopy head branch name to clipboard
Jan 13, 2026
Merged

improvement: add disable-model-invocation configuration UI for Slash Command export#443
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
improvement/add-disable-model-invocation-optionbreaking-brake/cc-wf-studio:improvement/add-disable-model-invocation-optionCopy head branch name to clipboard

Conversation

@breaking-brake
Copy link
Copy Markdown
Owner

Problem

Currently, there is no way to configure the disable-model-invocation option in the Slash Command export settings. This option prevents the Skill tool from invoking the command, which is useful for controlling automated command execution.

Current Behavior

  1. User creates a workflow and wants to prevent Skill tool invocation
  2. ❌ No UI option available to set disable-model-invocation
  3. ❌ The setting is not exported to the frontmatter

Expected Behavior

  1. User creates a workflow and wants to prevent Skill tool invocation
  2. ✅ User can set Disable Model Invocation to true via submenu in SlashCommandOptions dropdown
  3. ✅ The setting is exported as disable-model-invocation: true in frontmatter

Solution

Added disableModelInvocation configuration option to SlashCommandOptions with full UI support, serialization, and export functionality.

Changes

File: src/shared/types/workflow-definition.ts

  • Added @see link to Claude Code docs in SlashCommandOptions interface JSDoc
  • Added disableModelInvocation?: boolean property with documentation

File: src/extension/services/export-service.ts

  • Added frontmatter output for disable-model-invocation: true when enabled

File: src/webview/src/stores/workflow-store.ts

  • Added setSlashCommandDisableModelInvocation action

File: src/webview/src/components/toolbar/SlashCommandOptionsDropdown.tsx

  • Added submenu UI with default / true radio options
  • Used Shield icon to represent protection/prevention concept
  • Added translated tooltip description

File: src/webview/src/components/Toolbar.tsx

  • Connected disableModelInvocation state to dropdown component
  • Added loading support in LOAD_WORKFLOW handler

File: src/webview/src/services/workflow-service.ts

  • Added disableModelInvocation to serialization logic
  • Added to hasNonDefaultOptions check

Files: Translation files (en.ts, ja.ts, ko.ts, zh-CN.ts, zh-TW.ts)

  • Added toolbar.disableModelInvocation.tooltip translations

Impact

  • UX: Users can now configure disable-model-invocation setting via submenu UI
  • No breaking changes
  • Follows existing UI patterns (similar to Context submenu)

Testing

  • Code quality checks passed (npm run format && npm run lint && npm run check)
  • Build succeeded (npm run build)
  • Manual E2E testing: Setting UI, export to MD file, save/load workflow

Closes #426

🤖 Generated with Claude Code

…Command export

- Added disableModelInvocation property to SlashCommandOptions type
- Added submenu UI with default/true options and Shield icon
- Added translations for all 5 languages
- Added serialization and export support

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@breaking-brake breaking-brake merged commit 8eac0a0 into main Jan 13, 2026
3 checks passed
@breaking-brake breaking-brake deleted the improvement/add-disable-model-invocation-option branch January 13, 2026 00:46
@breaking-brake breaking-brake mentioned this pull request Jan 13, 2026
braking-brake-semantic-release Bot pushed a commit that referenced this pull request Jan 13, 2026
## [3.14.3](v3.14.2...v3.14.3) (2026-01-13)

### Bug Fixes

* ensure consistent left-side submenu positioning ([#434](#434)) ([0679f7d](0679f7d)), closes [#433](#433)

### Improvements

* add disable-model-invocation configuration UI for Slash Command export ([#443](#443)) ([8eac0a0](8eac0a0))
* reorganize SlashCommandOptions dropdown and add help link ([#444](#444)) ([d39a702](d39a702))
@braking-brake-semantic-release
Copy link
Copy Markdown

🎉 This PR is included in version 3.14.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add disable-model-invocation configuration to slashCommandOptions

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.