fix: filter out ephemeral sessions (eph_*) during startup sync (#503)

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-05-07 11:13:19 +08:00
committed by GitHub
parent ef40924215
commit 4bec073d22
@@ -68,6 +68,8 @@ async function syncProfileSessions(profile: string): Promise<{
logger.info(`[session-sync] profile '${profile}': found ${summaries.length} aggregated session chains`)
for (const hermesSession of summaries) {
// Skip ephemeral sessions (created internally by chat-run-socket)
if (hermesSession.id.startsWith('eph_')) continue
try {
// Generate new session ID for local DB
const newSessionId = generateUuid()