[bug] PUT /workspaces/:id/files doesn't propagate to running container's mounted /configs volume #151
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
PUT /workspaces/:id/files updates the file in the platform's stored config (DB / staging dir), but the container's mounted /configs volume is populated only at INITIAL provision. POST /workspaces/:id/restart re-launches the container but reuses the existing volume — file changes never reach the running container.
Repro
docker exec <ws> cat /configs/initial-prompt.md→ STILL THE ORIGINALWhy it matters
Fix shape
Either:
Severity
MED — not data-loss, but blocks the documented operator workflow for prompt updates
Tier
tier:medium
Working on fix. The root cause: ReplaceFiles offline path falls back to host-side template dir when writeViaEphemeral fails, but restart handler reads from the Docker volume. Fix: remove the fallback, return 503 so callers know to retry when Docker is available. PR: https://git.moleculesai.app/molecule-ai/molecule-core/pull/172