Skip to content

Commit e353e83

Browse files
committed
Fix: preserve ALL existing non-.opencode files in coexistence mode
Previously only ~20 shared paths were preserved. Now in coexistence mode (claude_ccgs_coexist, codex_ccgs_coexist, multi_runtime), ALL existing non-.opencode/ files at the target are preserved — including project- specific files like README.md, LICENSE, .gitignore, and .github/*. Only .opencode/ files (our exclusive runtime space) are written/updated, plus AGENTS.md (marker-block splice for new files, append for existing).
1 parent 316b0c2 commit e353e83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.opencode/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ for entry in data.get('files', []):
262262
skipped_foreign += 1
263263
continue
264264
265-
# Coexistence: preserve shared paths that already exist
266-
if is_coexist_mode(mode) and is_shared(rel) and os.path.exists(dst):
265+
# Coexistence: preserve ALL existing non-.opencode files (not just shared paths)
266+
if is_coexist_mode(mode) and os.path.exists(dst) and not rel.startswith('.opencode/'):
267267
preserved_list.append(rel)
268268
preserved += 1
269269
continue

0 commit comments

Comments
 (0)