Skip to content

Make StoreLoader more robust on Windows - #2292

Open
pmcelhaney wants to merge 2 commits into
mainfrom
store-loader-on-windows-fix
Open

Make StoreLoader more robust on Windows#2292
pmcelhaney wants to merge 2 commits into
mainfrom
store-loader-on-windows-fix

Conversation

@pmcelhaney

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI lite review requested due to automatic review settings August 5, 2026 15:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR primarily improves StoreLoader’s file watching behavior to better handle Windows-specific filesystem watcher quirks (notably around creation/rename patterns), while also applying formatting-only TypeScript type-layout changes across several generator/runtime type files.

Changes:

  • Adjust StoreLoader to poll and to reconcile store presence/loads when events come in via non-canonical temporary paths.
  • Add a reconcile-on-ready step to close the initial load→watch race window.
  • Apply formatting-only updates to several TypeScript type assertions and union/mapped types.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/typescript-generator/operation-type-coder.ts Formatting-only change to a type assertion for readability/consistency.
src/typescript-generator/operation-coder.ts Formatting-only change to a type assertion for readability/consistency.
src/typescript-generator/jsdoc.ts Formatting-only change to an examples type assertion for readability/consistency.
src/typescript-generator/coder.ts Formatting-only reflow of a constructor type-cast instantiation.
src/server/store-loader.ts Updates watcher configuration and event handling to better detect store file transitions on Windows (incl. temp-path events).
src/server/registry.ts Formatting-only change to an index signature union type.
src/counterfact-types/omit-all.ts Formatting-only change to a mapped type with key remapping.
src/counterfact-types/middleware.ts Formatting-only change to a union type layout.

Comment on lines +76 to 79
// This is a single shallow directory, so polling is inexpensive and
// avoids platform-specific native watcher limits and missed adds.
usePolling: true,
awaitWriteFinish: { pollInterval: 10, stabilityThreshold: 50 },
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.

2 participants