qwen-code/packages
AlexHuang 74ebb10e8b
fix(cli): prefer command name match over alias match regardless of recentScore (#6504)
In compareRankedCommandMatches, recentScore was evaluated before nameVsAlias in the sort chain, causing recently-used alias matches to shadow name matches at the same matchStrength level.

The fix swaps the order so nameVsAlias is checked before recentScore, ensuring that a command matched by its primary name always ranks above an alias match, with recency acting as a tie-breaker only within the same match-type bucket.

Adds a regression test that gives an alias match a recentScore and verifies the name match still ranks first.

Signed-off-by: Alex <alex.tech.lab@outlook.com>
2026-07-08 16:34:51 +00:00
..
acp-bridge chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
audio-capture chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
channels chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
chrome-extension chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
cli fix(cli): prefer command name match over alias match regardless of recentScore (#6504) 2026-07-08 16:34:51 +00:00
core fix(session): detect and mark broken history chains instead of silently truncating (#6502) 2026-07-08 16:02:58 +00:00
cua-driver fix(cua-driver): migrate Windows scripts + README rewrite (#6515) 2026-07-08 06:07:11 +00:00
desktop fix(desktop): preserve glued automation history records (#6344) 2026-07-05 23:53:49 +00:00
mobile-mcp chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
sdk-java fix(core): Align MCP OAuth guidance and docs (#5589) 2026-06-24 07:09:53 +08:00
sdk-python doc[sdk-python] Expand Python SDK usage documentation (#3995) 2026-05-12 15:27:00 +08:00
sdk-typescript feat(cli): Enable multi-workspace session routing (#6511) 2026-07-08 10:06:31 +00:00
vscode-ide-companion chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
web-shell chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
web-templates chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
webui chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
zed-extension chore(deps): upgrade ink 6.2.3 → 7.0.2 + bump Node engine to 22 (#3860) 2026-05-11 17:29:50 +08:00