Merge pull request #3042 from YuchenLiang00/fix/context-command-detail-missing

fix(cli): add 'detail' subcommand to /context command
This commit is contained in:
pomelo 2026-04-10 12:12:07 +08:00 committed by GitHub
commit cf81ac47ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 0 deletions

View file

@ -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');
},
},
],
};