Skip to content

feat(workspace): name orchestrator worktree orchestrator/{prefix}-orchestrator#191

Merged
harshitsinghbhandari merged 3 commits into
mainfrom
feat/orchestrator-worktree-naming
Jun 11, 2026
Merged

feat(workspace): name orchestrator worktree orchestrator/{prefix}-orchestrator#191
harshitsinghbhandari merged 3 commits into
mainfrom
feat/orchestrator-worktree-naming

Conversation

@harshitsinghbhandari

Copy link
Copy Markdown
Collaborator

Summary

  • Adds Kind and SessionPrefix fields to ports.WorkspaceConfig so the workspace adapter knows the session role and project display prefix
  • Updates gitworktree.managedPath to produce {managedRoot}/{projectID}/orchestrator/{prefix}-orchestrator for orchestrator sessions, keeping {managedRoot}/{projectID}/{sessionID} for workers
  • Passes Kind and SessionPrefix from session manager's Spawn and Restore paths; Restore now loads the project before calling workspace.Restore so the prefix is available
  • Adds resolvedSessionPrefix helper: uses explicit SessionPrefix when set, falls back to first 12 chars of project ID
  • New test TestOrchestratorManagedPath covers explicit prefix, derived prefix, and short project ID cases

Closes #184

Test plan

  • cd backend && go build ./... passes
  • cd backend && go test -race ./... passes (1268 tests)
  • Orchestrator spawns land under worktrees/{projectID}/orchestrator/{prefix}-orchestrator
  • Worker spawns continue to land under worktrees/{projectID}/{sessionID}

🤖 Generated with Claude Code

…hestrator

Orchestrator sessions now get a dedicated worktree path under
orchestrator/{prefix}-orchestrator within the project directory,
matching the pattern described in issue #184.

Workers retain the existing {sessionID} naming. The session prefix
falls back to the first 12 chars of the project ID when no explicit
SessionPrefix is configured.

Closes #184

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

harshitsinghbhandari has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

harshitsinghbhandari has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

harshitsinghbhandari has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@harshitsinghbhandari harshitsinghbhandari merged commit 53ca812 into main Jun 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Orchestrator worktree should be named orchestrator/{prefix}-orchestrator

1 participant