Revert "feat: Add /config refresh command" (#5060)

This commit is contained in:
N. Taylor Mullen 2025-07-28 11:13:46 -07:00 committed by GitHub
parent a5ea113a8e
commit 9aef0a8e6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 40 additions and 168 deletions

View file

@ -1,33 +0,0 @@
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {
CommandKind,
SlashCommand,
SlashCommandActionReturn,
} from './types.js';
export const configCommand: SlashCommand = {
name: 'config',
description: 'Commands for interacting with the CLI configuration.',
kind: CommandKind.BUILT_IN,
subCommands: [
{
name: 'refresh',
description: 'Reload settings and extensions from the filesystem.',
kind: CommandKind.BUILT_IN,
action: async (context): Promise<SlashCommandActionReturn> => {
await context.ui.refreshConfig();
return {
type: 'message',
messageType: 'info',
content:
'Configuration, extensions, memory, and tools have been refreshed.',
};
},
},
],
};

View file

@ -59,7 +59,6 @@ export interface CommandContext {
/** Toggles a special display mode. */
toggleCorgiMode: () => void;
toggleVimEnabled: () => Promise<boolean>;
refreshConfig: () => Promise<void>;
};
// Session-specific data
session: {