Skip to content

feat(fmt): add project cache directory - #221

Merged
chenjiahan merged 2 commits into
mainfrom
chenjiahan/feat-fmt-cache-directory
Aug 6, 2026
Merged

feat(fmt): add project cache directory#221
chenjiahan merged 2 commits into
mainfrom
chenjiahan/feat-fmt-cache-directory

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Aug 6, 2026

Copy link
Copy Markdown
Member

Persistent fmt caching needs a project-local directory that stays out of discovery and Git status.

This adds a failure-tolerant .rstack/cache helper that avoids redundant marker writes; its asynchronous warm path measured 101.18 μs/op to 55.63 μs/op in a local microbenchmark. It also hard-excludes .rstack from fmt discovery, including explicit inputs, because the directory contains hooks, generated state, and caches rather than formatter sources.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f3d492eefb

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/rstack/src/fmt/discoverPaths.ts
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 250cdcf
Status: ✅  Deploy successful!
Preview URL: https://7324586d.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-fmt-cache-di.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 6ff1ff2 into main Aug 6, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-fmt-cache-directory branch August 6, 2026 10:30
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