From bcf7a65e36af1437cda556577a275dd8531afd0d Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Thu, 22 Jan 2026 18:07:48 -0600 Subject: fix(app): non-git projects should be renameable --- packages/app/src/pages/layout.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'packages/app/src/pages') diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx index c4fd07e57..12e11e724 100644 --- a/packages/app/src/pages/layout.tsx +++ b/packages/app/src/pages/layout.tsx @@ -1018,11 +1018,16 @@ export default function Layout(props: ParentProps) { const displayName = (project: LocalProject) => project.name || getFilename(project.worktree) async function renameProject(project: LocalProject, next: string) { - if (!project.id) return const current = displayName(project) if (next === current) return const name = next === getFilename(project.worktree) ? "" : next - await globalSDK.client.project.update({ projectID: project.id, directory: project.worktree, name }) + + if (project.id && project.id !== "global") { + await globalSDK.client.project.update({ projectID: project.id, directory: project.worktree, name }) + return + } + + globalSync.project.meta(project.worktree, { name }) } async function renameSession(session: Session, next: string) { -- cgit v1.2.3