mirror of
https://github.com/affaan-m/ECC.git
synced 2026-12-02 20:56:31 +00:00
extractSessionSummary did user-message filtering and two kinds of tool_use collection in one loop body six blocks deep. The per-entry work now lives in userMessageText, recordToolUse and collectEntry. main() is down to the sequence of steps: resolveTranscriptPath, sessionShortId, maybeGenerateLlmSummary, then updateSessionFile or createSessionFile, with the shared footer and empty-session template as constants. Call order, log lines, file names and the written markdown are unchanged, including the exact summary block replacement and the migration path for files without markers.