diff --git a/tasks/todo.md b/tasks/todo.md index 2ac109d..cf4469f 100644 --- a/tasks/todo.md +++ b/tasks/todo.md @@ -1,3 +1,17 @@ +# v3.3.108 — session log filename: 6-digit uniqueness suffix + +User: append a generated 6-digit number to the session log filename, e.g. +26-06-2026-mdu-session-06-02-847581.log. Dropping seconds/pid in v3.3.107 reintroduced same-minute +collision risk on a fast close/reopen. +- formatSessionStamp(date, rand) appends `-${rand}` when rand is supplied (number or string), else unchanged. +- main.js stamps SESSION_ID = formatSessionStamp(new Date(), String(Math.floor(100000 + Math.random()*900000))). +- stripModeStampFromFileName newSessionRe gains an optional `(?:-\d+)?` so the suffix strips back to the base. +- Tests: stamp-with-rand (string + number), strip-with-suffix. 411 pass. +Shipped: gitea v3.3.108 (updater latest.yml verified) + GitHub mirror (lib/log-mode.js, main.js, package.json, +tests/log-mode.test.js only; tag repointed to the sanitized mirror commit, NOT the gitea history commit). + +--- + # v3.3.107 — session log filename template → DD-MM-YYYY-mdu-session-HH-MM User: change the session log filename from fileuploader-session-YYYY-MM-DD_HH-MM-SS-.log to