Repository navigation
fix: ignore virtual Octane config dependencies - #993
Merged
domgan-oai merged 1 commit intoSep 8, 2026
Merged
domgan-oai merged 1 commit into
domgan-oai merged 1 commit into
Conversation
domgan-oai
marked this pull request as ready for review
September 8, 2026 13:57
14 of 21 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
octane.config.tsimports decorator-using code, Vite's SSR module graph can contain a NUL-prefixed helper ID inmodule.file. Passing that ID tovite.watcher.add()crashes the dev server.Changes
@octanejs/vite-plugin.Validation
pnpm format:checkpnpm typecheckpnpm testgit diff --check;node scripts/check-changesets.js.Local
pnpm syncreached the parity generator with no generated diff, but the dependency install could not finish: the configured package registry returned 403 for@tsrx/[email protected]. The current-head CI run completed successfully: 26 jobs, including lint, typecheck, test shards, React parity, and Chromium integration.Risk / follow-ups
Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Startup-only change to which paths are watched; behavior for real files is unchanged and covered by a new regression test.
Overview
Fixes dev-server crashes when
octane.config.tsimports code that uses TypeScript decorators (#988). Vite’s SSR module graph can put NUL-prefixed virtual helper IDs inmodule.file; those paths were collected for config dependency watching and passed tovite.watcher.add(), which expects real filesystem paths.getDependenciesinload-config.jsstill walks the full import graph, but only addsmodule.filevalues that do not contain\0. Real imported files (e.g.entity.ts) stay on the watch list and still trigger server restarts on change.A new integration test covers a decorated import: watcher registration uses
statSyncon every added path, and a change to the imported file still callsrestartonce.@octanejs/vite-plugingets a patch changeset.Reviewed by Cursor Bugbot for commit 56ff910. Bugbot is set up for automated code reviews on this repo. Configure here.