GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(core): filter dead worktrees · f2dmarques/opencode@5c66c8b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/opencode/src/project
    • project.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/src/project/project.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/src/project/project.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { fn } from "@opencode-ai/util/fn"
1212
import { BusEvent } from "@/bus/bus-event"
1313
import { iife } from "@/util/iife"
1414
import { GlobalBus } from "@/bus/global"
15+
import { existsSync } from "fs"
1516

1617
export namespace Project {
1718
const log = Log.create({ service: "project" })
@@ -199,6 +200,7 @@ export namespace Project {
199200
},
200201
}
201202
if (sandbox !== result.worktree && !result.sandboxes.includes(sandbox)) result.sandboxes.push(sandbox)
203+
result.sandboxes = result.sandboxes.filter((x) => existsSync(x))
202204
await Storage.write<Info>(["project", id], result)
203205
GlobalBus.emit("event", {
204206
payload: {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.