feat: plugin-scoped storage and mobile sync improvements#108
Open
ProfSynapse wants to merge 1 commit into
Open
feat: plugin-scoped storage and mobile sync improvements#108ProfSynapse wants to merge 1 commit into
ProfSynapse wants to merge 1 commit into
Conversation
- Redesign migration to two-stage: first boot copies in background while using legacy paths; second boot cuts over to plugin-data - Route cache.db path through storage plan so SQLite opens at the correct location per migration state - Copy cache.db after sync/rebuild completes (not during migration) to avoid stale snapshot without sync state - Add setDbPath() to SQLiteCacheManager for pre-init path updates - Add init logging at all key milestones for startup debugging - Add user-facing Notice for migration progress - Await storage adapter ready before embedding init Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PluginScopedStorageCoordinatorandPluginStoragePathResolverresolve storage paths relative to the active plugin directory, enabling reliable SQLite WASM resolution regardless of plugin folder namingJSONLWriternow supports multiple read base paths so data synced from other devices is discovered alongside local writes, with event deduplication by IDHybridStorageAdapterreplays JSONL conversation files missing from SQLite on startup and after each sync cycle (same pattern as existing workspace/task reconciliation)Settings.saveSettings()now merges with existing persisted data to avoid clobbering keys written by other componentssetCurrentConversationId()setter for updating the conversation context after constructionFiles changed (15)
PluginScopedStorageCoordinator.ts,PluginStoragePathResolver.tsHybridStorageAdapter.ts,JSONLWriter.ts,SQLiteCacheManager.tsServiceDefinitions.ts,PluginTypes.tsMaintenanceCommandManager.tssettings.tsModelAgentManager.tsHybridStorageAdapter.test.ts,JSONLWriter.test.ts,PluginScopedStorageCoordinator.test.ts,ModelAgentManager.test.tsplugin-scoped-sync-storage-migration-plan.mdTest plan
.nexus/data🤖 Generated with Claude Code