Skip to content

feat(CommandService): add command filtering configuration options#28

Open
BingqingLyu wants to merge 2 commits into
mainfrom
fork-pr-612-feature.command_setting
Open

feat(CommandService): add command filtering configuration options#28
BingqingLyu wants to merge 2 commits into
mainfrom
fork-pr-612-feature.command_setting

Conversation

@BingqingLyu

@BingqingLyu BingqingLyu commented Apr 27, 2026

Copy link
Copy Markdown
Owner

TLDR

This commit adds a new configuration option Settings to the CommandService, allowing command filtering based on core commands and excluded commands settings. Relevant tests and configuration patterns have also been updated.

Dive Deeper

In some use cases, for example, as an SRE installing qwen-code on a server terminal as a cli-agent (not for coding purposes), it is expected that when developers use this agent, the command usage scope can be more focused and manageable. For instance, the /bug command is not applicable in this scenario. Through configuration, you can selectively assemble commands when the cli is launched (applicable to built-in/MCP/file instructions).

Reviewer Test Plan

Example 1: Load only specific commands

{
  "coreCommands": ["help", "clear", "quit"]
}

Example 2: Exclude specific commands

{
  "excludeCommands": ["mcp", "extensions"]
}

Example 3: Combination (coreCommands takes priority)

{
  "coreCommands": ["help", "clear", "quit"],
  "excludeCommands": ["quit"]
}

In this case, only help and clear will be loaded since quit is excluded by the coreCommands filter.

Testing Matrix

This PR does not involve changes here.

TomorJM and others added 2 commits September 15, 2025 17:26
This commit adds a new configuration option `Settings` to the `CommandService`, allowing command filtering based on core commands and excluded commands settings. Relevant tests and configuration patterns have also been updated.
@BingqingLyu

BingqingLyu commented May 7, 2026

Copy link
Copy Markdown
Owner Author

Conflict Group 1

This PR shares modified functions with 2 other PR(s): #107, #96.

These PRs should be reviewed as a batch — merging one may affect the others.

Function File Also modified by
serializeHistoryItemForRecording slashCommandProcessor.ts #107, #96
graph LR
    PR28["PR #28"]
    FserializeHistoryItemForRecording_1282["serializeHistoryItemForRecording<br>slashCommandProcessor.ts"]
    PR28 -->|modifies| FserializeHistoryItemForRecording_1282
    PR107["PR #107"]
    PR107 -->|modifies| FserializeHistoryItemForRecording_1282
    PR96["PR #96"]
    PR96 -->|modifies| FserializeHistoryItemForRecording_1282
Loading

Posted by codegraph-ai conflict detection.

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

Labels

conflicting-group-1 Conflicting PR group 1 — review as a batch conflicting-pr Shares at least one cross-PR dependency with other PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants