Skip to content

fix: instances create — flag forwarding, TTY check, complete config#212

Merged
0xmrpeter merged 4 commits intoOpen-ACP:developfrom
lngdao:fix/instances-create-flags
Apr 6, 2026
Merged

fix: instances create — flag forwarding, TTY check, complete config#212
0xmrpeter merged 4 commits intoOpen-ACP:developfrom
lngdao:fix/instances-create-flags

Conversation

@lngdao
Copy link
Copy Markdown
Contributor

@lngdao lngdao commented Apr 6, 2026

Summary

Fixes openacp instances create when invoked programmatically (e.g. from OpenACP Desktop app via Tauri).

  • Forward --dir/--from/--name flags: top-level extractInstanceFlags strips these before passing args to cmdInstances, so cmdInstancesCreate never received them. Re-inject parent flags into subArgs.
  • Skip update prompt when no TTY: checkAndPromptUpdate now checks process.stdin.isTTY to avoid blocking when CLI is invoked without interactive stdin.
  • Complete config on create: generated config.json now includes channels.sse.enabled, defaultAgent (defaults to "claude"), workspace.baseDir, and instanceName — matching what openacp setup produces.

Test plan

  • openacp instances create --dir /tmp/test --no-interactive --json succeeds
  • openacp start --dir /tmp/test --daemon starts without config validation errors
  • Desktop app "Create new" workspace flow works end-to-end
  • No interactive update prompt when piped/spawned

lngdao added 4 commits April 6, 2026 16:46
Top-level extractInstanceFlags strips these flags before passing args
to cmdInstances, so cmdInstancesCreate never receives them. Re-inject
parent flags into subArgs when dispatching to create subcommand.
Prevents interactive update prompt from blocking when CLI is invoked
programmatically (e.g. from Tauri app via invoke_cli).
@0xmrpeter 0xmrpeter merged commit 39037f5 into Open-ACP:develop Apr 6, 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