mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 22:02:59 -07:00
fix(cli): add folder trust check for /note and fix subcommand collision
This commit is contained in:
@@ -185,8 +185,9 @@ export class BuiltinCommandLoader implements ICommandLoader {
|
||||
: [mcpCommand]),
|
||||
memoryCommand,
|
||||
modelCommand,
|
||||
noteCommand,
|
||||
...(this.config?.getFolderTrust() ? [permissionsCommand] : []),
|
||||
...(this.config?.getFolderTrust()
|
||||
? [permissionsCommand, noteCommand]
|
||||
: []),
|
||||
...(this.config?.isPlanEnabled() ? [planCommand] : []),
|
||||
policiesCommand,
|
||||
privacyCommand,
|
||||
|
||||
@@ -19,6 +19,7 @@ export const noteCommand: SlashCommand = {
|
||||
description: 'View the current workspace notes',
|
||||
kind: CommandKind.BUILT_IN,
|
||||
autoExecute: true,
|
||||
takesArgs: false,
|
||||
action: async () => {
|
||||
const workspaceRoot = process.cwd();
|
||||
const notesFile = path.join(workspaceRoot, 'notes.md');
|
||||
|
||||
Reference in New Issue
Block a user