Skip to content

No worktree created despite isolationMode: worktree #4694

Description

@OneStepAt4time

Description

Sessions are created with isolationMode: "worktree" and isolationPolicy: "respect-cc", but no git worktree is created. CC works directly in the workspace directory.

Evidence

{
  "isolationMode": "worktree",
  "isolationPolicy": "respect-cc",
  "workDir": "/home/bubuntu/.openclaw/workspace-hermes"
}

git worktree list shows only the main working copy — no worktree was created for the session.

Impact

  • Uncommitted changes from CC sessions pollute the workspace
  • No isolation between concurrent sessions targeting the same repo
  • Branch operations from CC affect the main workspace

Note

The respect-cc policy may intentionally defer worktree creation to Claude Code itself. If so, CC is not creating one either. This may need clarification — should Aegis create the worktree, or should CC?

Found during dogfooding 2026-06-13.

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

    P2backendbugSomething isn't workingreleasedIncluded in a published release

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions