mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
docs: correct --create push behavior (OM-15)
This commit is contained in:
1 parent
dcb50b7e0f
commit
a857f330e2
1 file changed
+1
-1
+1
-1
@@ -193,7 +193,7 @@ When the TUI plugin is installed, these internal child-process variables add a `
|
||||
When the TUI plugin entry is installed, `/ocm-move` is available in local OpenCode sessions. It replaces the Manager repo's working tree with your local one (commits, staged, unstaged, and untracked files; gitignored files on the Manager are preserved). The Manager's current checkout is never switched: if it is on your branch the repo is replaced in place; otherwise your branch goes into a sibling worktree (`<repo>-<branch>`, registered as its own Manager repo), created on demand if it does not exist yet. When multiple Manager repos match, the one already on your branch is chosen; otherwise a select dialog lets you pick the destination. A confirmation dialog gates the move before any push, states where the state will land, and lists any server-side work (uncommitted changes or commits not present locally) that will be discarded there; the push itself is forced. It then exports the active session through the local OpenCode 2 server (`session.export`), rewrites local repo directories and file attachment URIs to the Manager repo directory, imports the session's messages through the Manager proxy (`session.import`), and sends a synthetic reminder (`session.synthetic`) to the remote session (best-effort, never fails the move). The local session is retained. On success you can choose to warp — exit the local TUI and attach to the moved session on the Manager immediately — or keep the local copy with the previous toast behavior.
|
||||
|
||||
- `--force` skips the dirty-working-tree check on `pull` and the safety bail on `push`.
|
||||
- `--create` (on `push`) creates a new Manager repo when no project match is found.
|
||||
- `--create` (on `push`) creates or reuses a Manager repo when no project match is found.
|
||||
- `--yes` skips the interactive create confirmation.
|
||||
|
||||
---
|
||||
|
||||
Reference in new issue
Block a user