Compare commits
2 Commits
9f54ec9d51
...
6e2b817887
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e2b817887 | |||
| f50d8eb90e |
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@because/sandlot",
|
"name": "@because/sandlot",
|
||||||
"version": "0.0.46",
|
"version": "0.0.47",
|
||||||
"description": "Sandboxed, branch-based development with Claude",
|
"description": "Sandboxed, branch-based development with Claude",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ export interface GlobalSession extends Session {
|
||||||
export async function loadAll(): Promise<GlobalSession[]> {
|
export async function loadAll(): Promise<GlobalSession[]> {
|
||||||
const sandlotDir = join(homedir(), ".sandlot")
|
const sandlotDir = join(homedir(), ".sandlot")
|
||||||
const all: GlobalSession[] = []
|
const all: GlobalSession[] = []
|
||||||
|
const seen = new Set<string>()
|
||||||
|
|
||||||
let repoDirs
|
let repoDirs
|
||||||
try {
|
try {
|
||||||
|
|
@ -89,7 +90,8 @@ export async function loadAll(): Promise<GlobalSession[]> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (repoRoot) {
|
if (repoRoot && !seen.has(repoRoot)) {
|
||||||
|
seen.add(repoRoot)
|
||||||
try {
|
try {
|
||||||
const st = await load(repoRoot)
|
const st = await load(repoRoot)
|
||||||
for (const session of Object.values(st.sessions)) {
|
for (const session of Object.values(st.sessions)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user