orchestrator: recover from context overflow on fallback

This commit is contained in:
William Valentin
2026-02-13 21:19:02 -08:00
parent 944b2c916a
commit 151b48310e
4 changed files with 236 additions and 18 deletions
+11
View File
@@ -48,6 +48,17 @@
],
"test_status": "pnpm test:run src/daemon/routing.test.ts + pnpm typecheck passing (full pnpm test:run fails in this sandbox due to EPERM listen/spawn)"
},
"context-overflow-recovery": {
"status": "completed",
"date": "2026-02-14",
"summary": "Hardened voice-message and fallback behavior by using tier-specific model identity (modelName/contextWindow) for compaction heuristics and by intercepting tool-loop provider errors to rollback history, hard-trim on detected context overflows, and retry once with a clean, user-friendly failure message on repeated errors.",
"files_modified": [
"src/daemon/routing.ts",
"src/backends/native/orchestrator.ts",
"src/backends/native/orchestrator.test.ts"
],
"test_status": "pnpm test:run src/backends/native/orchestrator.test.ts src/daemon/routing.test.ts + pnpm typecheck passing"
},
"p0-p1-implementation-plan": {
"file": "2026-02-06-p0-p1-implementation-plan.md",
"status": "completed",