+ {/* Why: Advanced is a disclosure header, so keep it visually grouped
+ with the content or footer below it while preserving normal spacing
+ from the Agent field above. */}
+
) : null}
void onCreate()}
diff --git a/src/renderer/src/hooks/useComposerState.ts b/src/renderer/src/hooks/useComposerState.ts
index 3eb78acc1d7..586acdab728 100644
--- a/src/renderer/src/hooks/useComposerState.ts
+++ b/src/renderer/src/hooks/useComposerState.ts
@@ -3568,7 +3568,8 @@ export function useComposerState(options: UseComposerStateOptions): UseComposerS
note: trimmedNote,
startupPlan,
quickPrompt,
- quickTelemetry
+ quickTelemetry,
+ ...(createMultiple ? { suppressTerminalFocusOnCompletion: true } : {})
}
// Why: git fetch + `git worktree add` can take 10–15s; holding the modal
diff --git a/src/renderer/src/i18n/locales/en.json b/src/renderer/src/i18n/locales/en.json
index 727b93506a0..8d38895a3df 100644
--- a/src/renderer/src/i18n/locales/en.json
+++ b/src/renderer/src/i18n/locales/en.json
@@ -1049,7 +1049,7 @@
"NewWorkspaceComposerCard": {
"reuseExistingBranch": "Reuse branch",
"reuseExistingBranchHint": "Check out the existing branch instead of creating a new one from it.",
- "createMultiple": "Create another after this",
+ "createMultiple": "Create more",
"cbb47ee0dc": "Only available for local Git projects.",
"d861de981b": "Sparse checkout",
"090cfedeb4": "Write a note",
diff --git a/src/renderer/src/i18n/locales/es.json b/src/renderer/src/i18n/locales/es.json
index dedd3c7b5f4..a5fc87c9330 100644
--- a/src/renderer/src/i18n/locales/es.json
+++ b/src/renderer/src/i18n/locales/es.json
@@ -1103,7 +1103,7 @@
"notePasteTooLarge": "Paste is too large for the note field.",
"reuseExistingBranch": "Reuse branch",
"reuseExistingBranchHint": "Check out the existing branch instead of creating a new one from it.",
- "createMultiple": "Create another after this"
+ "createMultiple": "Create more"
},
"NewWorkspaceComposerModal": {
"fa90f739a5": "Elija el proyecto, el nombre del espacio de trabajo y el agente antes de crear el espacio de trabajo."
diff --git a/src/renderer/src/i18n/locales/ja.json b/src/renderer/src/i18n/locales/ja.json
index acc0efed4d7..0500d791e96 100644
--- a/src/renderer/src/i18n/locales/ja.json
+++ b/src/renderer/src/i18n/locales/ja.json
@@ -1103,7 +1103,7 @@
"notePasteTooLarge": "Paste is too large for the note field.",
"reuseExistingBranch": "Reuse branch",
"reuseExistingBranchHint": "Check out the existing branch instead of creating a new one from it.",
- "createMultiple": "Create another after this"
+ "createMultiple": "Create more"
},
"NewWorkspaceComposerModal": {
"fa90f739a5": "ワークスペースを作成する前に、プロジェクト、ワークスペース名、および agent を選択します。"
diff --git a/src/renderer/src/i18n/locales/ko.json b/src/renderer/src/i18n/locales/ko.json
index 220a519f886..3111c1499a4 100644
--- a/src/renderer/src/i18n/locales/ko.json
+++ b/src/renderer/src/i18n/locales/ko.json
@@ -1103,7 +1103,7 @@
"notePasteTooLarge": "메모 필드에 붙여넣을 내용이 너무 큽니다.",
"reuseExistingBranch": "Reuse branch",
"reuseExistingBranchHint": "Check out the existing branch instead of creating a new one from it.",
- "createMultiple": "Create another after this"
+ "createMultiple": "Create more"
},
"NewWorkspaceComposerModal": {
"fa90f739a5": "워크스페이스를 만들기 전에 프로젝트, 워크스페이스 이름, agent를 선택하세요."
diff --git a/src/renderer/src/lib/pending-worktree-creation.ts b/src/renderer/src/lib/pending-worktree-creation.ts
index 3c83982b53f..6b5d60f004c 100644
--- a/src/renderer/src/lib/pending-worktree-creation.ts
+++ b/src/renderer/src/lib/pending-worktree-creation.ts
@@ -71,6 +71,9 @@ export type WorktreeCreationRequest = {
startupPlan: AgentStartupPlan | null
quickPrompt: string
quickTelemetry: AgentStartedTelemetry | null
+ /** When the composer stays open for sequential creates, completion must not
+ * steal focus from the next workspace name field. */
+ suppressTerminalFocusOnCompletion?: boolean
}
/** Renderer-only, session-ephemeral record of an in-flight (or failed) worktree
diff --git a/src/renderer/src/lib/worktree-creation-flow.ts b/src/renderer/src/lib/worktree-creation-flow.ts
index 576a2a341ad..872455495dc 100644
--- a/src/renderer/src/lib/worktree-creation-flow.ts
+++ b/src/renderer/src/lib/worktree-creation-flow.ts
@@ -196,7 +196,7 @@ async function executeWorktreeCreation(
startup: request.startupPlan
})
}
- if (stillActive) {
+ if (stillActive && !request.suppressTerminalFocusOnCompletion) {
queueNewWorkspaceTerminalFocus(worktree.id, activation)
}