fix(cli): add folder trust check for /note and fix subcommand collision

This commit is contained in:
Sehoon Shon
2026-04-21 16:56:01 -07:00
parent ad98bedc6e
commit 2504a264db
2 changed files with 4 additions and 2 deletions
@@ -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');