Skip to content

Commit 05d2f70

Browse files
committed
ignore: tweak
1 parent f950de9 commit 05d2f70

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/opencode/src/project/project.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,12 @@ export namespace Project {
104104
if (globalSessions.length === 0) return
105105

106106
log.info("migrating sessions from global", { newProjectID, worktree, count: globalSessions.length })
107-
const worktreePrefix = worktree.endsWith(path.sep) ? worktree : worktree + path.sep
108107

109108
await work(10, globalSessions, async (key) => {
110109
const sessionID = key[key.length - 1]
111110
const session = await Storage.read<Session.Info>(key).catch(() => undefined)
112111
if (!session) return
113-
if (session.directory && session.directory !== worktree && !session.directory.startsWith(worktreePrefix)) return
112+
if (session.directory && session.directory !== worktree) return
114113

115114
session.projectID = newProjectID
116115
log.info("migrating session", { sessionID, from: "global", to: newProjectID })

0 commit comments

Comments
 (0)