Commit 0f0b3bf
committed
fix(sandbox): scope data volume per workspace to prevent SQLite contention
Sessions, snapshots, logs, and the SQLite database in ~/.local/share/opencode
are all project-specific. Sharing a single opencode-data volume across
workspaces risks WAL-mode write contention when multiple containers run
concurrently, and causes session bleed between unrelated projects. Scoping
the volume name to the sanitized workspace directory name isolates each
project's data cleanly.1 parent bd52a2f commit 0f0b3bf
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
276 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
| |||
0 commit comments