Merge branch 'dev' of github.com:rowboatlabs/rowboat into dev

This commit is contained in:
tusharmagar 2026-02-10 17:40:56 +05:30
commit 906ffccb7b
2 changed files with 10 additions and 2 deletions

View file

@ -462,6 +462,9 @@ export function setupIpcHandlers() {
let filePath = args.path;
if (filePath.startsWith('~')) {
filePath = path.join(os.homedir(), filePath.slice(1));
} else if (!path.isAbsolute(filePath)) {
// Workspace-relative path — resolve against ~/.rowboat/
filePath = path.join(os.homedir(), '.rowboat', filePath);
}
const error = await shell.openPath(filePath);
return { error: error || undefined };
@ -470,6 +473,9 @@ export function setupIpcHandlers() {
let filePath = args.path;
if (filePath.startsWith('~')) {
filePath = path.join(os.homedir(), filePath.slice(1));
} else if (!path.isAbsolute(filePath)) {
// Workspace-relative path — resolve against ~/.rowboat/
filePath = path.join(os.homedir(), '.rowboat', filePath);
}
const stat = await fs.stat(filePath);
if (stat.size > 10 * 1024 * 1024) {