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 8c73f72680
commit a036f2f28f
2 changed files with 2 additions and 5 deletions

View File

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

View File

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