chore(telemetry): align shell_exec and dev_server_start cwd to flattened workspace root

This commit is contained in:
2026-06-09 14:59:42 -07:00
parent 173eabd8bf
commit d5d5d6e8d4
2 changed files with 2 additions and 5 deletions

View File

@@ -4508,10 +4508,7 @@ async function toolShellExec(
const result = await execInDevContainer({
projectId: project.id,
command,
cwd:
typeof params.cwd === "string"
? params.cwd
: `/workspace/${project.slug}`,
cwd: typeof params.cwd === "string" ? params.cwd : "/workspace",
timeoutMs: Number.isFinite(Number(params.timeoutMs))
? Number(params.timeoutMs)
: Number.isFinite(Number(params.timeout_ms))

View File

@@ -908,7 +908,7 @@ export async function startDevServer(
const launch =
`mkdir -p /var/log/vibn-dev && ` +
`cd /workspace/${opts.projectSlug} && ` +
`cd /workspace && ` +
`nohup env PORT=${opts.port} VIBN_DEV_SERVER_ID=${id} ` +
`bash -lc ${shellEscape(listenSafeCommand)} > ${logFile} 2>&1 & ` +
`echo $!`;