diff --git a/packages/tui/src/component/dialog-open.tsx b/packages/tui/src/component/dialog-open.tsx index e2fb4373ed3..4f4a3a888e9 100644 --- a/packages/tui/src/component/dialog-open.tsx +++ b/packages/tui/src/component/dialog-open.tsx @@ -458,8 +458,6 @@ export function DialogOpen(props: { sessions: SessionInfo[]; onLoad: (sessions: directory: data.project.get(id)!.canonical, workspace: workspaceID(), }, - strategy: "git", - directory: path.join(paths.worktree, id.slice(0, 6)), ...(value.trim() ? { name: value.trim() } : {}), }) .then((created) => { diff --git a/packages/tui/test/cli/tui/dialog-open.test.tsx b/packages/tui/test/cli/tui/dialog-open.test.tsx index bfae5d8ce59..07609c34a12 100644 --- a/packages/tui/test/cli/tui/dialog-open.test.tsx +++ b/packages/tui/test/cli/tui/dialog-open.test.tsx @@ -509,11 +509,7 @@ test.each(["", "search-ui"])("creates a worktree named '%s' and opens it in the fixture.app.mockInput.pressEnter() await fixture.app.waitFor(() => fixture.route.data.type === "home") - expect(payload).toEqual({ - strategy: "git", - directory: path.join("/tmp/opencode", projectID.slice(0, 6)), - ...(name ? { name } : {}), - }) + expect(payload).toEqual(name ? { name } : {}) expect(fixture.route.data).toEqual({ type: "home", location: { directory: created, workspaceID } }) expect(fixture.location.ref).toEqual({ directory: created, workspaceID }) } finally {