From dc9d4f5a90221c931967eacb72f8be8074d06ba6 Mon Sep 17 00:00:00 2001 From: panda Date: Tue, 29 Jul 2025 05:44:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=A5=E4=BD=9C=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E8=AE=BE=E7=BD=AE=E9=97=AE=E9=A2=98=20-=20=E8=AE=A9Cl?= =?UTF-8?q?aude=20Code=E5=9C=A8=E9=A1=B9=E7=9B=AE=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E4=B8=8B=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 claude-control.js 使用当前工作目录而非固定的Claude-Code-Remote目录 - 现在运行 claude-control --session 会在项目目录下启动Claude Code - 解决了之前总是在 /Users/jessytsui/dev/Claude-Code-Remote 下启动的问题 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- claude-control.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/claude-control.js b/claude-control.js index 93ef015..5ff6aa2 100644 --- a/claude-control.js +++ b/claude-control.js @@ -162,8 +162,8 @@ class RemoteControlSetup { } createNewSession(resolve) { - // Use Claude-Code-Remote home directory as working directory - const workingDir = this.claudeCodeRemoteHome; + // Use current working directory as working directory for Claude session + const workingDir = process.cwd(); const command = `tmux new-session -d -s ${this.sessionName} -c "${workingDir}" clauderun`; console.log(`🚀 Creating Claude tmux session: ${this.sessionName}`);