fix(core,server,web,cli): compaction tolerance, retry parity, and failure classification (#174)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Yaowei ZhengandClaude Fable 5 authored and GitHub committed 2026-08-04 17:27:45 +08:00
1 parent 7015fb0153
commit 6f60b242bd
32 files changed
+741 -326

No files matched your search

+6 -2
View File
@@ -852,8 +852,12 @@ Scenarios:
mode === "discard"
? "[Compaction] done, old context discarded"
: "[Compaction] done, switched to the summarized context",
compactionFailed: (status: string) =>
`[Compaction] ${status === "aborted" ? "aborted" : "failed"}, keeping current context`,
compactionFailed: (status: string, errorMessage?: string): string => {
if (status === "aborted") return "[Compaction] aborted, keeping current context";
return errorMessage !== undefined
? `[Compaction] failed (${errorMessage}), keeping current context`
: "[Compaction] failed, keeping current context";
},
unknownTool: "(unknown tool)",
workRunning: "Running",
workDone: "Done",