mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-04 07:20:27 +00:00
fix(app): renaming non-git projects shouldn't affect other projects
This commit is contained in:
parent
52535654e7
commit
ae8cff22e5
3 changed files with 3 additions and 2 deletions
|
|
@ -979,7 +979,7 @@ export default function Layout(props: ParentProps) {
|
|||
const current = displayName(project)
|
||||
if (next === current) return
|
||||
const name = next === getFilename(project.worktree) ? "" : next
|
||||
await globalSDK.client.project.update({ projectID: project.id, name })
|
||||
await globalSDK.client.project.update({ projectID: project.id, directory: project.worktree, name })
|
||||
}
|
||||
|
||||
async function renameSession(session: Session, next: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue