fix: never rename worktree branches from create_agent path

Auto-naming should only run during worktree creation (mnemonic on create,
async LLM rename moments after). Creating a new agent inside an existing,
properly-named branch must not trigger a rename.
This commit is contained in:
Mohamed Boudra
2026-05-06 18:33:36 +07:00
parent 2e45650f22
commit 7e8187ddc7
-4
View File
@@ -3007,10 +3007,6 @@ export class Session {
if (!resolvedWorkspace) {
throw new Error(`Workspace not found: ${msg.workspaceId}`);
}
this.scheduleAutoNameWorkspaceBranchForFirstAgent({
workspace: resolvedWorkspace,
firstAgentContext,
});
const snapshot = await this.agentManager.createAgent(
{
...sessionConfig,