fix: fixed session naming context and native import paths

- Passed the user context when setting the session name during subprocess execution.
- Updated native build scripts to import detectHostAvx2Support from the correct shared module paths.
This commit is contained in:
can1357
2026-04-13 01:12:15 +02:00
parent d2caf2770c
commit 4bc79b9a67
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1063,7 +1063,7 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
setThinkingLevel: level => session.setThinkingLevel(level),
getSessionName: () => session.sessionManager.getSessionName(),
setSessionName: async name => {
await session.sessionManager.setSessionName(name);
await session.sessionManager.setSessionName(name, "user");
},
},
{
+1 -1
View File
@@ -1,7 +1,7 @@
import * as fs from "node:fs/promises";
import * as path from "node:path";
import { $ } from "bun";
import { detectHostAvx2Support } from "./host-detect";
import { detectHostAvx2Support } from "../../../scripts/host-detect";
const repoRoot = path.join(import.meta.dir, "../../..");
const rustDir = path.join(repoRoot, "crates/pi-natives");
+1 -1
View File
@@ -2,7 +2,7 @@
import * as path from "node:path";
import { $ } from "bun";
import { detectHostAvx2Support } from "../packages/natives/scripts/host-detect";
import { detectHostAvx2Support } from "./host-detect"
interface NativeBuildVariant {
name: "baseline" | "modern";