coding-agent: add pi-session- prefix to exported HTML files (#72)

Makes exported session files easier to filter with .gitignore
This commit is contained in:
Mario Zechner 2025-11-27 23:54:10 +01:00
parent 9ebee631be
commit 0397dd44c8
2 changed files with 6 additions and 2 deletions

View file

@ -336,10 +336,10 @@ export function exportSessionToHtml(sessionManager: SessionManager, state: Agent
const sessionFile = sessionManager.getSessionFile();
const timestamp = new Date().toISOString();
// Use session filename + .html if no output path provided
// Use pi-session- prefix + session filename + .html if no output path provided
if (!outputPath) {
const sessionBasename = basename(sessionFile, ".jsonl");
outputPath = `${sessionBasename}.html`;
outputPath = `pi-session-${sessionBasename}.html`;
}
// Read and parse session data