修复工作目录设置问题 - 让Claude Code在项目目录下启动
- 修改 claude-control.js 使用当前工作目录而非固定的Claude-Code-Remote目录 - 现在运行 claude-control --session <project_name> 会在项目目录下启动Claude Code - 解决了之前总是在 /Users/jessytsui/dev/Claude-Code-Remote 下启动的问题 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
0f0c981e33
commit
dc9d4f5a90
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue