fix(backend): make data root config authoritative

This commit is contained in:
2026-07-11 21:35:54 +02:00
parent c6c00c336a
commit 3ac0623247
6 changed files with 97 additions and 0 deletions
+1
View File
@@ -63,6 +63,7 @@ export class ThtRunner {
run(args: string[], workspace?: string): Promise<{ code: number; stdout: string; stderr: string }> {
return new Promise((resolve) => {
const env: NodeJS.ProcessEnv = { ...process.env };
delete env.THT_DATA_ROOT;
if (this.cfg.dataRoot !== undefined) env.THT_DATA_ROOT = this.cfg.dataRoot;
const ch = spawn(this.cfg.thtBin, this.buildArgv(args, workspace), {
cwd: this.cfg.harnessDir,