Skip to content

Conversation

continue[bot]
Copy link
Contributor

@continue continue bot commented Sep 22, 2025

Problem

When highlighting code and pressing cmd+I to start Edit mode, pressing / only shows "Explore prompts" as if there are no prompts available. However, in Chat mode, pressing / correctly shows all available prompts and slash commands.

Solution

Fixed the slash command filtering logic in Edit mode to allow prompt-based commands while still filtering out inappropriate built-in legacy commands.

Changes:

  • Modified ContinueInputBox.tsx: Added whitelist of allowed slash command sources for Edit mode
  • Modified selector: Extended to include source property in slash command data
  • Extended types: Added optional source property to ComboBoxItem interface

Allowed sources in Edit mode:

  • yaml-prompt-block - YAML prompt blocks
  • mcp-prompt - MCP server prompts
  • prompt-file-v1 & prompt-file-v2 - Prompt files
  • invokable-rule - Invokable rules

Filtered out in Edit mode:

  • built-in-legacy commands like /commit, /share, etc.

Result

Edit mode now properly shows relevant prompts when pressing / instead of just "Explore prompts", making it consistent with Chat mode behavior for prompt-based slash commands.

Testing

Verified the filtering logic works correctly with a test script that simulates the filtering behavior for different slash command sources.


Summary by cubic

Fixes Edit mode slash command filtering so prompt-based commands appear when pressing '/', matching Chat mode. Whitelists prompt sources and keeps legacy built-ins hidden.

  • Bug Fixes
    • Filter slash commands in Edit mode by source in ContinueInputBox.tsx.
    • Add optional source to ComboBoxItem and include source in selector output.
    • Allowed sources: yaml-prompt-block, mcp-prompt, prompt-file-v1, prompt-file-v2, invokable-rule.

- Allow prompt-based slash commands in Edit mode instead of filtering all
- Add whitelist for allowed sources: yaml-prompt-block, mcp-prompt, prompt-file-v1/v2, invokable-rule
- Extend ComboBoxItem interface to include source property
- Update selector to include source in slash command data

Fixes issue where Edit mode only showed 'Explore prompts' when pressing '/' instead of showing actual prompts like Chat mode

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
@continue continue bot requested a review from a team as a code owner September 22, 2025 21:30
@continue continue bot requested review from tingwai and removed request for a team September 22, 2025 21:30
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 22, 2025
Copy link

⚠️ PR Title Format

Your PR title doesn't follow the conventional commit format, but this won't block your PR from being merged. We recommend using this format for better project organization.

Expected Format:

<type>[optional scope]: <description>

Examples:

  • feat: add changelog generation support
  • fix: resolve login redirect issue
  • docs: update README with new instructions
  • chore: update dependencies

Valid Types:

feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

This helps with:

  • 📝 Automatic changelog generation
  • 🚀 Automated semantic versioning
  • 📊 Better project history tracking

This is a non-blocking warning - your PR can still be merged without fixing this.

Copy link
Collaborator

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

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

Can support all but built-in-legacy I think

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Sep 22, 2025
@RomneyDa
Copy link
Collaborator

RomneyDa commented Sep 22, 2025

@continuedev fix this to make edit support all but built-in-legacy slash commands and run npm run format

@TyDunn
Copy link
Contributor

TyDunn commented Sep 22, 2025

closing in favor of #7907

@TyDunn TyDunn closed this Sep 22, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Sep 22, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Sep 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants