fix hermes markdown media and sync retry (#550)
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user