Skip to content

Commit b86d9f8

Browse files
centdixclaude
andcommitted
refactor: remove legacy both agent mode
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c59db04 commit b86d9f8

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

backend/src/domain/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export type AgentKind = "claude" | "codex";
22
export type AgentId = string;
3-
export type CreateWorktreeAgentSelection = AgentId | "both";
43
export type RuntimeKind = "host" | "docker";
54

65
export interface CustomAgentConfig {

backend/src/services/lifecycle-service.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
import { expandTemplate, getDefaultProfileName, isDockerProfile, type DockerProfileConfig } from "../adapters/config";
1616
import { type DockerGateway } from "../adapters/docker";
1717
import { buildProjectSessionName, buildWorktreeWindowName, type TmuxGateway } from "../adapters/tmux";
18-
import type { AgentId, CreateWorktreeAgentSelection, ProfileConfig, ProjectConfig, RuntimeKind } from "../domain/config";
18+
import type { AgentId, ProfileConfig, ProjectConfig, RuntimeKind } from "../domain/config";
1919
import type { WorktreeCreationPhase, WorktreeMeta } from "../domain/model";
2020
import { allocateServicePorts, isValidBranchName, isValidEnvKey } from "../domain/policies";
2121
import type { AutoNameGenerator } from "./auto-name-service";
@@ -143,7 +143,7 @@ export interface CreateLifecycleWorktreeInput {
143143

144144
export interface CreateLifecycleWorktreesInput extends Omit<CreateLifecycleWorktreeInput, "agent"> {
145145
agents?: AgentId[];
146-
agent?: CreateWorktreeAgentSelection;
146+
agent?: AgentId;
147147
}
148148

149149
export interface CreateLifecycleWorktreesResult {
@@ -445,9 +445,7 @@ export class LifecycleService {
445445
private resolveSelectedAgents(input: CreateLifecycleWorktreesInput): AgentId[] {
446446
const selectedAgents = input.agents && input.agents.length > 0
447447
? input.agents
448-
: input.agent === "both"
449-
? ["claude", "codex"]
450-
: [input.agent ?? this.deps.config.workspace.defaultAgent];
448+
: [input.agent ?? this.deps.config.workspace.defaultAgent];
451449

452450
const dedupedAgentIds = [...new Set(selectedAgents.map((agent) => agent.trim()).filter((agent) => agent.length > 0))];
453451
if (dedupedAgentIds.length === 0) {

0 commit comments

Comments
 (0)