GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Windows: restore multi-session memory once Turso JS SDK supports multiprocess_wal · Issue #359 · tickernelz/opencode-mem

Windows: restore multi-session memory once Turso JS SDK supports multiprocess_wal #359

New issue
Copy link
New issue
Copy link
Open
Open
Windows: restore multi-session memory once Turso JS SDK supports multiprocess_wal#359
Copy link
Assignees
EyJunge1
Labels
enhancementNew feature or request

Description

@EyJunge1
EyJunge1
opened on Oct 2, 2026
Issue body actions

Summary

Since 2.27, memory uses @tursodatabase/database, which takes an exclusive file lock by default. On macOS/Linux, #358 enables Turso’s experimental multiprocess_wal so multiple OpenCode sessions can share the same storagePath again (like 2.26 / libSQL WAL).

On Windows, that flag is rejected by the active IO backend:

experimental multiprocess WAL is not supported by the active IO backend for '…\metadata.db'

So Windows stays single-process / single OpenCode owner for the memory store. A second concurrent session fails memory tools / chat capture with a lock error.

Context

  • Upstream Turso docs: multi-process WAL is supported on 64-bit Unix; on Windows it requires the experimental VFS experimental_win_iocp (multiprocess access, manual).
  • @tursodatabase/database (we pin ^0.8.1) does not expose a VFS / win_iocp option in the JS connect API, so we cannot enable Windows multiprocess from the plugin today.
  • Related: macOS: 2.27.x Turso engine exclusive file lock breaks memory in all but one concurrent OpenCode session #357 (macOS multi-session; fixed in fix(turso): multiprocess_wal for concurrent sessions + re-embed recovery harden #358), Windows: 2.27.0 DiskANN engine migration never runs (ensureTursoReady fails, memories unreadable) #350 (DiskANN migration; fixed in 2.27.1 / fix(migration): convert libSQL indexes before legacy verification #353).

Desired outcome

When @tursodatabase/database supports multiprocess on Windows (e.g. multiprocess_wal + experimental_win_iocp or equivalent default backend):

  1. Enable the same connect options on win32 in buildConnectOptions() / tursoExperimentalFeatures().
  2. Keep .db-tshm sidecar handling (already in place).
  3. Add a Windows CI / smoke check that two processes can open the same DB with the new options.
  4. Update README (drop the “Windows single-owner” caveat).

Alternatives (if SDK stays blocked)

  • Proxy memory/tool DB ops from non-owner sessions through the port-4747 owner over HTTP (larger change; not required if Turso ships Windows multiprocess in the JS package).

Workaround today

Only one OpenCode process should use a given storagePath on Windows. Close other sessions, or use separate storage paths.

Activity

  1. EyJunge1
    self-assigned this
    on Oct 3, 2026
  2. EyJunge1
    added
    documentationImprovements or additions to documentation
    on Oct 3, 2026
  3. EyJunge1
    added
    enhancementNew feature or request
    and removed
    documentationImprovements or additions to documentation
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @EyJunge1
    EyJunge1

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.