This commit is contained in:
serversdwn
2025-12-29 22:44:47 -05:00
parent a900110fe4
commit 6716245a99
7 changed files with 102 additions and 36 deletions

View File

@@ -325,7 +325,10 @@ app.get("/sessions/:id", async (req, res) => {
app.post("/sessions/:id", async (req, res) => {
const sessionId = req.params.id;
const history = req.body;
const success = await saveSession(sessionId, history);
// Load existing metadata to preserve it
const existingMetadata = await loadSessionMetadata(sessionId);
const success = await saveSession(sessionId, history, existingMetadata);
if (success) {
res.json({ ok: true, saved: history.length });