Skip to content

fix(spend): warn when Google Drive syncs the state directory - #6846

Merged
lidge-jun merged 1 commit into
devfrom
cursor/google-drive-state-warning-92ff
Oct 9, 2026
Merged

lidge-jun merged 1 commit into
devfrom
cursor/google-drive-state-warning-92ff

Conversation

@lidge-jun

Copy link
Copy Markdown
Owner

Summary

  • The spend-ledger startup warning now treats Desktop or Documents as a synced location when Google Drive for desktop is present, which is the layout behind the intermittent nlink == 2 journal refusals in [Bug]: Intermittent spend-ledger storage safety refusal on macOS with native Codex traffic, including HTTP-only #6314.
  • Signals are presence only: ~/Library/Application Support/Google/DriveFS, or a GoogleDrive-* directory under ~/Library/CloudStorage. Missing or unreadable markers do not warn and do not fail startup.
  • The hard-link guard is unchanged. The warning still names the location kind and never a path, salt, or account.

Refs #6314

Verification

  • bun test tests/lib/synced-state-location.test.ts — 15 pass, 0 fail.
  • bun run typecheck — pass.
  • bun run structure:check — pass.
  • bun run privacy:scan — pass.
  • No GUI change, so no screenshot.
  • Full bun run test was not run locally; this is a small advisory classifier with focused regression tests. Hosted CI covers the rest.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.
Open in Web Open in Cursor 

Refs #6314. The startup advisory already named iCloud and CloudStorage
paths. Google Drive for desktop can sync the native Desktop and Documents
folders, which is the layout that produced the nlink==2 journal refusals.
Treat a DriveFS directory or a GoogleDrive-* CloudStorage folder as that
hint, still without relaxing the hard-link guard or logging paths.

Co-authored-by: JUN <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: lidge-jun/opencodex/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: edbab9b2-5a29-4a81-8750-f323f21bfb2e

📥 Commits

Reviewing files that changed from the base of the PR and between d17a9f2 and fe8d417.


📒 Files selected for processing (5)
  • docs-site/src/content/docs/troubleshooting/spend-ledger-synced-folder.md
  • src/lib/synced-state-location.ts
  • src/server/index/spend-ledger-lifecycle.ts
  • structure/transports/responses-spend.md
  • tests/lib/synced-state-location.test.ts

 ___________________________________
< I like big bugs and I cannot lie. >
 -----------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the bug Something isn't working label Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@lidge-jun
lidge-jun marked this pull request as ready for review October 9, 2026 20:33
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner October 9, 2026 20:33
@lidge-jun
lidge-jun merged commit 595f3e5 into dev Oct 9, 2026
55 of 58 checks passed
@lidge-jun
lidge-jun deleted the cursor/google-drive-state-warning-92ff branch October 9, 2026 20:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 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-10-09T20:34:45.113438Z fe8d417 Draft marked ready
ℹ️ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants