Skip to content

fix: set workspace.baseDir to target directory on instances create/clone#215

Merged
0xmrpeter merged 1 commit intoOpen-ACP:developfrom
lngdao:fix/workspace-basedir
Apr 7, 2026
Merged

fix: set workspace.baseDir to target directory on instances create/clone#215
0xmrpeter merged 1 commit intoOpen-ACP:developfrom
lngdao:fix/workspace-basedir

Conversation

@lngdao
Copy link
Copy Markdown
Contributor

@lngdao lngdao commented Apr 7, 2026

Summary

When creating or cloning an instance via openacp instances create --dir <path>, the workspace.baseDir in the generated config was hardcoded to ~/openacp-workspace. This caused agent sessions to operate in the wrong directory instead of the target folder.

Fix: Set workspace.baseDir to resolvedDir (the --dir path) for both clone and new instance flows.

Test plan

  • openacp instances create --dir /tmp/test --no-interactive --json → config has workspace.baseDir: "/tmp/test"
  • Clone from existing instance → new config has baseDir pointing to target directory
  • Agent session in new workspace operates in correct directory

@0xmrpeter 0xmrpeter merged commit 2e01b28 into Open-ACP:develop Apr 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants