Skip to content

fix(app): preserve project registry on quota errors - #39296

Open
ndj888 wants to merge 1 commit into
anomalyco:devfrom
ndj888:preserve-project-state
Open

fix(app): preserve project registry on quota errors#39296
ndj888 wants to merge 1 commit into
anomalyco:devfrom
ndj888:preserve-project-state

Conversation

@ndj888

@ndj888 ndj888 commented Jul 28, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #39295

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The web quota-recovery path could evict opencode.global.dat:server, which stores the server and open-project registry. That leaves projects missing after the next reload.

This change excludes the registry from quota eviction and keeps its previous value when an oversized replacement cannot be stored. Regression tests cover both quota-recovery paths.

How did you verify your code works?

  • Focused persistence tests: 16 passed
  • App typecheck
  • App production build
  • Repository pre-push typecheck: 30 packages passed
  • Prettier and diff checks

Screenshots / recordings

Not applicable; no UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@ndj888
ndj888 requested review from Brendonovich and Hona as code owners July 28, 2026 08:25
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.

Web: quota recovery can delete the project registry

1 participant