Skip to content

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

Merged
chenjiahan merged 3 commits into
mainfrom
chenjiahan/fix-hooks-cross-realm-errors
Nov 9, 2026
Merged

chenjiahan merged 3 commits into
mainfrom
chenjiahan/fix-hooks-cross-realm-errors

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Nov 6, 2026 •

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 Error.isError for both checks, falling back to util.types.isNativeError on older Node versions.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 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-07T10:02:57.455182Z cb11f3a New commits
ℹ️ 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

cloudflare-workers-and-pages Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: cb11f3a
Status: ✅  Deploy successful!
Preview URL: https://74377d3a.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-fix-hooks-cross-r.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit a198d54 into main Nov 9, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-hooks-cross-realm-errors branch November 9, 2026 02:48
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