Skip to content

Commit 9a4bb1e

Browse files
committed
Honor PAI harness marker for runtime paths
1 parent 8bd2ff1 commit 9a4bb1e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Releases/v5.0.0/.claude/PAI/TOOLS/lib/runtime-paths.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ export function getHarnessHome(): string {
100100
return resolve(expandHome(process.env.HARNESS_HOME));
101101
}
102102

103-
const scriptHarnessHome = harnessHomeFromPaiChild(scriptPath());
104-
if (scriptHarnessHome) return scriptHarnessHome;
105-
106103
const harness = envHarness();
107104
if (harness) return join(homeDir(), harness === "claude" ? ".claude" : ".codex");
108105

@@ -116,6 +113,9 @@ export function getHarnessHome(): string {
116113
}
117114
}
118115

116+
const scriptHarnessHome = harnessHomeFromPaiChild(scriptPath());
117+
if (scriptHarnessHome) return scriptHarnessHome;
118+
119119
for (const candidate of [join(homeDir(), ".codex"), join(homeDir(), ".claude")]) {
120120
const link = join(candidate, "PAI");
121121
if (existsSync(link) && resolveExisting(link) === resolveExisting(paiDir)) {

0 commit comments

Comments
 (0)