Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions factory/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,24 +491,7 @@ class CycleState(BaseModel):

cycle_id: str
started_at: datetime
mode: Literal[
"build",
"create",
"deep-qa",
"deep-research",
"design",
"discover",
"founder",
"improve",
"meta",
"parallel-improve",
"qa",
"refine",
"research",
"review",
"study",
"swebench",
]
mode: str
initial_prompt: str = ""
respawns: int = 0
runner_name: str | None = None
Expand Down
10 changes: 10 additions & 0 deletions factory/worktree.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ def create_worktree(
if backlog_src.exists():
shutil.copy2(backlog_src, wt_factory / "strategy" / "backlog.md")

# Copy remaining plugin-created subdirectories not already handled.
_handled = set(_SHARED_SYMLINK_ENTRIES) | set(_COPY_ENTRIES)
if factory_dir.is_dir():
for child in factory_dir.iterdir():
if child.name in _handled or not child.is_dir():
continue
dst = wt_factory / child.name
if not dst.exists():
shutil.copytree(child, dst)

log.info("worktree_created", branch=branch, path=str(wt_dir))

try:
Expand Down
Loading