Skip to content
Prev Previous commit
Next Next commit
docs(cli): say /copy N counts AI messages with text
Reword the /copy description (en, zh, zh-TW, ca), the commands table row, and the out-of-range message so they all say N counts only AI messages with text.
  • Loading branch information
burrows99 committed Nov 16, 2026
commit 612c3367a190b53e40029183799b8ed93d7f5b46
2 changes: 1 addition & 1 deletion docs/users/features/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ Commands for obtaining information and performing system settings.
| `/insight` | Generate programming insights from chat history | `/insight` |
| `/setup-github` | Set up GitHub Actions | `/setup-github` |
| `/bug` | Submit issue about Qwen Code | `/bug Button click unresponsive` |
| `/copy` | Copy to clipboard: reply (Nth-last), code (by lang), LaTeX, or Mermaid | `/copy`, `/copy 2`, `/copy python`, `/copy latex`, `/copy mermaid` |
| `/copy` | Copy to clipboard: reply (Nth-last with text), code (by lang), LaTeX, or Mermaid | `/copy`, `/copy 2`, `/copy python`, `/copy latex`, `/copy mermaid` |
| `/quit` | Exit Qwen Code immediately | `/quit` or `/exit` |

> [!warning]
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -2525,8 +2525,8 @@ export default {
'Mou aquesta sessió a un directori de treball nou',
'Fast context compression without AI. Strips old tool outputs and thinking parts.':
"Compressió ràpida del context sense IA. Elimina sortides d'eines antigues i parts de pensament.",
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest message, index = block number':
'Copia al porta-retalls: resposta, codi (per llenguatge), LaTeX o Mermaid. N = N-èsim missatge més recent, índex = número de bloc',
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest AI message with text, index = block number':
'Copia al porta-retalls: resposta, codi (per llenguatge), LaTeX o Mermaid. N = N-èsim missatge de la IA amb text més recent, índex = número de bloc',
'Show working-tree change stats versus HEAD':
"Mostra les estadístiques de canvis de l'arbre de treball respecte a HEAD",
'Could not determine current working directory.':
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ export default {
'open full Qwen Code documentation in your browser',
'Configuration not available.': 'Configuration not available.',
'Connect an LLM provider': 'Connect an LLM provider',
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest message, index = block number':
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest message, index = block number',
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest AI message with text, index = block number':
Comment thread
burrows99 marked this conversation as resolved.
Resolved
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest AI message with text, index = block number',
'Show working-tree change stats versus HEAD':
'Show working-tree change stats versus HEAD',
'Could not determine current working directory.':
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/zh-TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ export default {
'在瀏覽器中打開完整的 Qwen Code 文檔',
'Configuration not available.': '配置不可用',
'Connect an LLM provider': '連接 LLM 提供商',
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest message, index = block number':
'複製到剪貼簿:AI 回應、程式碼區塊(可依語言篩選)、LaTeX 或 Mermaid。N 為倒數第 N 則訊息,index 為程式碼區塊序號',
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest AI message with text, index = block number':
'複製到剪貼簿:AI 回應、程式碼區塊(可依語言篩選)、LaTeX 或 Mermaid。N 為倒數第 N 則含文字的 AI 訊息,index 為程式碼區塊序號',
'Show working-tree change stats versus HEAD':
'顯示工作區相對 HEAD 的變更統計',
'Could not determine current working directory.': '無法確定當前工作目錄。',
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@ export default {
'在浏览器中打开完整的 Qwen Code 文档',
'Configuration not available.': '配置不可用',
'Connect an LLM provider': '连接 LLM 提供商',
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest message, index = block number':
'复制到剪贴板:AI 回复、代码块(可按语言筛选)、LaTeX 或 Mermaid。N 为倒数第 N 条消息,index 为代码块序号',
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest AI message with text, index = block number':
'复制到剪贴板:AI 回复、代码块(可按语言筛选)、LaTeX 或 Mermaid。N 为倒数第 N 条含文本的 AI 消息,index 为代码块序号',
'Show working-tree change stats versus HEAD':
'显示工作区相对 HEAD 的变更统计',
'Could not determine current working directory.': '无法确定当前工作目录。',
Expand Down
14 changes: 7 additions & 7 deletions packages/cli/src/ui/commands/copyCommand.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ math then literal: $x^2\$$`,
expect(await copyCommand.action(mockContext, '3')).toEqual({
type: 'message',
messageType: 'info',
content: 'Only 0 AI messages in this session.',
content: 'Only 0 AI messages with text in this session.',
});
// `/copy 1` is documented as equivalent to `/copy`.
for (const args of ['', '1']) {
Expand Down Expand Up @@ -998,7 +998,7 @@ math then literal: $x^2\$$`,
expect(await copyCommand.action(mockContext, '2')).toEqual({
type: 'message',
messageType: 'info',
content: 'Only 1 AI message in this session.',
content: 'Only 1 AI message with text in this session.',
});
});

Expand Down Expand Up @@ -1072,7 +1072,7 @@ math then literal: $x^2\$$`,
expect(await copyCommand.action(mockContext, '3')).toEqual({
type: 'message',
messageType: 'info',
content: 'Only 2 AI messages in this session.',
content: 'Only 2 AI messages with text in this session.',
});
});

Expand All @@ -1092,7 +1092,7 @@ math then literal: $x^2\$$`,
expect(result).toEqual({
type: 'message',
messageType: 'info',
content: 'Only 1 AI message in this session.',
content: 'Only 1 AI message with text in this session.',
});
expect(mockCopyToClipboard).not.toHaveBeenCalled();
});
Expand Down Expand Up @@ -1137,7 +1137,7 @@ math then literal: $x^2\$$`,
expect(await copyCommand.action(mockContext, '4')).toEqual({
type: 'message',
messageType: 'info',
content: 'Only 3 AI messages in this session.',
content: 'Only 3 AI messages with text in this session.',
});
});

Expand Down Expand Up @@ -1351,7 +1351,7 @@ math then literal: $x^2\$$`,
expect(result).toEqual({
type: 'message',
messageType: 'info',
content: 'Only 1 AI message in this session.',
content: 'Only 1 AI message with text in this session.',
});
expect(mockCopyToClipboard).not.toHaveBeenCalled();
});
Expand All @@ -1370,7 +1370,7 @@ math then literal: $x^2\$$`,
expect(result).toEqual({
type: 'message',
messageType: 'info',
content: 'Only 3 AI messages in this session.',
content: 'Only 3 AI messages with text in this session.',
});
expect(mockCopyToClipboard).not.toHaveBeenCalled();
});
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/ui/commands/copyCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export const copyCommand: SlashCommand = {
name: 'copy',
get description() {
return t(
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest message, index = block number',
'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest AI message with text, index = block number',
);
},
argumentHint: '[N] [<lang>|code|latex|mermaid] [<index>]',
Expand Down Expand Up @@ -418,7 +418,7 @@ export const copyCommand: SlashCommand = {
return {
type: 'message',
messageType: 'info',
content: `Only ${aiMessages.length} ${turnLabel} in this session.`,
content: `Only ${aiMessages.length} ${turnLabel} with text in this session.`,
};
}
selectedAiMessage = aiMessages[aiMessages.length - messageIndex];
Expand Down
Loading