Skip to content

The VS Code of video editing, built for agents.

TypeScript

feat: add palette option to command for better control over visibility in UI

konstantin-paulus41ea0e26ab6e
diff --git a/apps/web/src/components/commands/window.tsx b/apps/web/src/components/commands/window.tsx
index 4cb81936..ad36ecc0 100644
--- a/apps/web/src/components/commands/window.tsx
+++ b/apps/web/src/components/commands/window.tsx
@@ -85,6 +85,7 @@ export function WindowCommands() {
icon: "plus-add",
keywords: ["new thread", "conversation", "agent", "assistant", "claude"],
shortcut: ["⇧", "⌘", "L"],
+ palette: false,
run: newChat,
});
diff --git a/apps/web/src/context/commands.tsx b/apps/web/src/context/commands.tsx
index 3a43ffdc..f6478c82 100644
--- a/apps/web/src/context/commands.tsx
+++ b/apps/web/src/context/commands.tsx
@@ -113,7 +113,7 @@ export type Command = CommandAction & {
available?(): boolean;
/**
* False keeps it out of the palette and its recents, for a command only a
- * menu lists: the one that opens the palette itself.
+ * menu or shortcut reaches, like the one that opens the palette itself.
*/
palette?: false;
};