Skip to content

docs: capture todo - unify folder-state ownership in SDK client#490

Merged
FSM1 merged 1 commit into
mainfrom
docs/capture-sdk-folder-state-unification
Jun 14, 2026
Merged

docs: capture todo - unify folder-state ownership in SDK client#490
FSM1 merged 1 commit into
mainfrom
docs/capture-sdk-folder-state-unification

Conversation

@FSM1

@FSM1 FSM1 commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Captures the architectural follow-up surfaced while root-causing the recycle-bin TC08 failure (fixed in #489).

Why: Folder state (children + IPNS sequence) is duplicated across the web Zustand useFolderStore and the SDK client folderTree. They drift because some web paths (file replace/version) publish folder metadata directly via sdk-core, updating only the store. #489 shipped a reconciliation band-aid (client.reconcileFolderState); this todo tracks the real fix — make the SDK client the single source of truth, turn the web store into a projection fed by folder:updated events, and delete reconcileFolderState once the desync is impossible by construction.

Adds one planning todo; no code changes. Related but distinct from the existing publishWithCas retry-dedup todo.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@FSM1, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 25 minutes and 43 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a03638cf-37c6-4438-921c-6709391feeea

📥 Commits

Reviewing files that changed from the base of the PR and between 1abceb4 and 09491e6.

📒 Files selected for processing (1)
  • .planning/todos/pending/2026-06-14-unify-folder-state-ownership-in-sdk-client.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/capture-sdk-folder-state-unification

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 and usage tips.

@github-actions

Copy link
Copy Markdown
Contributor

Release Preview

No version bumps detected. All changes are in unversioned paths or use exempt commit types.

@FSM1 FSM1 merged commit ffd4111 into main Jun 14, 2026
17 checks passed
@FSM1 FSM1 deleted the docs/capture-sdk-folder-state-unification branch June 16, 2026 01:16
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