From 6894c8bed45db31bf251e5aa3e85334fb90dd0d2 Mon Sep 17 00:00:00 2001 From: uroma Date: Tue, 20 Jan 2026 05:59:22 +0000 Subject: [PATCH] fix: remove process.env.HOME from browser code process.env.HOME is a Node.js environment variable that doesn't exist in browser JavaScript, causing attach to fail. Changed to hardcoded '/home/uroma' path for session creation. Co-Authored-By: Claude Sonnet 4.5 --- public/claude-ide/terminal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/claude-ide/terminal.js b/public/claude-ide/terminal.js index 98c40621..8bff8576 100644 --- a/public/claude-ide/terminal.js +++ b/public/claude-ide/terminal.js @@ -1220,7 +1220,7 @@ class TerminalManager { const res = await fetch('/claude/api/claude/sessions', { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ workingDir: process.env.HOME || '/home/uroma' }) + body: JSON.stringify({ workingDir: '/home/uroma' }) }); const data = await res.json();