Skip to content

feat: add Turso session backend for concurrent-safe sync#54

Merged
iHildy merged 3 commits intoian/fix-51-session-sync-sqlitefrom
ian/add-turso-session-backend
Apr 13, 2026
Merged

feat: add Turso session backend for concurrent-safe sync#54
iHildy merged 3 commits intoian/fix-51-session-sync-sqlitefrom
ian/add-turso-session-backend

Conversation

@iHildy
Copy link
Copy Markdown
Owner

@iHildy iHildy commented Apr 12, 2026

Summary

  • add opt-in Turso session backend while keeping Git as default
  • add Turso setup/login/provisioning flow and machine-local credentials
  • add session backend/migration/cleanup command surfaces and wiring
  • add tests and E2E harness updates for Turso mode

Notes

  • deterministic repo-selection hardening will be handled in a follow-up

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a Turso-based backend for session synchronization, providing a concurrent-safe alternative to the default Git-based sync. It includes new CLI commands for backend management, automated Turso CLI setup, and a background synchronization loop. Feedback focuses on improving the efficiency and security of the Turso implementation, specifically regarding the handling of large SQLite database snapshots, secure CLI installation methods, and robust process and network management.

Comment thread src/sync/turso.ts Outdated
Comment thread src/sync/turso.ts
Comment thread src/sync/turso.ts Outdated
Comment thread src/sync/turso.ts Outdated
Comment thread src/sync/turso.ts Outdated
Comment thread src/sync/turso.ts Outdated
Comment thread src/sync/service.ts
@iHildy iHildy self-assigned this Apr 12, 2026
iHildy and others added 2 commits April 12, 2026 19:03
* fix: make sync-link repo selection deterministic for e2e

* fix: harden turso runtime session sync safety

* fix: harden repo reference parsing for PR feedback

* refactor: reduce turso sync io overhead
@iHildy iHildy merged commit b93480b into ian/fix-51-session-sync-sqlite Apr 13, 2026
3 checks passed
iHildy added a commit that referenced this pull request Apr 13, 2026
* fix: expand e2e coverage and docs for session sync compatibility

* feat: add Turso session backend for concurrent-safe sync (#54)

* feat: add Turso session backend with setup and migration commands

* fix: make sync-link repo selection deterministic for e2e (#55)

* fix: make sync-link repo selection deterministic for e2e

* fix: harden turso runtime session sync safety

* fix: harden repo reference parsing for PR feedback

* refactor: reduce turso sync io overhead

* fix: harden turso session sync transport and timeouts

* fix: avoid mutating string values when parsing JSONC
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