graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
fix: require exact reopen-tab modifiers
yxlyx5b299cfcf914
diff --git a/apps/native/components/site/useDesktopShortcuts.ts b/apps/native/components/site/useDesktopShortcuts.tsindex 74985c36..8d92f6f2 100644--- a/apps/native/components/site/useDesktopShortcuts.ts+++ b/apps/native/components/site/useDesktopShortcuts.ts@@ -62,7 +62,7 @@ export function useDesktopShortcuts(actions: Actions) {if(k==='j'&&!e.shiftKey)handled=dispatch('terminal');else if(k==='l'&&!e.shiftKey)handled=dispatch('focus-prompt');else if(k==='n'&&!e.shiftKey)handled=dispatch('new');- else if(k==='t')handled=dispatch(e.shiftKey?'reopen':'new');+ else if(k==='t'&&!(e.metaKey&&e.ctrlKey))handled=dispatch(e.shiftKey?'reopen':'new');else if(k==='w'&&!e.shiftKey)handled=dispatch('close');else if(k==='d')handled=dispatch(e.shiftKey?'split-down':'split-right');else if(k==='enter'&&e.shiftKey)handled=dispatch('split-zoom');diff --git a/apps/native/electron/navigation-keyboard-visual.cjs b/apps/native/electron/navigation-keyboard-visual.cjsindex 10dd23d9..f4d36d3b 100644--- a/apps/native/electron/navigation-keyboard-visual.cjs+++ b/apps/native/electron/navigation-keyboard-visual.cjs@@ -23,6 +23,13 @@ async function runNavigationKeyboard({win, origin}) {await wait(`!!document.querySelector('[data-workspace-ready="true"] textarea[aria-label="Prompt"]')`);wc.send('desktop-action', 'new');await wait(`document.querySelectorAll('[aria-label="Close tab"]').length===2`);+ wc.send('desktop-action', 'close');+ await wait(`document.querySelectorAll('[aria-label="Close tab"]').length===1`);+ await key('T', ['meta', 'control', 'shift']);+ assert.equal((await tabs()).length, 1, 'Cmd+Control+Shift+T does not reopen a closed tab');+ await key('T', ['meta', 'shift']);+ await wait(`document.querySelectorAll('[aria-label="Close tab"]').length===2`);+ assert.equal((await tabs()).length, 2, 'Cmd+Shift+T reopens the most recently closed tab');const originalTabs = await tabs();const opener = 'button[aria-label="Open folder…"]';await click(opener);