Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: widen test type to match optional roots query param
  • Loading branch information
Kevin
Kevin committed Apr 20, 2026
commit fc14f8dec378bbbc8951f184b3d7e160e2364014
4 changes: 2 additions & 2 deletions packages/app/src/context/global-sync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("pickDirectoriesToEvict", () => {

describe("loadRootSessionsWithFallback", () => {
test("uses limited roots query when supported", async () => {
const calls: Array<{ directory: string; roots: true; limit?: number }> = []
const calls: Array<{ directory: string; roots?: boolean; limit?: number }> = []

const result = await loadRootSessionsWithFallback({
directory: "dir",
Expand All @@ -42,7 +42,7 @@ describe("loadRootSessionsWithFallback", () => {
})

test("falls back to full roots query on limited-query failure", async () => {
const calls: Array<{ directory: string; roots: true; limit?: number }> = []
const calls: Array<{ directory: string; roots?: boolean; limit?: number }> = []

const result = await loadRootSessionsWithFallback({
directory: "dir",
Expand Down