Skip to content

repo2graph: persist lab workspace in a named volume - #739

Merged
Evanfeenstra merged 1 commit into
masterfrom
lab-workspace-volume
Aug 29, 2026
Merged

repo2graph: persist lab workspace in a named volume#739
Evanfeenstra merged 1 commit into
masterfrom
lab-workspace-volume

Conversation

@Evanfeenstra

Copy link
Copy Markdown
Collaborator

The lab vein workspace resolves to VEIN_LAB_WORKSPACE or ./lab-workspace (stakgraph createLabVein.ts), and sphinx-swarm never set the env var — so on prod it lived at /usr/src/app/lab-workspace in the container's writable layer and was wiped on container recreation (auto-updater image pulls, config changes).

This sets VEIN_LAB_WORKSPACE=/usr/src/app/lab-workspace and backs it with a repo2graph-lab-workspace named volume, matching the existing sessions/artifacts/reqs/cache pattern. Step/workflow templates are re-seeded on boot either way; what this preserves is run history, run outputs, and steps/workflows edited through the vein UI/API.

Includes a test asserting both the env var and the bind, following test_cache_vol_and_env_are_emitted.

🤖 Generated with Claude Code

The lab vein workspace defaulted to ./lab-workspace in the container's
writable layer (VEIN_LAB_WORKSPACE was never set), so run history/outputs
and UI-edited steps/workflows were lost on container recreation. Set the
env var and back it with a named volume, matching the existing
sessions/artifacts/reqs/cache pattern.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Evanfeenstra
Evanfeenstra merged commit 617df3b into master Aug 29, 2026
2 checks passed
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