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:
@@ -68,6 +68,8 @@ async function syncProfileSessions(profile: string): Promise<{
|
|||||||
logger.info(`[session-sync] profile '${profile}': found ${summaries.length} aggregated session chains`)
|
logger.info(`[session-sync] profile '${profile}': found ${summaries.length} aggregated session chains`)
|
||||||
|
|
||||||
for (const hermesSession of summaries) {
|
for (const hermesSession of summaries) {
|
||||||
|
// Skip ephemeral sessions (created internally by chat-run-socket)
|
||||||
|
if (hermesSession.id.startsWith('eph_')) continue
|
||||||
try {
|
try {
|
||||||
// Generate new session ID for local DB
|
// Generate new session ID for local DB
|
||||||
const newSessionId = generateUuid()
|
const newSessionId = generateUuid()
|
||||||
|
|||||||
Reference in New Issue
Block a user