fix: persist local session identity on the writable session volume

This commit is contained in:
Codex
2026-10-06 19:11:15 +02:00
parent af6cf88b5a
commit 977cf0e978
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -17,6 +17,11 @@ test("consumer bundle pins every service and carries all source bind resources",
assert.equal(compose.services["catalog-migrate"].image, images.core);
assert.equal(compose.services["workspace-maintenance"].image, images.core);
assert.equal(compose.services["embedding-model-init"].image, images.embedding);
// Both session commands and maintenance must retain local identity under a
// writable shared volume when the installer maps the operator's Unix UID.
assert.equal(compose.services.core.environment.THT_HOME, "/data/sessions/.thothii");
assert.equal(compose.services["workspace-maintenance"].environment.THT_HOME,
compose.services.core.environment.THT_HOME);
for (const service of Object.values(compose.services)) {
assert.equal(service.build, undefined);
assert.equal(service.pull_policy, undefined);