fix hermes markdown media and sync retry (#550)

This commit is contained in:
ekko
2026-05-08 19:55:55 +08:00
committed by GitHub
parent 866ae3d23d
commit bba4920fee
4 changed files with 46 additions and 6 deletions
@@ -1304,7 +1304,10 @@ export class ChatRunSocket {
const prof = state.profile
this.hermesSessionIds.delete(sessionId)
state.profile = undefined
await this.syncFromHermes(socket, sessionId, hermesId, prof)
await this.syncFromHermes(socket, sessionId, hermesId, prof, {
maxAttempts: 4,
delayMs: 1000,
})
}
}
@@ -1341,7 +1344,7 @@ export class ChatRunSocket {
this.hermesSessionIds.delete(sessionId)
logger.info({ sessionId, hermesId, profile: profile || 'default' }, '[chat-run-socket][abort] syncing stopped run from Hermes')
synced = await this.syncFromHermes(socket, sessionId, hermesId, profile, {
maxAttempts: 10,
maxAttempts: 4,
delayMs: 1000,
})
}