chore(telemetry): align attached-file reader to flattened project root path

This commit is contained in:
2026-06-09 13:38:32 -07:00
parent de1209afe4
commit 1284078799

View File

@@ -638,7 +638,7 @@ export async function POST(request: Request) {
try { try {
const res = (await execInDevContainer({ const res = (await execInDevContainer({
projectId: activeProject.id, projectId: activeProject.id,
command: `cat "/workspace/${activeProject.slug}/${safePath}" 2>/dev/null || echo "[File not found]"`, command: `cat "/workspace/${safePath}" 2>/dev/null || echo "[File not found]"`,
})) as unknown as { exitCode: number; stdout: string }; })) as unknown as { exitCode: number; stdout: string };
fileContextsBlock += `\nFile: \`${safePath}\`\n\`\`\`\n${res.stdout}\n\`\`\`\n`; fileContextsBlock += `\nFile: \`${safePath}\`\n\`\`\`\n${res.stdout}\n\`\`\`\n`;
} catch { } catch {