mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 23:42:03 +00:00
Merge pull request #3042 from YuchenLiang00/fix/context-command-detail-missing
fix(cli): add 'detail' subcommand to /context command
This commit is contained in:
commit
cf81ac47ff
3 changed files with 16 additions and 0 deletions
|
|
@ -373,4 +373,17 @@ export const contextCommand: SlashCommand = {
|
|||
|
||||
context.ui.addItem(contextUsageItem, Date.now());
|
||||
},
|
||||
subCommands: [
|
||||
{
|
||||
name: 'detail',
|
||||
get description() {
|
||||
return t('Show per-item context usage breakdown.');
|
||||
},
|
||||
kind: CommandKind.BUILT_IN,
|
||||
action: async (context: CommandContext) => {
|
||||
// Delegate to main action with 'detail' arg to show detailed view
|
||||
await contextCommand.action!(context, 'detail');
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue