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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user