Evgeny Zotov
68e9d54fa5
fix(todo-continuation): remove activity-based stagnation bypass
...
Activity signals (tool calls like compress, grep, bash) were treated as
'progress' by the stagnation detector, resetting the stagnation counter
every cycle. This prevented MAX_STAGNATION_COUNT from being reached,
causing infinite continuation loops when models degrade to minimal
responses in long sessions (e.g. GLM-5.1 at ~100K tokens).
Stagnation now only tracks actual todo state changes: incomplete count
decrease, completed count increase, or todo snapshot change. Tool-level
activity no longer resets the stagnation counter.
2026-05-15 21:11:08 +09:00
YeonGyu-Kim
edcc9a1e64
fix(todo-continuation-enforcer): defer prune interval to first idle event
...
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
2026-04-18 14:16:40 +09:00
YeonGyu-Kim
130f4ac080
fix: resolve #3124 #3125 #3127 session tools, cache priming, and compaction loop
...
- #3124 : Session tools now merge SDK and file-backed sessions for SQLite backend
- #3125 : Cache priming fixed for OpenCode >=1.3.14 empty workspace
- #3127 : Activity-based progress detection prevents infinite compaction on Kimi/Minimax
All 29 new tests pass, 4885 total tests passing.
2026-04-05 09:30:19 +09:00
YeonGyu-Kim
df7e1ae16d
fix(todo-continuation): remove activity-based stagnation bypass
2026-03-17 15:17:34 +09:00
YeonGyu-Kim
d22867db27
fix(todo-continuation): improve stagnation detection accuracy
2026-03-11 21:59:59 +09:00
YeonGyu-Kim
0c52d42f8b
fix(todo-continuation-enforcer): gate stagnation on successful injections
...
Keep failed or skipped injections on the MAX_CONSECUTIVE_FAILURES path so unchanged todos do not trip stagnation first.
2026-03-11 18:39:54 +09:00
YeonGyu-Kim
51bf823893
fix(todo-continuation-enforcer): track todo state changes for stagnation
...
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
2026-03-11 17:56:43 +09:00
YeonGyu-Kim
07e8b32ed1
fix(todo-continuation-enforcer): track continuation stagnation state
...
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
2026-03-08 02:17:51 +09:00
YeonGyu-Kim
c2f22cd6e5
fix: apply cooldown on injection failure and cap retries
2026-02-16 15:00:41 +09:00
YeonGyu-Kim
9fe48d252c
Merge pull request #1787 from popododo0720/fix/memory-leak-session-messages-caching
...
fix: reduce session.messages() calls with event-based caching to prevent memory leaks
2026-02-13 18:44:00 +09:00
YeonGyu-Kim
10a60854dc
perf(todo-continuation): add cooldown and stagnation cap to prevent re-injection loops
2026-02-13 11:54:32 +09:00
popododo0720
eb56701996
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
119e18c810
refactor: wave 2 - split atlas, auto-update-checker, session-recovery, todo-enforcer, background-task hooks
...
- Extract atlas/ into 15 focused modules (hook, event handler, tool policies, types, etc.)
- Split auto-update-checker into checker/ and hook/ subdirectories with single-purpose files
- Decompose session-recovery into separate recovery strategy files per error type
- Extract todo-continuation-enforcer from monolith to directory with dedicated modules
- Split background-task/tools.ts into individual tool creator files
- Extract command-executor, tmux-utils into focused sub-modules
- Split config/schema.ts into domain-specific schema files
- Decompose cli/config-manager.ts into focused modules
- Rollback skill-mcp-manager, model-availability, index.ts splits that broke tests
- Fix all import path depths for moved files (../../ -> ../../../)
- Add explicit type annotations to resolve TS7006 implicit any errors
Typecheck: 0 errors
Tests: 2359 pass, 5 fail (all pre-existing)
2026-02-08 15:01:42 +09:00