Skip to content

feat(cli): add HTTP retries and surface error_id in CLI errors - #57

Merged
akirilyuk merged 1 commit into
mainfrom
feat/cli-http-retry-error-id
Aug 9, 2026
Merged

feat(cli): add HTTP retries and surface error_id in CLI errors#57
akirilyuk merged 1 commit into
mainfrom
feat/cli-http-retry-error-id

Conversation

@akirilyuk

Copy link
Copy Markdown
Contributor

Summary

  • Add http-retry module with fixed backoff [500, 1000, 2500, 5000, 15000, 30000, 60000] ms (8 attempts max) for transport failures and gateway HTTP 502/503/504.
  • Wire retries into VoicethereApi.request and UserApi.request, rebuilding fetch each attempt and surfacing ApiError only after retries are exhausted.
  • Extend ApiError with errorId from platform error.error_id and export formatCliError so CLI output includes error_id and request_id when present.

Verified locally: npm test and npm run typecheck in cli/.

Retry transport and gateway failures with fixed backoff in both API clients,
and print platform error_id and request_id via formatCliError on failure.

Co-authored-by: Cursor <cursoragent@cursor.com>
@akirilyuk
akirilyuk merged commit 7e1fc95 into main Aug 9, 2026
8 checks passed
@akirilyuk
akirilyuk deleted the feat/cli-http-retry-error-id branch August 9, 2026 05:53
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