fix: address review findings (#2695)

This commit is contained in:
Jinjing
2026-05-23 12:33:49 -07:00
committed by GitHub
parent 669ade2313
commit c93dd901a3
42 changed files with 1110 additions and 270 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ import { basename } from 'node:path'
import { exec } from 'node:child_process'
import { promisify } from 'node:util'
import os from 'node:os'
import { splitWorktreeId } from '../../shared/worktree-id'
import { splitWorktreeIdForFilesystem } from '../../shared/worktree-id'
import { app } from 'electron'
import type {
AppMemory,
@@ -375,7 +375,7 @@ function resolveWorktreeNames(
repoName: string
} {
// Orca worktree ids look like `${repoId}::${absolutePath}`.
const parsed = splitWorktreeId(worktreeId)
const parsed = splitWorktreeIdForFilesystem(worktreeId)
const repoId = parsed?.repoId ?? worktreeId
const worktreePath = parsed?.worktreePath ?? ''
const fallbackName = worktreePath ? basename(worktreePath) : worktreeId