fix: a trashed note file leaves its note, quieter MCP sweep, bounded compose logs

A note's attachment moved to the trash from the file manager kept
showing on the note; the hydration read now skips it, as the chat one
already did. The MCP session sweep logged a line every minute while any
session was open; it logs only when it cleaned something. The compose
file caps the container log, and three test mocks that pointed at
modules long gone are removed.
This commit is contained in:
Maurice
2026-10-07 16:47:53 +02:00
parent 76df44d8de
commit 72fbbd55d4
9 changed files with 21 additions and 13 deletions
+3 -1
View File
@@ -56,7 +56,9 @@ const sessionSweepInterval = setInterval(() => {
for (const [key, entry] of rateLimitMap) {
if (entry.windowStart < rateCutoff) rateLimitMap.delete(key);
}
if (cleaned > 0 || sessions.size > 0) {
// Only when something was cleaned: logging every minute while any session
// is open wrote 1,440 lines a day into a log nothing rotates.
if (cleaned > 0) {
console.log(`[MCP] Session sweep: cleaned ${cleaned}, active ${sessions.size}`);
}
}, 60 * 1000); // sweep every 1 minute