Author SHA1 Message Date
Codex 977cf0e978 fix: persist local session identity on the writable session volume 2026-10-06 19:11:15 +02:00
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);
+2
View File
@@ -12,6 +12,7 @@ services:
THT_HARNESS_DIR: /app/harness
THT_BIN: /opt/venv/bin/tht
THT_DATA_ROOT: /data
THT_HOME: /data/sessions/.thothii
SETTINGS_FILE: /data/settings/settings.json
THT_EVIDENCE_HOST_REGISTRY_ROOT: ${THT_WORKSPACE_REGISTRY_ROOT:-}
THT_MAINTENANCE_FILE: /data/settings/maintenance.json
@@ -124,6 +125,7 @@ services:
THT_HARNESS_DIR: /app/harness
THT_BIN: /opt/venv/bin/tht
THT_DATA_ROOT: /data
THT_HOME: /data/sessions/.thothii
THT_WORKSPACE_REGISTRY_ROOT: /data/workspace-registry
THT_WORKSPACE_GIT_REMOTE: ${THT_WORKSPACE_GIT_REMOTE:?set THT_WORKSPACE_GIT_REMOTE}
THT_WORKSPACE_GIT_BRANCH: ${THT_WORKSPACE_GIT_BRANCH:-main}