Merge remote-tracking branch 'origin/v2' into app-v2-only
# Conflicts: # packages/app/src/utils/server-compat.test.ts # packages/app/src/utils/server-compat.ts
This commit is contained in:
commit
f2bfc7935c
258 changed files with 5916 additions and 2897 deletions
|
|
@ -69,7 +69,7 @@ export const DialogFork: Component = () => {
|
|||
const dir = base64Encode(sdk().directory)
|
||||
|
||||
sdk()
|
||||
.api.session.fork({ sessionID, messageID: item.id })
|
||||
.api.session.fork({ sessionID, boundary: { type: "before", messageID: item.id } })
|
||||
.then((forked) => {
|
||||
dialog.close()
|
||||
prompt.set(restored, undefined, { dir, id: forked.id })
|
||||
|
|
|
|||
|
|
@ -131,8 +131,8 @@ export const loadProjectsQuery = (scope: ServerScope, api: ProjectApi) =>
|
|||
api.list().then((projects) => {
|
||||
return projects
|
||||
.filter((p) => !!p?.id)
|
||||
.filter((p) => !!p.worktree && !p.worktree.includes("opencode-test"))
|
||||
.map(normalizeProjectInfo)
|
||||
.filter((p) => !!p.worktree && !p.worktree.includes("opencode-test"))
|
||||
.slice()
|
||||
.sort((a, b) => cmp(a.id, b.id))
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ export function sanitizeProject(project: Project) {
|
|||
export function normalizeProjectInfo(project: Project | CurrentProject): Project {
|
||||
return {
|
||||
...project,
|
||||
worktree: "canonical" in project ? project.canonical : project.worktree,
|
||||
vcs: project.vcs === "git" ? "git" : undefined,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue