Skip to content

Implement WRITE path: apply remote state to local Zen profile #1

Description

@limeflash

What

Currently Zen Sync can READ local state, encrypt it, push to relay, pull from relay, and decrypt. But it doesn't write the decrypted remote state back to the local Zen profile.

Why

Without the WRITE path, the extension can only backup/poll state but can't actually sync (restore remote state on a new device).

How

The native host needs to:

  1. Take decrypted remote state (spaces, tabs, groups, folders, containers)
  2. Write it to zen-sessions.jsonlz4 (with proper mozlz4 compression)
  3. Signal Zen Browser to reload (or require restart)

Challenges

  • Writing to zen-sessions.jsonlz4 while the browser is running may conflict
  • Zen restores from session store on startup — may need browser restart
  • Need to handle workspace UUID collisions (same UUID on different devices = merge, not overwrite)

Labels: write-path, enhancement, help wanted

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededwrite-pathWRITE path (apply remote state)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions