chore(telemetry): align attached-file reader to flattened project root path
This commit is contained in:
@@ -638,7 +638,7 @@ export async function POST(request: Request) {
|
||||
try {
|
||||
const res = (await execInDevContainer({
|
||||
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 };
|
||||
fileContextsBlock += `\nFile: \`${safePath}\`\n\`\`\`\n${res.stdout}\n\`\`\`\n`;
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user