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:
@@ -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,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");
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user