Skip to content

Commit b06f599

Browse files
fuyongdeclaude
andcommitted
fix: update CommandRegistrar qwen config to Markdown format
extensions.py CommandRegistrar.AGENT_CONFIGS['qwen'] was still set to TOML format, causing `specify extension` to write .toml files into .qwen/commands, conflicting with Qwen Code CLI v0.10.0+ expectations. - Change qwen format from toml to markdown - Change qwen args from {{args}} to $ARGUMENTS - Change qwen extension from .toml to .md - Add test to assert qwen config is Markdown format Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 65f0ac7 commit b06f599

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/specify_cli/extensions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,9 @@ class CommandRegistrar:
692692
},
693693
"qwen": {
694694
"dir": ".qwen/commands",
695-
"format": "toml",
696-
"args": "{{args}}",
697-
"extension": ".toml"
695+
"format": "markdown",
696+
"args": "$ARGUMENTS",
697+
"extension": ".md"
698698
},
699699
"opencode": {
700700
"dir": ".opencode/command",

tests/test_extensions.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,15 @@ def test_codex_agent_config_present(self):
412412
assert "codex" in CommandRegistrar.AGENT_CONFIGS
413413
assert CommandRegistrar.AGENT_CONFIGS["codex"]["dir"] == ".codex/prompts"
414414

415+
def test_qwen_agent_config_is_markdown(self):
416+
"""Qwen should use Markdown format with $ARGUMENTS (not TOML)."""
417+
assert "qwen" in CommandRegistrar.AGENT_CONFIGS
418+
cfg = CommandRegistrar.AGENT_CONFIGS["qwen"]
419+
assert cfg["dir"] == ".qwen/commands"
420+
assert cfg["format"] == "markdown"
421+
assert cfg["args"] == "$ARGUMENTS"
422+
assert cfg["extension"] == ".md"
423+
415424
def test_parse_frontmatter_valid(self):
416425
"""Test parsing valid YAML frontmatter."""
417426
content = """---

0 commit comments

Comments
 (0)