mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 22:03:45 +00:00
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:
parent
9ebee631be
commit
0397dd44c8
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue