mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 15:14:31 +00:00
fix(session): harden usage accounting and memory flush recovery
This commit is contained in:
@@ -715,6 +715,11 @@ export async function runReplyAgent(params: {
|
||||
queueKey,
|
||||
runFollowupTurn,
|
||||
);
|
||||
} catch (error) {
|
||||
// Keep the followup queue moving even when an unexpected exception escapes
|
||||
// the run path; the caller still receives the original error.
|
||||
finalizeWithFollowup(undefined, queueKey, runFollowupTurn);
|
||||
throw error;
|
||||
} finally {
|
||||
blockReplyPipeline?.stop();
|
||||
typing.markRunComplete();
|
||||
|
||||
Reference in New Issue
Block a user