YeonGyu-Kim
930ec52fd1
fix(preemptive-compaction): allow re-compaction after context grows and use model-specific limits
...
compactedSessions permanently blocked re-compaction after first success,
causing unbounded context growth (e.g. 500k on Kimi K2.5 with 256k limit).
- Clear compactedSessions flag on new message.updated so compaction can
re-trigger when context exceeds threshold again
- Use modelContextLimitsCache for model-specific context limits instead
of always falling back to 200k for non-Anthropic providers
2026-03-02 23:07:39 +09:00
YeonGyu-Kim
6de1b3ba7c
fix(compaction): add timeout and ensure cleanup to prevent indefinite hangs on rate limit
...
Closes #2062
2026-02-26 20:58:01 +09:00
YeonGyu-Kim
8f9b73c82e
feat(preemptive-compaction): apply compaction model override from agent config
2026-02-22 17:19:39 +09:00
YeonGyu-Kim
21144ed1e3
fix: read anthropic 1m flag from live model cache state
2026-02-17 10:51:01 +09:00
YeonGyu-Kim
ce5e6857ad
fix: use model cache context flag for runtime context limits
2026-02-17 10:51:01 +09:00
YeonGyu-Kim
80746b63e0
fix: recognize google-vertex-anthropic as Claude provider ( #1700 )
2026-02-17 01:28:27 +09:00
YeonGyu-Kim
f734e9e600
fix: prevent duplicate compaction race and log preemptive failures
2026-02-16 14:58:59 +09:00
popododo0720
e61a93faf8
fix: reduce session.messages() calls with event-based caching to prevent memory leaks
...
- Replace session.messages() fetch in context-window-monitor with message.updated event cache
- Replace session.messages() fetch in preemptive-compaction with message.updated event cache
- Add per-session transcript cache (5min TTL) to avoid full rebuild per tool call
- Remove session.messages() from background-agent polling (use event-based progress)
- Add TTL pruning to todo-continuation-enforcer session state Map
- Add setInterval.unref() to tool-input-cache cleanup timer
Fixes #1222
2026-02-12 11:38:11 +09:00
YeonGyu-Kim
20e7d5cf42
fix(compaction): remove hardcoded Claude model from compaction hooks
2026-02-06 18:58:48 +09:00
YeonGyu-Kim
39dc2ff303
feat: add agent fallback and preemptive-compaction restoration
...
- Add agent visibility fallback for first-run scenarios
- Restore preemptive-compaction hook
- Update migration and schema for preemptive-compaction restoration
2026-02-02 22:40:59 +09:00