refactor: change open recipe in new window to pass recipe id (#7392)

This commit is contained in:
Zane
2026-02-23 07:24:00 -08:00
committed by GitHub
parent 33af64406b
commit ffed9dfc4f
12 changed files with 162 additions and 198 deletions
@@ -75,7 +75,7 @@ const ParameterInputModal: React.FC<ParameterInputModalProps> = ({
if (option === 'new-chat') {
try {
const workingDir = getInitialWorkingDir();
window.electron.createChatWindow(undefined, workingDir);
window.electron.createChatWindow({ dir: workingDir });
window.electron.hideWindow();
} catch (error) {
console.error('Error creating new window:', error);