Skip to content

fix: reject IPC subscriptions on socket errors - #5582

Merged
jxom merged 3 commits into
mainfrom
fix/ipc-subscribe-errors
Nov 18, 2026
Merged

jxom merged 3 commits into
mainfrom
fix/ipc-subscribe-errors

Conversation

@jxom

@jxom jxom commented Nov 18, 2026

Copy link
Copy Markdown
Member

Supersedes #5575 by @yinbowen-dc, keeping their commit with the ipc transport fix: subscribe now passes onError to the socket request, so a pending subscription rejects and onError fires when the socket closes or errors.

Fixes on top:

  • Moved the test into src/clients/transports/ipc.test.ts (the separate file imported viem/node, which failed pnpm check:types).
  • Asserted the rejection and onError errors with inline snapshots, and dropped the requests.size check that also passed on main.
  • Added a test that an established subscription gets onError when its socket closes.
  • Updated the changeset to cover both cases.

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
viem Error Error Nov 18, 2026 8:25pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 25216ce

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

This PR includes changesets to release 1 package
Name Type
viem 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T20:23:33.870982Z 25216ce PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Published [email protected] under the pr-5582 dist-tag, which follows this pull request until it closes.

pnpm add viem@pr-5582
pnpm add [email protected]

@jxom
jxom merged commit 591c7b9 into main Nov 18, 2026
39 of 40 checks passed
@jxom
jxom deleted the fix/ipc-subscribe-errors branch November 18, 2026 21:15
@github-actions github-actions Bot mentioned this pull request Nov 18, 2026

This branch had an error being deployed

1 failed deployment
Preview — 25216cee Deployed Nov 18, 2026 by vercel[bot]
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.

3 participants