Files
aryx/src/main/persistence/appPaths.ts
T
David KayaandCopilot 147b437e36 fix: isolate scratchpad session working directories
Give each scratchpad session its own working directory, migrate existing scratchpad sessions on workspace load, and route sidecar turns through the session-specific cwd. Add regression coverage for create, duplicate, delete, and migration flows, and document the new persistence model.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-28 14:31:39 +01:00

17 lines
445 B
TypeScript

import electron from 'electron';
import { join } from 'node:path';
const { app } = electron;
export function getWorkspaceFilePath(): string {
return join(app.getPath('userData'), 'workspace.json');
}
export function getScratchpadDirectoryPath(): string {
return join(app.getPath('userData'), 'scratchpad');
}
export function getScratchpadSessionPath(sessionId: string): string {
return join(getScratchpadDirectoryPath(), sessionId);
}