Skip to content

Commit a40d8e4

Browse files
author
Sam Painter
committed
fix: increase sync timeout to 600s for large session counts
2600+ sessions regularly exceeded the 120s timeout. The sync continues running after timeout anyway (Promise.race doesn't cancel it), so the warning was misleading.
1 parent 2d44bc5 commit a40d8e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default function (pi: ExtensionAPI) {
100100

101101
// Fire-and-forget: run initial sync in the background so startIndex
102102
// returns immediately and doesn't block pi's startup.
103-
const SYNC_TIMEOUT_MS = 120_000;
103+
const SYNC_TIMEOUT_MS = 600_000;
104104
Promise.race([
105105
sessionIndex.sync(
106106
(msg) => ctx.ui.setStatus("session-search", msg)

0 commit comments

Comments
 (0)