Skip to content

Orchestration workers share the project checkout — no worktree isolation #30

Closed

Description

@currentbits

`orchServer.thread_fork` (electron/orchServer.js:187-206) calls `services.forkThread` (electron/services.js:499-559), which copies provider/model/permissionMode but never `worktreePath` and never sets `pendingWorktree`; runner.js:1170 then resolves cwd to `thread.worktreePath || project.path`. So N parallel workers all edit the main working copy.

BRAINSTORM.md names this ("Isolation by default", "merge hell factory") as the #1 agent disaster to prevent. Workers forked for orchestration should get their own worktree by default.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions