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 <noreply@anthropic.com>
This commit is contained in:
uroma
2026-01-20 05:59:22 +00:00
Unverified
parent 6f8c7cdefb
commit 6894c8bed4

View File

@@ -1220,7 +1220,7 @@ class TerminalManager {
const res = await fetch('/claude/api/claude/sessions', { const res = await fetch('/claude/api/claude/sessions', {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, 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(); const data = await res.json();