Skip to content

fix(fmt): verify written output before caching it as clean - #481

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-fmt-cache-output
Sep 14, 2026
Merged

fix(fmt): verify written output before caching it as clean#481
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-fmt-cache-output

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Motivation

Non-idempotent formatting can leave a file needing another pass while the cache reports it as clean, causing cached and uncached checks to disagree. Fixes #479.

Changes

Cache the checked input and its result so newly written content is verified on the next run. Keep the cache version unchanged and add one regression case comparing cached and uncached checks after writing.

Validated with pnpm build, pnpm --filter rstack build:native, pnpm check, and pnpm test (374 passed, 1 skipped).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 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-09-14T05:59:41.911054Z c6c0e60 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: c6c0e60
Status: ✅  Deploy successful!
Preview URL: https://fa4f6b94.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-fix-fmt-cache-out.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit b9cd500 into main Sep 14, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-fmt-cache-output branch September 14, 2026 06:20
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.

fmt: cached check passes while --no-cache fails after formatting

1 participant