Skip to content

fix: respect Retry-After headers and MCP rate-limit signals in sync s…#556

Open
sskninja wants to merge 1 commit into
rowboatlabs:mainfrom
sskninja:fix/sync-rate-limiting
Open

fix: respect Retry-After headers and MCP rate-limit signals in sync s…#556
sskninja wants to merge 1 commit into
rowboatlabs:mainfrom
sskninja:fix/sync-rate-limiting

Conversation

@sskninja

Copy link
Copy Markdown

Enhanced Rate-Limit Parsing:
Granola: Added logic to apiCall to parse the Retry-After HTTP header (supporting both integer seconds and Date formats) and throw a dedicated RateLimitError.
Fireflies: Updated callWithRateLimit to detect MCP error objects containing a data.retryAfter property.
Accurate Backoff Execution:
Modified the retry logic in both services to prioritize the server-suggested delay over the local default, ensuring the backend respects exact backoff requirements.
Build System Fixes:
Updated pnpm-workspace.yaml to explicitly allow build scripts for core dependencies (electron, esbuild, etc.), resolving build failures in clean environments.
Corrected the esbuild execution path in apps/preload/package.json to call the binary directly, bypassing broken local shims.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant