Compare commits

...

1 Commits

Author SHA1 Message Date
Saoud Rizwan c8b6b2fd56 fix(cli): avoid option right fork shortcut 2026-05-18 18:42:45 -07:00
2 changed files with 24 additions and 1 deletions
@@ -87,7 +87,7 @@ const ACTION_ITEMS: Array<{
{
action: "fork",
label: "Create Session Fork",
shortcut: "Opt+F",
shortcut: "Opt+R",
description: "Branch the current conversation into a new session",
keywords: ["fork", "session", "branch"],
requiresFork: true,
@@ -114,4 +114,27 @@ describe("command palette", () => {
})?.label,
).toBe("Open Help");
});
it("keeps option right available for word navigation", () => {
const items = buildCommandPaletteItems({
canForkSession: true,
});
expect(
findCommandPaletteShortcut(items, {
name: "f",
meta: false,
option: true,
shift: false,
}),
).toBeUndefined();
expect(
findCommandPaletteShortcut(items, {
name: "r",
meta: false,
option: true,
shift: false,
})?.label,
).toBe("Create Session Fork");
});
});