Skip to content

Fix useAgent and AgentClient crashing when using basePath routing.#855

Merged
threepointone merged 1 commit intomainfrom
fix-routing
Feb 6, 2026
Merged

Fix useAgent and AgentClient crashing when using basePath routing.#855
threepointone merged 1 commit intomainfrom
fix-routing

Conversation

@threepointone
Copy link
Copy Markdown
Contributor

PartySocket.reconnect() requires room to be set, but basePath mode bypasses room-based URL construction. The fix provides room and party in socket options even when basePath is used, as a workaround pending a fix in partysocket.

`PartySocket.reconnect()` requires `room` to be set, but `basePath` mode bypasses room-based URL construction. The fix provides `room` and `party` in socket options even when `basePath` is used, as a workaround pending a fix in partysocket.
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 6, 2026

🦋 Changeset detected

Latest commit: 51a5942

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@claude

This comment was marked as resolved.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 6, 2026

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/agents@855

commit: 51a5942

@threepointone threepointone merged commit 271a3cf into main Feb 6, 2026
4 of 5 checks passed
@threepointone threepointone deleted the fix-routing branch February 6, 2026 21:49
@github-actions github-actions bot mentioned this pull request Feb 6, 2026
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