feat: Data & Storage section in General Settings (#378) - #204
Conversation
|
Warning Review limit reached
Next review available in: 5 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Comment |
Add a new 'Data & Storage' section in the General tab of settings:
- Session database path override (OPENCODE_DB env var)
- Configuration directory override (OPENCODE_CONFIG_DIR env var)
Both fields show resolved XDG defaults as placeholder text, validate on
blur (absolute paths, parent dir exists for DB, dir exists for config),
and trigger a server restart on valid change. Overrides persist in the
app's settings store and survive restarts.
New files:
- data-storage-controller.ts: bridge logic (query defaults, send update)
- data-storage.tsx: UI component (section + 2 path fields + validation)
Modified:
- general.tsx: render DataStorageSection between Display and Advanced
- settings.tsx: add storage.{databasePath, configDir} to Settings interface
- en.ts: add i18n keys for section/row titles, descriptions, errors
c077da4 to
50a4813
Compare
Summary
Adds a Data & Storage section in the General tab of the settings dialog with two path fields:
Both fields show resolved XDG defaults as placeholder text, validate on blur (absolute paths required, parent dir must exist for DB, directory must exist for config dir), and trigger a server restart on valid change. Overrides persist across sessions.
Changes
New files
Modified files
Companion PR
Extension-side handlers (bridge, allowlists, env injection): harmoniqs/amicode#380
Closes harmoniqs/amicode#378