From 19841a6a758be84386be260dc77902dd85bac35d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 1 Jan 2026 12:10:36 +0100 Subject: [PATCH] fix: default cookie timeout 30s --- CHANGELOG.md | 2 +- README.md | 2 +- src/lib/cookies.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14a3c26..05fb510 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ - Query ID updater now tracks Following/Followers GraphQL operations. - Query ID updater now tracks BookmarkFolderTimeline and keeps bookmark query IDs seeded. - `following`/`followers` JSON user fields are now camelCase (`followersCount`, `followingCount`, `isBlueVerified`, `profileImageUrl`, `createdAt`). -- Cookie extraction timeout is now configurable (default 20s on macOS) via `--cookie-timeout` / `BIRD_COOKIE_TIMEOUT_MS`. +- Cookie extraction timeout is now configurable (default 30s on macOS) via `--cookie-timeout` / `BIRD_COOKIE_TIMEOUT_MS`. ## 0.4.1 — 2025-12-31 ### Added diff --git a/README.md b/README.md index 1895ff4..3e4cab2 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ Example `~/.config/bird/config.json5`: // Cookie source order for browser extraction (string or array) cookieSource: ["firefox", "safari"], firefoxProfile: "default-release", - cookieTimeoutMs: 20000, + cookieTimeoutMs: 30000, timeoutMs: 20000, quoteDepth: 1 } diff --git a/src/lib/cookies.ts b/src/lib/cookies.ts index 5855931..e9b0211 100644 --- a/src/lib/cookies.ts +++ b/src/lib/cookies.ts @@ -22,7 +22,7 @@ export type CookieSource = 'safari' | 'chrome' | 'firefox'; const TWITTER_COOKIE_NAMES = ['auth_token', 'ct0'] as const; const TWITTER_URL = 'https://x.com/'; const TWITTER_ORIGINS: string[] = ['https://x.com/', 'https://twitter.com/']; -const DEFAULT_COOKIE_TIMEOUT_MS = 20_000; +const DEFAULT_COOKIE_TIMEOUT_MS = 30_000; function normalizeValue(value: unknown): string | null { if (typeof value !== 'string') {