Skip to content

fix(hooks): recognize cross-realm filesystem errors - #621

Open
chenjiahan wants to merge 1 commit into
mainfrom
chenjiahan/fix-hooks-cross-realm-errors
Open

chenjiahan wants to merge 1 commit into
mainfrom
chenjiahan/fix-hooks-cross-realm-errors

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Motivation

Filesystem errors from another VM realm fail instanceof Error, causing hook installation to misclassify EEXIST owner-file conflicts as write failures and stringify errors instead of using their messages. This surfaced during the VM pool migration in #617.

Changes

Use util.types.isNativeError for both checks, retaining compatibility with supported Node versions. Add two cross-realm regression tests that fail before the fix and pass afterward; the hooks suite passes under both forks and vmForks.

@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T14:01:47.644896Z 151e74a 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.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 151e74a
Status: ✅  Deploy successful!
Preview URL: https://6517117d.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-fix-hooks-cross-r.rstack-cli.pages.dev

View logs

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.

1 participant