Skip to content

Retry subscribe_changes URL factory failures - #94

Open
Herklos wants to merge 1 commit into
masterfrom
cursor/subscribe-changes-retry-b03c
Open

Herklos wants to merge 1 commit into
masterfrom
cursor/subscribe-changes-retry-b03c

Conversation

@Herklos

@Herklos Herklos commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Summary

subscribe_changes resolved a callable URL outside the retry path, so a factory exception ended the subscription. That call now sits in the reconnect loop. A factory failure backs off and retries with the same cap as httpx.HTTPError and OSError. Exceptions from on_status still propagate. Backoff still resets when the connection opens (HTTP 2xx), not on the first frame. The docstring no longer says the generator never raises.

Test plan

  • cd packages/python/client && uv run --python 3.12 --extra dev pytest (171 passed, including reconnect, backoff, non-2xx, URL re-resolution, client close, and the factory / on_status cases)
Open in Web Open in Cursor 

A callable url that raises now backs off and retries with the same cap as a transport error. on_status exceptions still propagate, and tests pin reconnect, backoff, and client close.

Co-authored-by: herklos.dev <herklos.dev@protonmail.com>
@Herklos Herklos self-assigned this Oct 13, 2026

This branch has not been deployed

No deployments
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.

2 participants