feat(pipeline): session compaction overflow recovery (#958)

- Add ZAI/GLM context overflow patterns to error_classify.go
- ThinkStage detects overflow, triggers emergency compaction + 1 retry
- Wire ReserveTokensFloor config to pipeline budget calculation
- Send user-friendly error on channel RunFailed events
- Add sessions.compact WebSocket method for manual truncation
This commit is contained in:
viettranx committed 2026-04-20 08:49:38 +07:00
1 parent 1b8627077a
commit a7962d182a
13 files changed
+406 -3

No files matched your search

+1
View File
@@ -39,6 +39,7 @@ const (
MethodSessionsPatch = "sessions.patch"
MethodSessionsDelete = "sessions.delete"
MethodSessionsReset = "sessions.reset"
MethodSessionsCompact = "sessions.compact"
// System
MethodConnect = "connect"